Call ASP page within JavaScript function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakshman99
    New Member
    • Jul 2006
    • 3

    Call ASP page within JavaScript function

    is it posiable to call a asp page
    with in java script function ?

    how to do this ?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Yes, Ajax. See an example.

    Comment

    • pronerd
      Recognized Expert Contributor
      • Nov 2006
      • 392

      #3
      Originally posted by lakshman99
      is it posiable to call a asp page
      Sure if you just want to call the page then it would be something like this.

      Code:
            window.location.href='http://yourDomain.com/blahblah.asp';
      If you are wanting to get data from a page, without reloading the current page, then you will need AJAX.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        True, if that's how you interpret the question :)

        Comment

        Working...