Hi Rob,


On Internet Explorer, you don't need an Xtra - you can call a function myMovieName.evalScript and pass it a string (which you can parse out later). It takes a return value. In Lingo, put 'on evalScript' in a movie handler. To send in the other direction (to IE) you call externalEvent and pass it a string (sorry, no return value there).

Unfortunately this doesn't currently work in Netscape, since they changed their structure in Netscape 6+.

But for Windows IE, you're okay.

- Tab



At 10:46 AM 3/26/04, Rob Wingate wrote:
Hi All,

I think I'm looking for a strategy on how to notify Lingo from a <form>
tag's 'onSubmit()' event.

Background:
I'm building HTML forms on the fly with Lingo, and sending them to an
Internet Explorer (Tabuleiro's WebXtra) sprite on the stage. Works
beautifully.

Then comes the Submit button. I could leave it alone and post the form data,
but I'd rather intercept it and process the data locally. I know I can use
<form onSubmit="return false;"> to stop the post, but I don't know how to
tell Lingo that Submit was clicked.

IOW, how can the Javascript function I assign to onSubmit notify Lingo?

I appreciate any leads--I'm in some new territory on this one.

Thanks,
Rob

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to