Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.