Re: Can I generate an event with script?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: J. J. Cale (photom_at_netvision.net.il)
Date: 09/08/04


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!
>
>



Relevant Pages

  • Re: Parsing strings via shell vars?
    ... My shell scripting must be getting rusty and a quick google isn't ... > I need to find a way to parse a shell variable rather than a file, ... > it's basically using a few system files to determine what variant of *nix ... > further filesystem checks to verify what specific flavor of *nix the script ...
    (comp.unix.shell)
  • Re: parsing command line arguments multiple times
    ... >>> i am fine with any GetOpt as long as it solves my problem. ... >> With the modules I mentoned, you can parse all provided options with one ... > thanks joe, ... > lets assume we add an option -checkflag to your script ...
    (perl.beginners)
  • Re: [KSH 88] How to use set -A when first value is -x
    ... : optional args. ... It uses getopts to parse the options (I guess that was ... obvious) and a for x in $@ to parse out the mandatory arguments. ... of the script. ...
    (comp.unix.shell)
  • Re: parsing command line arguments multiple times
    ... >> i am fine with any GetOpt as long as it solves my problem. ... > With the modules I mentoned, you can parse all provided options with one ... > The script is called ... lets assume i do not pass checkflag, then i would like to invoke script ...
    (perl.beginners)
  • Re: Help with system seeming to return too soon...
    ... > So to solve this problem I have to parse the vpnenv.sh script to ... > extract all the environment variables that are being set? ... you can then parse the output of this mini-script to set %ENV. ...
    (comp.lang.perl.misc)