How can I get this moved over the the JavaScript forum? The issue I am having is with the JavaScript not with the Sql database.http://www.codingforums.com/showthread.php?t=220870
Alright, I'm trying to make these variables pass through as a post, but it's not receiving any posts through the other side. When I use the GET method though, it picks it up.
I want to have multiple small pictures on my site(lats say 9 - box of 3x3). I want to make an interface in which user will be able to select 2 pictures and press the submit button.
So i want to get the numbers of the 2 selected pictures(lets say they have numers representing them 1,2,3,4...) in the POST variable so i can do something with them in my PHP scripts.
here it he code I have that is pulling the variables from the URL
function getUrlVars(){ var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
[Code]....
and here is the code I use to alert
var hash = getUrlVars(); alert(hash['pagego']);
this works perfectly and alerts with the variable when I load he page.
Now when i am embedding my flash file i want to pass the variable to my flash by just adding the variable value to my embed code.
how can I do this?
here is my swf embed code
var so = new SWFObject("main2.swf?pagego="+THIS IS WHERE I WANT THE VARIABLE TO BE, "Preview", "100%", "100%", "9", "#ffffff", true); so.addParam("scale", "noscale"); so.addParam("salign", "lt"); so.write("flashcontent");
If someone posts something, and it includes a link, I'd like that link to be able to be clicked and link to the site instead of just showing up as a string. Does anyone know a script that can accomplish this? About an hour of googling has got me nowhere.
I just need someone to tell me what the proper syntax is for calling a perl sub from another perl sub.. in trying to use onClick to call a sub in Htmlform() .. but its not working... the cgi works fine.. the mySql parts work fine.. more specificallyprint start_html(-title=>'Lab 6',-scrip=>{-language=>'PerlScript', src=>'mySqlProg.cgi'});i dont know if the above is the corect syntax in relation to thisprint "<button type='button' value='view' onclick='show_entries();'>Show Table Values</button>";
#!/usr/bin/perl use strict; use warnings; use CGI qw/:all/;
I have a problem with my perl program - it is not able to display the output of vowel count and word repetition count from a text file. The whole Perl program is supposed to read a paragraph of text and calculate followings based on the text:
1. number of empty spaces. 2. number of words in the text. 3. number of vowels in the text (a,e,i,o,u) 4. number of words with repetition in the text
Example output:- No. of empty spaces: XX No. of words : XX No. of vowels - a:: XX e: XX I: XX o: XX u: XX Words with repetition- Word 1 : XX Word 2 : XX ..... .... ..... ....
The Perl writes an application/x-javascript header followed by some js code (like document.write).
I can't use the hidden frame method suggested by Erwin Moller because the client page is an eBay ad, and they will not allow any frame code.
Now I want to pass to my Perl script an argument value which cannot be known until the page is loading (specifically, the page title, which is created by eBay and contains a unique id). I know how to get the page title with js, but there's no way (that I can figure out) to dynamically create the src argument of the <script> tag.
I've uploaded a new version of the javascript::Minifier module that was on CPAN. It was a translation of JSMin but I rewrote it so it now handles missing semicolons, + ++ code, and leaves those freaky IE conditional comments in the output. The goal was that if working code is input then working code is output where working == working. Breaking code that works is not such a good idea. Code:
I want to check whether the flash is installed or not on client so i have a javascript function which does this , now i want the resultant variable from this function to return to perl variable in cgi file. i dont want to use form submit because i dont need it. i simply have to take decision for further coding depending on this variable returned from javascript. :cry:the way i m doing is,cgi file,
I have a webpage (Perl) that allows a user to select one of two buttons that represent :
<button id = "1" onclick="loadXMLDoc('mysqlinsert.pl')">Choose $name1</button> <button id = "2" onclick="loadXMLDoc('mysqlinsert.pl')">Choose $name2</button>
Based on the button they choose, I need to pass a variable (declared in Perl) to another Perl page that is responsible for updating/inserting in a MySql Database.
As you can probably tell, I'm new to this. But I'm not sure how the variable ($name1) can be used in Perl to the loadXMLDoc, and then get passed using the 'POST' technique to mysqlinsert.pl??
function loadXMLDoc(url) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
I have posted a question I believe that relates more to the PERL language, but it has to do with reading an external data only javascript extension file. [URL]
I am asked to use JavaScript as part of an intro course on Perl in one of the projects.There are two html frames. The lower frame contains two user forms, one for a set of fields (name, email, comments etc), and the other that I am trying to add so that I can set a refresh rate for the upper frame.When I submit the frame rate as a number, say 5, the upper frame reloads but does not refresh at the rate I indicate.
To read a cookie: Code: <script language=javascript> <!-- var cook=document.cookie.split(";"); var pieces=cook[0].split("="); document.writeln("Your javascript cookie is called: " + pieces[0] + "<br>"); document.writeln("Its value is: " + pieces[1]);
I am making a call to a perl script using AJAX, this is basically updating a shopping cart item quantity, however; it only works about half the time.. Code:
function UpdateItem(Qty, ProdID, Size){ var XMLHttp; var ee; if(navigator.appName == "Microsoft Internet Explorer") { XMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else { XMLHttp = new XMLHttpRequest(); } [Code]...