Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a Form Field to a Page on Other Server

Status
Not open for further replies.

scripter73

Programmer
Apr 18, 2001
421
US
Here’s what I have:


Index.jsp


…..contains

function openWin()
{
wpiWindow = window.open
(' 'newWindow','width=700,height=500,'+
'status=no,toolbar=yes,menubar=no,location=yes');
}

…..uses an include file (customer.html) that looks like the following:


<form name="CustEntry" method="post" action="document.CustEntry.submit();">
<input name="CustNumber" type="text" size="20" maxlength="20"><br><br>


<a href="javascript:eek:penWin();" onClick="document.CustEntry.submit();" border=0><img src="images/submitBut.gif" border="0" width="69" height="17"></a>
</form>


When I test this, I can open the new window and get to the page I specified in my Javascript.

My displayform.cfm page is a test page I’ve created to display the form element if it exists. Right now, its telling me the page doesn’t exist.

How can I pass the form elements to the page displayform?
I've also tried leaving the action blank, and playing around with the attributes. Still can't get the form field to submit.

Thanks in advance.

Scripter73





Change Your Thinking, Change Your Life.
 
the form's action is the page or script it will submit to. in your case it is looking for a page called "document.CustEntry.submit();"

try changing the action to "displayform.cfm"


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top