Browser Library Related Questions - Needs answers fast.. T_T
Posted: Fri May 01, 2009 9:55 pm
				
				I'm encountering problems when I'm using the browser library... Please help me with the following matters...
1. I don't think browserCancel isn't working anymore because the code below doesn't work.
If you're saying this might be a bug in my script, then here's another thing, I tried the code below but the browser still continues to load the destination URL.
2. The browserDownloadRequest message doesn't seem to be functioning right as well. If I'm right, the browserDownloadRequest message must catch if a user is trying to download a file. It does do that but it doesn't prevent the download window from appearing. I need to block the download window first then ask the user if he or she wants to download that certain file.
Now the script above must function quite smoothly but it won't. For some odd reason, the download window of Internet Explorer pops up along with the answer box that I made.
3. The whole Runtime Revolution environment (development and standalone application) crashes whenever a frame in a loaded page does not exist. For example, if the HTML file contains the code below,
then I try to load it into a card containing my browser object, the whole program crashes. Also in addition, I need to know how to redirect a page inside a frame because I've made a custom error page that's supposed to be displayed if a site / page / file that's been loaded into the browser object is not found. The error page is working great for normal webpages but for frames, not at all.
It's really frustrating guys so PLEASE HELP ME OUT... I think there're more and more questions that's gonna come up so please don't get tired of answering my questions please?
			1. I don't think browserCancel isn't working anymore because the code below doesn't work.
Code: Select all
on browserBeforeNavigate theBrowserId,theURL
   if theBlockedURLS contains theURL then
      global browserCancel
      put TRUE into browserCancel
   end if
end browserBeforeNavigateCode: Select all
on browserBeforeNavigate theBrowserId,theURL
   global browserCancel
   put TRUE into browserCancel
end browserBeforeNavigateCode: Select all
on browserDownloadRequest theBrowserId,theURL
   global browserCancel
   put TRUE into browserCancel
   answer question "Are you sure you want to download" && theURL && "?" with "Cancel" or "Download" titled "Download Request"
   if it is "Download" then
      ask file "Save" with type "All File Types|"
      if it is not empty then
         put url theURL into url("binfile:" & it)
      end if
   end if
end browserDownloadRequest3. The whole Runtime Revolution environment (development and standalone application) crashes whenever a frame in a loaded page does not exist. For example, if the HTML file contains the code below,
Code: Select all
<html>
<head>
<title>test page</title>
</head>
<body>
<iframe src="http://somesitethatdoesntexist.com">Frames are not enabled in your browser please enable it first.</iframe>
</body>
</html>It's really frustrating guys so PLEASE HELP ME OUT... I think there're more and more questions that's gonna come up so please don't get tired of answering my questions please?

 
  ) to be able to intercept and redirect a url rather than just cancelling the navigation, if that's possible.
 ) to be able to intercept and redirect a url rather than just cancelling the navigation, if that's possible.