Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Help With Dynamic Ajax content

  1. #1
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help With Dynamic Ajax content

    Can't figure out what I have wrong. It's working with FF but not with IE. Here's the page where I have the script posted:

    http://www.recruitingware.com/index.htm

    Thanks for any help you can offer.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question., in this case, http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    Ok, I see two problems. Firstly, for the Ajax link "Online Application", the reason it doesn't work in IE isn't because of the Ajax script, but rather, just IE being picky about the HTML of the external page. For application.htm, remove the table tags and use DIVs instead for formatting. It seems IE doesn't like table tags being inserted into a DIV tag, in this case, <DIV id="content">

    Another problem exists in your second link, "Candidate Tracking". "You've specified "rightcolumn" as the DIV to insert the contents into, but this DIV doesn't exist on your page.

  3. #3
    Join Date
    Oct 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    I am also having problems with this Dynamic AJAX content script
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm
    I can┤t have it running fine in http://www.virtualorbis.com/web/tabs2.htm


    However the other AJAX scipt
    http://www.dynamicdrive.com/dynamici...axincludes.htm
    works fine here http://www.virtualorbis.com/web/tabs.htm

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The problem is due to the source of the embedded pages, for example: http://www.virtualorbis.com/web/comodo2.htm It contains a JavaScript. You can't use Ajax to load pages with external JavaScript in it, at least not in IE. You'll need to remove that JS from the page, and load it via the loadobj() routine included with the Ajax script.

  5. #5
    Join Date
    Nov 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What about embedded script and styles?

    Hi all,
    I am trying to load page containing photoalbum script:
    http://www.dynamicdrive.com/dynamici...photoalbum.htm
    through ajax script
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    That page has embedded style definitions (copy-pasted) but it cannot be loaded (I get empty page).

    However if I invoke page with photoalbum directly via a href, it works.

    Can you tell me, what can be the problem?

    Kind regards
    Milan

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    If your photoalbum page has directly embedded CSS on it, unfortunately Ajax won't be able to properly load it, not in IE6 at least. If you can completely separate the CSS and scripts from the photoalbum page by putting them in external files, then you can try loading them dynamically via loadobj().

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, because <style> tags need to go in the head, while the script puts the code in a <div>. I should hope the script parses out <html>, <head> and <body> tags from the code it reads in; if not, you shouldn't have those in the page you want to read in, only the contents of the <body>.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Nov 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problem continues

    Thank you for response!
    However, the problem continues.
    I have isolated embedded style from photoalbum page (test.html) and put it to css/gallery.css.
    Then I defined a href on index.html as:
    href="javascript:ajaxpage('test.html', 'Content');javascript:loadobjs('css/gallery.css')"

    I have:
    1. <div id="Content"> on index.html
    2. test.html in the same level as index.html
    3. gallery.css in css folder

    I debugged ajax.js with alerts and everything seems to be ok:
    1. gallery.css is loaded (it exists in loadedobjects string)
    2. ajaxpage detects browser correctly and invokes method loadpage

    Also, I expereminted with the following on test.html (photoalbum page which should be invoked by ajax):
    1. remove css declaration from head
    2. declare css with LINK
    3. declare css with import
    4. remove tags except body content

    But I get no response in each situation.

    I would really appreciate any further hint.

    Thank you.
    Kind regards
    Milan

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Are you sure there isn't something that stops the CSS being applied? Something like:
    Code:
    body > .text { 1:2;3:4; }
    obviously won't work, as the page isn't being loaded into a <body>.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Nov 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default live example

    Hi,
    you can see the problem live at http://www.fss.org.yu/agaton

    Thanx for the response in advance
    Kind regards
    Milan

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
  •