Im using the onchange event for a dropdown list to change SQL statements based on the index of that dropdown chosen. For example I have a function like this for my onchange event of the drop down list.
declare connection ...
select sum(amount)as Total from studenttbli have wriiten above query ,now i need that amount sum in vbscript variable. i m not able to write tht i have written folowing but it is showing errortotal=sum.filed("Total")
I start outside of the external JS file by: reviews.init(); reviews.initialiseContent('comment'); This loads my data and loads + sets the comment tab as default. My problem is that in the external JS file (shown below) the loadTabs variable will not allow me to pass it a variable: contentDiv.onclick = this.initialiseContent; Whenever I pass a variable here it errors, am I setting this up correctly, should I be using prototype for my this. variables? Interested to hear back on if this structure of code is the right way to go about this and also how I can pass a variable in this way :)
I don't understand how to pass the currentId variable to the .addClass method as the above code does not work. If I replace currentId with 'id_1" it works. I also verified that currentId has actually an id value like this:
So after the validation find true, from that validation.php , i want to pass a PHP variable to custom.js( Jquery file).How can i do it.I am getting validation errors as a concatinated string which is returned by php,am trying to append a variable to that string.but its ech oing on the screen.Is it possible to assign a variable in that PHP file and pass to jquery file.
I have a bit more to the code but that is the bare essentials as an example. If i remove the $id and $name from the passTest() for onClick the function works properly. However if I leave them in the function doesn't seem to work at all.
var CustomArray=new Array('an apple','alligator','elephant','pear','kingbird','kingbolt','kingcraft','kingcup','kingdom','kingfish er','kingpin','SML');
Now the new code is: var CustomArray=new Array(Autocomplete);
And the Perl script is sending back the data to the browser looking like this:
var Autocomplete = 'an apple','alligator','elephant','pear','kingbird','kingbolt','kingcraft','kingcup','kingdom','kingfish er','kingpin','SML'
It gives me an undefined, right off the bat before any uploading, or anything at all takes place. I'm guessing this is because this value is set on page load, and not before the actual upload actually happens.
Does anyone have any ideas how I can set this value when the upload begins with the variable from the text file ? Keep in mind it has to be inside the function it's in now or it wont work.
Note that the loadXMLDocument function isn't called until the upload is complete, the .bind at the bottom of the page.
I have these 2 functions... The first draws a graph, then second I am trying to use to generate the "layout.addDataset" line of code, which it does perfectly. However, I am unsure how to call the function generatedataset from within drawGraph, and pass the variable "mainstring" as it is not set as a variable. code...