Re: Can I generate an event with script?
From: J. J. Cale (photom_at_netvision.net.il)
Date: 09/08/04
- Next message: Dominic: "Re: "Accsss is denied" when using iframe.contentWindow.document"
- Previous message: Joe Fawcett: "Re: could you check this if regexp, please? (including FileSystemObject)"
- In reply to: White_Rain: "Can I generate an event with script?"
- Next in thread: White_Rain: "Re: Can I generate an event with script?"
- Reply: White_Rain: "Re: Can I generate an event with script?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 8 Sep 2004 12:36:35 +0200
White_Rain
It isn't clear what you are trying to do. Passing an event has no
meaning since you will need to handle the event and assumedly construct
parameters or manipulate variables anyway.If you have managed to create a
scope problem then you'll need to show some code.
If you need to pass the results to another page you can call the page with
document.location.href = "pageName.html?var1=blah&var2=otherblah&....".
or
window.open("pageName.html?var1=blah&var2=otherblah&....",....);
or
iframe.src="pageName.html?var1=blah&var2=otherblah&...."; // not tested
In the called page you will need to get window.location.search and parse out
the name-value pairs.
<script type=text/javascript>
//get rid of the '?';
var a=window.location.search.substring(1);
// parse out the value parameters using a.slice or a regex
</script>
if you are using a frameset the events are available to all frames.
if your iframe is contained in your main page and the iframe source is
another html page the above should also be true.
What exactly is it you need to do?
"White_Rain" <none@noreply> wrote in message
news:eoduvqLlEHA.2680@TK2MSFTNGP15.phx.gbl...
> Hi all,
>
> I want to generate an event in my script.
> Can I do this? And how?
>
> Thanks!
>
>
- Next message: Dominic: "Re: "Accsss is denied" when using iframe.contentWindow.document"
- Previous message: Joe Fawcett: "Re: could you check this if regexp, please? (including FileSystemObject)"
- In reply to: White_Rain: "Can I generate an event with script?"
- Next in thread: White_Rain: "Re: Can I generate an event with script?"
- Reply: White_Rain: "Re: Can I generate an event with script?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|