0
votes
1answer
33 views

How to submit php variable with js?

i try to submit then echo an PHP variable, but i use js in my script. i'm too stupid to understand js. i have read many php-js discussion, but still failed when attempt it. How to do that? Sorry if my ...
0
votes
2answers
20 views

Sharing & modifying a variable between multiple files node.js

main.js var count = 1; // psuedocode // if (words typed begins with @add) require('./add.js'); // if (words typed begins with @remove) require('./remove.js'); // if (words typed begins with ...
5
votes
3answers
64 views

How to make sure a variable is an object

I have been programming Javascript for a little while now, and still am not quite sure if I am being too lazy or not. I have a lot of: if( typeof( something) === 'undefined' ){ // .. } However, ...
0
votes
3answers
35 views

How do I request a variable from the webserver using AJAX?

I have a loop in my JavaScript that is constantly checking the variable EventCounter, if eventcounter is zero then it proceeds to do an action then increment it ++, And then it proceeds to do nothing, ...
-2
votes
2answers
44 views

Pass a php call to javascript variable? [closed]

How to pass a call for example: http://localhost/conn.php?geotable=INFR&geomfield=the_geom&srid=&fields=&parameters=&orderby=&sort=&limit=&offset= into the ...
0
votes
1answer
16 views

storing variable in a cookie

I'm trying to store a return variable to a cookie so I could use it in other HTML pages. eg: <li class ="num" id="day5" onclick = "return checkDate(5)"></li> When the user clicks the ...
0
votes
1answer
29 views

Adding a return variable to a Number in Javascript

I need to add the OptionPricing variable to the 2: 258 which is in the var AccompPricing, in this script. I want to write something like this 2: 258 + (var Price), but it doesn't work like that. The ...
1
vote
3answers
199 views

Why is this simple function not working

Why isn't this working? Similar code works here: http://www.ralphphillips.com/youtube/stick-figure/stick-figure2.html But this isn't working. I have the html code correct. ID's are set but different ...
0
votes
1answer
41 views

passing variable values between HTML pages

I created this HTML calender, when the user selects a date, JS returns a value like this: <li class ="num" id="day6" onclick = "return checkDate(6)"> </li> I called the value in my ...
0
votes
1answer
36 views

jquery post closure variable issue [closed]

function submitSurvey() { var reason = $("input:radio[name='reason']:checked"); var reasonVal = reason.val(); var reasonHelp = reason.attr('reasonHelp'); var url = ...
0
votes
3answers
44 views

Can't get document.write to display updated variable

Another rookie-question, which is rooted in a very shallow understanding of JS. I'm building a small online multistep-form (made in a single html by hiding divs), where every button push is ...
1
vote
1answer
33 views

variables scope in javascript D3

I have a problem with variables scope. In the code below, I have two variables that i want to assign them some values and then later in the code use these values. The variables are: eSVG, ...
0
votes
0answers
37 views

How to use javascript variable in php? i need the value for a select statement [duplicate]

How to use javascript variable in php? I have this script in js <script type="text/javascript"> function showSelected(value) { document.getElementById ('selectedResult').innerHTML = ...
2
votes
2answers
35 views

Javascript highchart passing a variable

I used the $.get to get the value generated in test2.php, when I do an alert(data) I get the exact value I want, but I don't know what to do to stock the value obtained in the variable y : var ...
1
vote
1answer
22 views

Restarting functions yeilds unexpected results

I'm creating a simple tic-tac-toe game and I have a button that when clicked resets all of the variables affected by the clickHandler function and clears the elements from the table cells, virtually ...

1 2 3 4 5 145
15 30 50 per page