Results 1 to 3 of 3

Thread: Help in Javascript

  1. #1

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Exclamation 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.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Help in Javascript

    Works fine for me. I'm assuming that the ... isn't actually part of your javascript?

  3. #3

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    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
  •  



Click Here to Expand Forum to Full Width