Changes

Jump to: navigation, search

Passing Values Using Parameters

112 bytes added, 20:57, 7 October 2009
no edit summary
==Parsing Parameters==
On the receiving page the parameters can pre-populate a form or an html element which may reside resides on that page. In order to achieve this the following javascript functions can be used. Place the following first function in the head of the html.
<pre>
</pre>
 Place the following second function functions in the body replacing "field1" with the id of the form field and "parameter1" with the name of the parameter being passed'''Form Field Population'''
<pre>
</pre>
 
 
'''Form Field Population'''
 
<pre>
 
<script>
 
var para1=document.getElementById('field1');
para1.value = unescape(params["parameter1"]);
 
</script>
 
</pre>
 
 
 
 
 
 
Repeat for additional fields and values.
Smartstaff, administrator
38
edits

Navigation menu