> I think I'm looking for a strategy on how to notify Lingo from a
<form> tag's 'onSubmit()' event. IOW, how can the Javascript function I
assign to onSubmit notify Lingo?
Well Rob, here's my guess:
Set up a js function in the header of the page.
In the header of the html page, this javascript function:
function sendDataBackToShockwave(params){
/*
I'm not sure of any of the syntax, and the DOM between the
browsers differs
But essentially here you need to reach back into the shockwave
object on the page and send a method to it. Something like:
*/
document.theForm.shockwaveObject.someMethodToCallIntoLingo(params);
Return false; // possibly optional
}
Then on the form button:
onSubmit="sendDataBackToShockwave(params);"
I recommend that your shockwave object should be within the page's form
tag. The DOM is going to be different between the different browsers so
you may have to use an if or switch to figure out which browser they're
in and then access the shockwave from there based on that browser's way
of accessing it. Try looking up on EvalScript as a means to getting the
js function back into the browser.
Not a very thorough answer, but hopefully it was helpful.
- Michael M.
[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!]