SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot pavanpuligandla's Avatar
    Join Date
    Sep 2008
    Location
    hyderabad
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to pass page url as parameter to an AJAX call?

    Hi,
    i' need to load a content management system webpage on the front end system using .net, for that i'm storing my page URL's in sql database,
    I'm now reading the page url using javascript and putting it in a variable,
    i now need to pass this Variable to my .aspx page using AJAX Call.

    How can i pass my own parameters to ajax call and in response i need to print the content from the database in my .html page.

    can anyone please help me out how to do this?

    Thanks,
    PHP Professional turned ASP.NET Professional

  2. #2
    Forums Designer
    Join Date
    Jun 2004
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can add it exactly the same way as to normal forms. You can add it to url like ajax.asp?url=whatever or you can send it using POST method.

    Some examples with jQuery:
    http://docs.jquery.com/Ajax/jQuery.g...tacallbacktype
    http://docs.jquery.com/Ajax/jQuery.p...tacallbacktype
    Click on "Example" tab to see some examples. Whatever Ajax framework you are using, code won't be too different from those jQuery examples.


Bookmarks

Posting Permissions

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