Thanks JKing!
It worked. Awesome.
User Profile
Collapse
-
sunnypirate started a topic Problem passing Variable from Javascript Function Constructed inside PHPin PHPProblem passing Variable from Javascript Function Constructed inside PHP
The following code treats abcd as a variable and gives the error variable undefined in firebug
Code:return $data = "<a href='#' onclick='ajaxcall(abcd);'>".$name."</a>";
Code:return $data = "<a href='#' onclick='ajaxcall('abcd');'>".$image.$tmp->name."</a>";
-
get margin from an element
I wanted to get the margin-right value of a div element.
I have searched on this but everything suggests that the code wont work on both IE and Mozilla concurrently. So is there any function or way by which this is possible.
Thanks,
Sunny. -
Thanks for the reply.
I am adding data to array as user clicks on a link.. I want the array to retain these values even if the page reloads.Leave a comment:
-
global variable in javascript
I wanted to use a global array that can be used on any page that uses the array..
Right now the array gets reset when I load a new page.. or refresh the current page.
What is the solution for this? I cannot use a database.. Also is an external js file a solution??
Thanks,
Sunny
No activity results to display
Show More
Leave a comment: