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

Thread: Problem With Typing Text Script !!!

  1. #1
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Problem With Typing Text Script !!!

    hi !problem with Typing Text Script : http://www.dynamicdrive.com/dynamicindex10/text5.htm - i include external page in my index page . external page is ( example.php = so import Typing Text Script ) & Work this script . now not work script until include ( example.php ) in my index page . what's problem ?? thanks for reply

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Can you provide a link to your page?

  3. #3
    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

    The typing text script should be on the 'top' page. After the external content that it is supposed to animate is added to the page, then it can be called to initialize and animate that content. This can generally be done by means of a polling function.

    To get the particulars of how to poll for the external content, I would need to see the pages involved. It probably would also be possible to simply check for the existence of the required element as a part of the onreadystatechange function of your AJAX script, and run typing text if that element is found.

    Either way though, removing the the external content from the page before typing text is finished with it will probably still cause an error.
    - John
    ________________________

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

  4. #4
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    hi ! i dont care what's problem . . . i attach simple code for you !! thanks for help . NOTE : this file Is : ajax.js ( load content ) + texttypete.js ( script text ) + test.php (external file ) + test.html ( index page ) .

  5. #5
    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

    It's not doing anything. I get:

    Loading... Please Wait...

    but nothing happens after that. I think that the ajax.js file is messed up. It is all one long line with some non-ASCII characters at the beginning.
    - John
    ________________________

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

  6. #6
    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

    Ah, looks like there is just a problem with the ajax.js file when run locally, at least in Opera and FF. I was able to fool them by making it override the test for:

    Code:
    xmlhttp.status == 200
    Something is still stopping it from working for me locally in IE 7. But, I got it working well enough in those others to get the typing text to work. At the end of ajax.js, add this:

    Code:
    if(document.getElementById('example2')){
    var tt=new TypingText(document.getElementById("example2"), 75, function(i){ var ar = new Array("\\", "|", "/", "-"); return " " + ar[i.length % ar.length]; });
    tt.run();
    }
    right after:

    Code:
    loading_effect(0);
    Last edited by jscheuer1; 02-06-2008 at 04:09 AM. Reason: upgrade code
    - John
    ________________________

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

  7. #7
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    thanks. this script good work with FF & Opera but in ie7 is very slow !! example : i have flash header in my index page until load this script ( IE 7 ) stop animated flash and typingtext very slow . i set load speed to 25 ( wow ) but very slow typingtext !!! what's problem ? thanks

  8. #8
    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

    There might not be a way around that. Try it without the Flash. If that fixes it, it is a conflict between the Flash and the script. This is pretty common in IE for simultaneous script and Flash where both are constantly using the CPU to perform actions.

    The only other thing that I can think of that might be affecting this in IE is if you have any links on the page, either hard coded or scripted that use:

    Code:
    href="javascript: . . .
    Without also having an onclick return value of false. But that would probably only have to do with stopping the Flash.
    - John
    ________________________

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

  9. #9
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    sorry ! this week i was to busy . this script without flash is very slow in IE 7 ( include ) so Stack Overflow in IE 7 . what's problem ??

  10. #10
    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

    Quote Originally Posted by why not View Post
    sorry ! this week i was to busy . this script without flash is very slow in IE 7 ( include ) so Stack Overflow in IE 7 . what's problem ??
    That's strange. The script works fine in IE 7 here, so one would think it is something about your page that is causing the problem. A Stack Overflow generally means that something somewhat complex is getting repeated very many times in a very short period of time. Was it doing this with the Flash as well? I mean were you, and/or are you getting a specific error of "Stack Overflow"?

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - 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
  •