Re: Anyone A Guru With RevBrowser ?

2011-07-11 Thread Scott Rossi
Yes, well, that might work for me, but I don't think I can tell the client
to force everyone else with a similar setup.  The problem has something to
do with the way RevBrowser interacts with IE.  In IE, Javascript errors are
silently indicated via an icon in the status portion of the browser --
perhaps it can't find settings to control this under RevBrowser so it throws
up a standard error dialog.

Plus, I've tried everything I can think of to exit the browser when clicking
a logout link, but it still refuses to shutdown unless clicking a native
LiveCode button.

Really wish I could find some solutions so I don't have to tell the client
to forget it.  Oh well.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




Recently, Chipp Walters wrote:

 Scott,
 
 You might want to make sure you're using an updated version of IE on
 Windows.
 
 On Sun, Jul 10, 2011 at 6:21 PM, Scott Rossi sc...@tactilemedia.com wrote:
 
 More RevBrowser weirdness...
 
 While testing the running of a Web app in a RevBrowser stack on Vista, any
 page that contains Javascript errors causes an IE script error window to
 appear...  WTF?  How can this be disabled or at least handled?
 
 Thanks for any advice.
 
 Regards,
 
 Scott Rossi



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Anyone A Guru With RevBrowser ?

2011-07-11 Thread Chipp Walters
I take it you've tried send in time on your before navigate handler, to give 
the handler time to finish before trying to shut it down?

Chipp Walters
CEO, Shafer Walters Group, Inc

On Jul 11, 2011, at 4:44 AM, Scott Rossi sc...@tactilemedia.com wrote:

 Yes, well, that might work for me, but I don't think I can tell the client
 to force everyone else with a similar setup.  The problem has something to
 do with the way RevBrowser interacts with IE.  In IE, Javascript errors are
 silently indicated via an icon in the status portion of the browser --
 perhaps it can't find settings to control this under RevBrowser so it throws
 up a standard error dialog.
 
 Plus, I've tried everything I can think of to exit the browser when clicking
 a logout link, but it still refuses to shutdown unless clicking a native
 LiveCode button.
 
 Really wish I could find some solutions so I don't have to tell the client
 to forget it.  Oh well.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 
 Recently, Chipp Walters wrote:
 
 Scott,
 
 You might want to make sure you're using an updated version of IE on
 Windows.
 
 On Sun, Jul 10, 2011 at 6:21 PM, Scott Rossi sc...@tactilemedia.com wrote:
 
 More RevBrowser weirdness...
 
 While testing the running of a Web app in a RevBrowser stack on Vista, any
 page that contains Javascript errors causes an IE script error window to
 appear...  WTF?  How can this be disabled or at least handled?
 
 Thanks for any advice.
 
 Regards,
 
 Scott Rossi
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Anyone A Guru With RevBrowser ?

2011-07-10 Thread Slava Paperno
Scott

 Issue number 1 is the loading of pages: is there anyway to freeze or lock
the
 RevBrowser display until downloading of new page content has completed?
 The site can be slow to respond, so my thought was to pop up a spinning
 progress indicator over a snapshot of the current page so the user knows
to
 wait.

You can set the browser's rect to be offscreen until the page is loaded and
display a wait... message or graphic in the rect where the browser will
eventually appear.

 Issue number 2 is browserBeforeNavigate which is seemingly unreliable.

It's quite reliable in my application. Something else may be the matter.

 The Web site has a logout link, and I am trying to detect clicks on this
using
 browserBeforeNavigate, so I can kill the browser and send the user to the
first
 card of the stack if they log out.  Apparently, RevBrowser detects the
link click
 (tested), but LiveCode stays on the same card and shuts down the browser
at
 random intervals, sometimes immediately, and other times only after many
 seconds (up to 60!).  I'm using this routine:

One thing I found was that it is important to close the browser as soon as
it is no longer needed. While it is visible, the revBrowser is very
responsive to changing its rect and to calls from my LC scripts to the JS in
the page. But if I forget to close it and other things start being displayed
in its space, that's asking for trouble. Your script, below, does that, so
you already know it. Maybe you need to make sure it's really happening. I
close my browser instances in the same kind of loop, and I haven't seen any
failures. Could there be something in progress in the Web pages that delays
the response?

Slava

 on browserBeforeNavigate pID,pURL
if logout is in pURL then
   exitBrowser
   wait 250 millisecs with messages
   go cd 1
   exit browserBeforeNavigate
end if
pass browserBeforeNavigate
 end browserBeforeNavigate
 
 
 command exitBrowser
put revBrowserInstances() into theList
repeat for each item theInstance in theList
   revBrowserClose theInstance
end repeat
 end exitBrowser
 
 I don't understand why this doesn't kill the browser immediately every
time.
 If I call exitBrowser from a LiveCode button, the script works as expected
 reliably.
 
 Thanks for any help/insight.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Anyone A Guru With RevBrowser ?

2011-07-10 Thread Scott Rossi
More RevBrowser weirdness...

While testing the running of a Web app in a RevBrowser stack on Vista, any
page that contains Javascript errors causes an IE script error window to
appear...  WTF?  How can this be disabled or at least handled?

Thanks for any advice.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Anyone A Guru With RevBrowser ?

2011-07-10 Thread Chipp Walters
Scott,

You might want to make sure you're using an updated version of IE on
Windows.

On Sun, Jul 10, 2011 at 6:21 PM, Scott Rossi sc...@tactilemedia.com wrote:

 More RevBrowser weirdness...

 While testing the running of a Web app in a RevBrowser stack on Vista, any
 page that contains Javascript errors causes an IE script error window to
 appear...  WTF?  How can this be disabled or at least handled?

 Thanks for any advice.

 Regards,

 Scott Rossi
 Creative Director
 Tactile Media, UX Design



 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Chipp Walters
CEO, Shafer Walters Group, Inc.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode