|
-
Aug 2nd, 2007, 01:34 AM
#1
Thread Starter
Fanatic Member
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.
-
Aug 2nd, 2007, 07:21 AM
#2
Re: Help in Javascript
Works fine for me. I'm assuming that the ... isn't actually part of your javascript?
-
Aug 3rd, 2007, 12:18 AM
#3
Thread Starter
Fanatic Member
Re: Help in Javascript
I'm sorry if I didn't tell that it works fine now.
I don't know how it happened.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|