-
Help in Javascript
I've downloaded some samples of AJAX and they are working fine.
Now I'm starting to modify these source codes to create some classes for my future WEB-Based Projects.
I'm having problem in passing parameters.
HTML file:
HTML Code:
...<form action="javascript:get(document.getElementById('myform'), 'post.php');" name="myform" id="myform">...
Javasript file:
Code:
function get(obj, targeturl) {
var getstr = "?";
alert(targeturl);...
I've put the alert(targeturl); to check what is the problem and the value of targeturl returns the value: undefined instead of 'post.php'.
What is the problem with my code?
Thanks for immediate responses. ;)
-
Re: Help in Javascript
Works fine for me. I'm assuming that the ... isn't actually part of your javascript?
-
Re: Help in Javascript
I'm sorry if I didn't tell that it works fine now.
I don't know how it happened.