|
Feedback on: Passing data from one form to another
irt.org | About | Feedback | 4683 [ previous next ] Feedback on: Passing data from one form to another
Sent by bha123 on Thursday June 07, 2007 at 17:25:32
Worth: Very worth reading
Length: Just right
Technical:
Comments: the following code works properly with the IE 7 .. its not working in mozilla FireFox and IE 6 , can u plz let me knwo , how can i make it work in Mozilla
Thank u so much for this useful article
<SCRIPT LANGUAGE="JavaScript"><!-- function getParm(string,parm) { // returns value of parm from string var startPos = string.indexOf(parm + "="); if (startPos > -1) { startPos = startPos + parm.length + 1; var endPos = string.indexOf("&",startPos); if (endPos == -1) endPos = string.length; return unescape(string.substring(startPos,endPos)); } return ''; }
var passed = location.search.substring(1);
document.formname.myfield.value = getParm(passed,'myfield'); document.formname.otherfield.value = getParm(passed,'otherfield');
Other feedback on 'Passing data from one form to another' - show all
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.