Results 1 to 2 of 2

Thread: using query strings in urls with dynamic ajax content script

  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default using query strings in urls with dynamic ajax content script

    Dynamic Ajax Content

    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    is it possible to use a query in the url with this script?

    eg
    <a href="javascript:ajaxpage('test.aspx?id=123', 'contentarea');">test</a>
    <div id="contentarea"></div>

    I've tried and it doesn't run the script - is there a workaround?

    cheers

    Terry

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Client side scripts on AJAX imported content generally don't run. If it is all on the server side, then there should be no problem. One thing though, the syntax of the bust cache in this script could be a problem. Try it without that:

    Code:
    var bustcachevar=0 //bust potential caching of external pages after initial request? (1=yes, 0=no)
    If that fixes it we can tweak the script. Otherwise, the problem is likely that part of the imported script is client side.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •