faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

I am trying to find a way to insert a parameter into a querystring before it is sent,

Apr 8th, 2008 00:00
ha mo, Colin Fraser, Dante M,


Ok, the first thing is where are you getting the parameter from? If it 
is user input you might want to try something like:
<form name="getInput">
<input type="text" name="userInput" value="">
<input type="button" value="Submit" onClick="doQuery(userInput.value)">
</form>
<script language="JavaScript"><!--
function doQuery(userVal) {
  paramstring = '[whatever your parameter string is ] '
  sendValue = paramstring + userVal;
  actionQuery(sendValue);
}
//--></script>
There is lots of different way you can do this, and this may not work 
in your situation, however, it may also represent an idea that you can 
employ in your solution. This is a simplistic answer so dont count on 
it working immediately if at all.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com