Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript:void(send())

    I was looking on an HTML page.
    The page contains a line :

    <div class="labelContent button"><a href="javascript:void(send())"><img src="images/btn/btn.gif" border="0"></a> </div>

    However there is no function named "send" in the page.
    Could anyone please tell me the meaning of :
    div class="labelContent button"
    &
    javascript:void(send())

    Thanks,
    Rounak

  • #2
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Guys please help me out... I'm stuck with my project.

    Quote Originally Posted by rounakbhansali View Post
    I was looking on an HTML page.
    The page contains a line :

    <div class="labelContent button"><a href="javascript:void(send())"><img src="images/btn/btn.gif" border="0"></a> </div>

    However there is no function named "send" in the page.
    Could anyone please tell me the meaning of :
    div class="labelContent button"
    &
    javascript:void(send())

    Thanks,
    Rounak

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    I was looking on an HTML page. The page contains a line :
    Guys please help me out... I'm stuck with my project.
    It's better to explain your requirement, so that we may be able to help with a proper solution.

    How can I use X to do Y?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am trying to access a site using java code.
    Now this page of the site has a button(image), the code of which i have listed previously.
    I just want to know the request that goes when clicking this image. The HTML of the page navigates to "javascript:void(send())" on clicking the image, which is quite unclear to me as I cant find any definition of send() in the page.

    -Rounak

  • #5
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    any idea guys??
    plz help !

  • #6
    Regular Coder
    Join Date
    Oct 2006
    Posts
    107
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Look for a remote script, be something like this-
    <SCRIPT src="functions.js"></SCRIPT>

  • #7
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    Code:
    class="labelContent button"
    that's a css class. it's for styling.

    Code:
    javascript:void(send())
    http://javascript.about.com/od/reference/g/rvoid.htm

    it stops send from returning a value that might interfere with what's happening, in this case changing pages. look for included js files. i bet you fnid something in it that says window.location blah blah

  • #8
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,507 Times in 2,485 Posts
    Quote Originally Posted by rounakbhansali View Post
    I am trying to access a site using java code.
    This is the JavaScript forum. Java and Javascript are entirely different programming languages, in spite of the confusingly similar names.

  • #9
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey rubenbuhr,

    U r right. This is the case.
    It contains : <script src='js/mega.php'></script>

    Now I would like to ask that how can i execute any function that is defined in this php file using a java code?

    Plz help...

    -Rounak


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •