Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: Passing data from one form to another, Thursday June 07, 2007 at 17:25:32

You are here: 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

©2018 Martin Webb