Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] RE: JS IF statement from querystring


  • From: javascript@xxxxxxxxxx (Bruce, Rodney S HQISEC/Veridian IT Services)
  • Subject: [Javascript] RE: JS IF statement from querystring
  • Date: Thu, 27 Feb 2003 11:01:01 -0700

Not really sure what your trying to do:
But maybe this might be close to what you are looking for.

You stated that you are passing the string from a form.


you could place that var into another form field on current page and then
call a JS function.


<script>
	function myfunction(){

	if (document.yourform.newfield.value == "a value"){
		do this
		}
	else {
		do this
	}

</script>




<body onLoad="myfunction()">



<input type="hidden" value="previousform.value" name="newfield">

</body>

just off the top of my head


-----Original Message-----
From: ihitman_uk <ihitman@xxxxxxxxxxx> [mailto:ihitman@xxxxxxxxxxx]
Sent: Thursday, February 27, 2003 7:01 AM
To: JS-Jive@xxxxxxxxxxxxxxx
Subject: JS IF statement from querystring



Is it possible to run a Javascript IF statement from the value of a 
querystring passed from a previous form/webpage?

I'm not very good at JS at all but was thinking if I could either do 
that or place the querystring in an asp session variable then use a 
js IF statement from that?

Any ideas at all on this one?

Cheers, 

ih.


__________________________________________________
You may unsubscribe anytime by sending a blank email to 
JS-Jive-unsubscribe@xxxxxxxxxxxxxxxx The message archives 
are at http://groups.yahoo.com/group/JS-Jive/messages 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


__________________________________________________
You may unsubscribe anytime by sending a blank email to 
JS-Jive-unsubscribe@xxxxxxxxxxxxxxxx The message archives 
are at http://groups.yahoo.com/group/JS-Jive/messages 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/