Thread: with out posting
Results 1 to 4 of 4
Related
-
Win $50 USD by Posting Forum: Internet Services
Replies: 0 -
Read before posting. Forum: Announcements
Replies: 0 -
think i'm posting? Forum: General Discussion
Replies: 3
-
06-17-2006, 04:40 AM #1
with out posting
I want to assingn a java sript variable
to a perl variable
can i do this with out posting my
form
plese help me
-
06-18-2006, 11:41 PM #2
Re: with out posting
Yes, but we need more info. Are you using both variables in a single script, or is the javascript value coming from a javascript form? Not sure what you are asking.
-
06-20-2006, 06:25 AM #3
-
06-20-2006, 07:16 AM #4
Re: with out posting
Originally Posted by netroact
code:
#!C:/usr/bin/perl
require "cgi-lib.pl";
print"Content-type:text/html\n\n";
print<<END
<SCRIPT language=javascript type=text/javascript>
function changeTest ()
{
var javaVar=document.menuForm.select1.options[document.menuForm.select1.selectedIndex].id;
return test;
}
</SCRIPT>
<body>
<form action="../action/return.html" method="post" id="menuForm" name="menuForm" >
<select id="select1" onChange="changeTest()" name="select1">
<option selected="selected">Choose a color</option>
<option id="1">CSS</option>
<option id="2">Shamrock</option>
<option id="3" >Pink Star</option>
</select>
</form>
END
;
#/* i want to assingn the java script variable to perl variable BUT nothing happens*/
$perlVar=javaVar;
print<<END
<h1>$perlVar</h1>
<h2>javaVar</h2>
</BODY></HTML>
END
;
I think some one can help me
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum