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
- Passing data from one form to another - bha123 June 07, 2007 at 17:25:32
- Passing data from one form to another - Dan April 30, 2007 at 12:00:14
- Passing data from one form to another - Mark Preston November 17, 2002 at 06:10:19
- Passing data from one form to another - Nigel Powell July 23, 2001 at 12:13:21
- Passing data from one form to another - Kanno December 29, 2000 at 12:24:38
- Passing data from one form to another - Eric November 07, 2000 at 16:32:53
- Passing data from one form to another - david abrahams November 06, 2000 at 08:06:24
- Passing data from one form to another - Tom McClure September 19, 2000 at 13:40:29
- Passing data from one form to another - Steve McMahon March 25, 2000 at 23:07:16
- Passing data from one form to another - Scott Null November 03, 1999 at 10:02:47
- Passing data from one form to another - Tu Nguyen October 20, 1999 at 13:40:04
- Passing data from one form to another - Nikola Olic September 21, 1999 at 15:51:51
- Passing data from one form to another - Roger Higgins May 25, 1999 at 02:33:11
- Passing data from one form to another - Mikester March 04, 1999 at 09:59:49
©2018 Martin Webb