(I think I have that right?)
I have been testing out various functions attempting to get a fully functional browser.
So far, the only way I have found to do this consistently is to use
revGoURL "http://www.example.org/info.html"
My goal is to provide a consistent user interface, using the revBrowser object.
However, I have run into some interesting behavior, which at this writing I have not figured out as yet.
I am wondering if anyone else has encountered these type problems and may share the "secret" to working with a base browser that creates the type of functionality contained when using revGoURL,
Here are some examples,
loading a flash object often results in a difficulty in communication between flash and the browser shell, double and triple clicks are often required to activate a field in flash.
While the same content using revGoURL works perfectly in each respective operating system, obviously this is something that requires scripting to create this functionality in each browser instance, scripting that is cross platform, MAC Win, being an additional challenge.
What I want to do is present my own content using a customized browser object, which, when needed, has the same functionality of the shell on which it (revbrowser) is based.
The challenges are these,
Downloads,
open links in new window,
open PDF documents,
Certain JAVA script commands ect.
For an example, in the documentation,
Code: Select all
The browserDownloadRequest message is sent to the current card of stack containing a browser object when a url has been requested as a download.
On Windows, if the browserCancel global is set to false on exit from the callback, the browser proceeds to download the file.
On OS X, the callback is a notification only and downloading should be performed by the host application.
I am certainly willing to accept my own weakness in understanding the documentation as it is written, example,
Code: Select all
Summary:
Sent when a download has been requested in a browser object.
Examples:
on browserDownloadRequest pInstanceId, pUrl
if urlForbidden(pUrl) then
global browserCancel
put true into browserCancel
end if
end browserDownloadRequest
So I evaluate the statements and attempt to create a script that will serve my needs however I find myself again lost in the example as I dont see how it actually handles the download request, in another example, the script example gives,
Code: Select all
on browserDownloadRequest pId, pUrl
answer information "The browser is attempting to download the file: " & return & \
pURL & return & return & "Please handle this in the 'DownloadRequest' callback'"
abIamNotBusy
#revBrowserStop the altBrowserId of this stack
end browserDownloadRequest
Something that is unusual for me, normally I find documentation to be of great use in determining the correct course of action.
In these cases I just find it frustrating in that it appears that in order to use the browser object you have to script each and every possible action that the user may need, this seems strange to me as the functionality is already there in the shell of these browsers, so my question after writing a book here, is there not an easier method of using the browser object with the desired functionality without having to rewrite the functions that should be handled in the library of the object.
I am wondering if anyone else has experienced these type of issues and has overcome these challenges and would be willing to share the
knowledge so that the community as a whole may benefit from their experience.
any thoughts and suggestions are always welcomed.