Results 1 to 2 of 2

Thread: Ajax Tab Content Question

  1. #1
    Join Date
    Sep 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Tab Content Question

    1) Script Title: Ajax Tab Content Script

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

    3) Describe problem: Am wondering what or how I can use for external files a 'pdf' and 'txt'?

    Script works great for the example, but so far I am at a loss on how to get a 'pdf' file used. In short trying to use a number of different external files on one page..

    I did set up separately the iframe scripts and that works, but I don't have a clue how to get this working for one tab. I did a search based on it with zero returns regarding an external pdf file reference, figure this is probably not going to be do able. Any help or comments would be appreciated.

    Thanks

  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

    You may be able to do this with a .txt page. I'm not sure but, with a .pdf there is no page_request.responseText - the object from the requested page that gets written to the current document. You would have better luck using, as you said, an iframe for .pdf. You might be able to make up an external page with an iframe on it whose source (src) is the .pdf and load that page via AJAX tabs. There really is no advantage to using AJAX tabs with a .pdf even if you could get it to work as far as I can tell. It would require accessing something other than the .pdf's page_request.responseText though.
    - 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
  •