Results 1 to 4 of 4

Thread: Ajax Tabs Content - Response.Redirect

  1. #1
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Ajax Tabs Content - Response.Redirect

    1) Script Title: Ajax Tabs Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tent/index.htm

    3) Describe problem: I've read the forum post about creating links inside the Ajax content pages, so they open in the Ajax div (<a href="javascript:linkjax('test.htm', 'ajaxcontentarea', 0)">), which is perfect. However, what I'd also like to do, is to do the same but through an ASP Response.Redirect. Is this possible at all? Thanks for your time, in advance.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,000
    Thanks
    44
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    An asp Response.Redirect is only useful before a page starts to load. It would have no effect inside of a loaded page, which is what the Ajax Tabs 'top' page is. Once the top page loaded, it makes no difference what you do with asp unless you are loading a page into a frame or iframe - not what this script does.
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So it's not possible?

    The reason I ask is that I'm using an email form, which, once submitted, uses a Response.Redirect to send the user to a thank you page. I'd like this thank you page to be within the Ajax tabs, as this is what my site is based around.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,000
    Thanks
    44
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    You could have Ajax tabs load a new external content page instead of using an R.R but, an R.R would redirect the entire page.

    If you are already using asp, there are probably similar looking asp type interfaces that would be able to utilize the R.R in a way that looks like what you are after. In fact, if your form were inside of an iframe - say if the page's content that gets loaded into the tab already has an iframe on it with the form inside that, it could work.

    But, I don't think you or very many people realize what Ajax does. It does not load a page into the tab or wherever. It loads the HTML content of that page into an element on the existing top page. For all intents and purposes, it is still just one page.

    Furthermore, this all involves the use of javascript. Javascript is a client side language. It exposes your process to the hacking and unreliability that goes with any client side language.
    - 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
  •