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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i send from a java sscript to a cgi

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
please help
<html>
<script language=&quot;javascript&quot;>

function OpenAdsDetail(FileName,WindowName)
{
WindowFeature=&quot;Resizable=Yes,ScrollBars=Yes,MenuBar=No,Directories=No,ToolBar=Yes,Location=No,Status=No,Width=680,ScreenX=0,ScreenY=0,Top=0,Left=0&quot;
newWindow=open(FileName,WindowName,WindowFeature);
if (newWindow.opener == null) { newWindow.opener = self; }
if (newWindow.focus) { newWindow.focus(); }
}
</script>
<body>

richards page.. dont mess around<center>
<form method=&quot;POST&quot; action=&quot;javascript:OpenAdsDetail(' '')&quot;
<input type=&quot;hidden&quot; name=&quot;username&quot; value=&quot;crap&quot;>Search Tycoon:
<input type=&quot;text&quot; name=&quot;keywords&quot; size=&quot;20&quot;>
<input type=&quot;submit&quot; value=&quot;Search&quot; name=&quot;search&quot;>
</form>
</center>

that perticular script searches tycoon but cant transfer the work i type in the input box
the variable is &quot;keywords&quot;
please help me out
thankyou
Richard
 
What you need is :

<script>
<!--
function OpenAdsDetail(WindowName)
{
WindowFeature=&quot;Resizable=Yes,ScrollBars=Yes,MenuBar=No,Directories=No,ToolBar=Yes,Location=No,Status=No,Width=680,ScreenX=0,ScreenY=0,Top=0,Left=0&quot;
newWindow=open('if (newWindow.opener == null) { newWindow.opener = self; }
if (newWindow.focus) { newWindow.focus(); }
}
-->
</script>

<form name=&quot;myform&quot; method=&quot;POST&quot; action=&quot;&quot;>
Search Tycoon:
<input type=&quot;text&quot; name=&quot;keywords&quot; size=&quot;20&quot;>
<input type=&quot;button&quot; value=&quot;Search&quot; onclick=&quot;OpenAdsDetail('')&quot;>
</form> Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top