Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Dynamic Ajax Content Refresh Error in IE

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

    Default

    Hi. Glad you got it working at least. To answer your two concerns:

    Second, there are two limitations I have found. The first is that, like all javascripts, it slows down the load of the main page into which the dynamic content is to be loaded.
    This is inevitable, as what you're doing is basically requesting the pages to be embed first from the client side to the server side, then served back to the client. If all you're doing is embedding external pages to the current as soon as the page loads (instead of dynamically based on user action), then Ajax isn't the best way to go about it, but rather something like SSI (server side includes) or PHP (include()). But I have to assume your pages don't support neither, so you're looking for a client side script for the task.

    The second limitation is that I cannot call htm files that have their own javascripts inside them. I know that js scripts should be loaded separately, but this particular script (as is the case with all Dynamic Drive scripts) is just open code, not a js file that can be called.
    Well, any DHTML script theoritcally can be put inside a external .js file and work as if it's inline on the page. There are certain scripts that modify the page in a way that's not operable if contained inside a DIV, but for the most part, it should work. What's the script you're trying to call?

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

    Default

    Good morning, Dynamic Drive Administrator. I am delighted that you are following up on my follow-up.

    On the first matter, concerning the loading time for the page, you are right: this is inevitable, and it's really more a matter of the end-users catching up to the modern demands of Websites they visit. Although we cannot simply dismiss the millions of people who have slower connections based upon what remains at its heart a very old technology in telephony, we have to keep moving ahead in reliance on greater and greater general public access to faster means of connecting to the Web.

    On the second point, I am using the Dynamic Drive "Fading Ticker Tape Script," which I modified so that, instead of fading, it "snaps" from one screen view to the next to the next and so on. In all, I embed about 35 snap views before it returns to the beginning. All of my efforts to pull in those 35 lines via an XML file have failed, primarily because (I suspect), I'd be executing a calling script within the Fading Ticker Tape Script, and succesfully running one javascript within another javascript is something I've never accomplished, not even once. (And I shall concede that years ago they should have euthenized us old FORTRAN programmers so we wouldn't have to suffer in the modern era of programming.)

    Anyway, that Fading Ticker Tape script is just a gem: it loads quickly, even with dozens of items that include graphics, links, and straight text; and it's stable on every browser you could imagine. The problem, as I noted, is that pulling it into even a simple DIV container (which is all I need for it) via that AJAX Dynamic Content script keeps it from running. It just hangs at the line that reads "Loading Headlines" right before the script begins. That means I'm still stuck with having to leave the code in the main Web page and update it every day right there for the new items that are to be put in. Getting it into its own little htm file would have allowed me to update the content within the Fading Ticker Tape script without having to open that behemoth main Web page all the time.

    If you have a suggestion, I shall do whatever I can to implement it. Obviously, this one is considerably more difficult than my last set of questions, which had to do with my not paying strict attention to the instructions to begin with. Should you have a thought on how to make the Fading Ticker Tape script execute within a file that would be called by the AJAX Dynamic Content script, please let me know.

    Otherwise, I must thank you one last time for all the help you have so patiently provided.

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

    Default

    Hmmm if you could elaborate on what you mean by:

    which I modified so that, instead of fading, it "snaps" from one screen view to the next to the next and so on
    that would be very useful information before I look at whether the fader can work with the ajax script. Better yet, if you have the full source code to the modified script on a blank page, you can just post that URL as well.

  4. #14
    Join Date
    Nov 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Good evening, Dynamic Drive Administrator.

    The script as modified can be opened with this link. This is a text file. The DIV container has this script with a header image above it, and that's all there is in the container.

    The modifications do nothing more than hold the screen color at one value (instead of starting out at one value and fading to another), and make each successive headline "snap" in rather than fade in.

    The part from
    //Headlines

    to

    //****End News Feed****

    is what has to be replaced every day, and it's only the latter part of each successive line that gets replaced. (I do this with a Word macro that calls an Excel file that puts the current elements into their places and turns the result into a text file. It's sort of like a cheap version of using the Excel file as an XML file, but that's all done within my own computer, which creates a text file to replace that part between those two annotations above.)

    Anyway, I greatly appreciate the extended help.

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
  •