Results 1 to 4 of 4

Thread: Dynamic Ajax Content kill all my javascripts

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

    Exclamation Dynamic Ajax Content kill all my javascripts

    Hi, everytime I use dynamic content with this ajax script, automatically and instantly the other javascripts running are closed/stoped/killed. It happends when I click on the links.

    The javascript included into the websites is not executed neither.


    So there are 2 problems, the actual javascripts running are closed, and the javascript included in the incoming pages are not executed.


    You can see by yourself the problem at: http://english.adooland.com . (this is a beta website and is not open to the public yet).

    As you can see, there are some dynamicdrive javascript running, the floating bar, and the drop down menus you can see when you move the mouse on the small pictures of girls, boys, etc.

    Both are killed for example, when you press on HOME in the main menu on the left... or in any of the last forum posts shown in the main page... and is excecuted the ajax javascript that I have setup on the whole site. After that, the menu (is also javascript) doesn't appear, and the floating bar is killed and also all the menus. Is the total destruction...

    The problem still happening even when I use this ajax content script on a small part of the website, as for example dynamicdrive does in the tryout demo.


    Last edited by Olisur; 02-06-2006 at 03:37 PM.

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

    Default

    All works fine here...
    Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8) Gecko/20051201 Fedora/1.5-1.1.fc4.nr Firefox/1.5
    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!

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

    Default

    What is All for you? What do you mean?

    Have you checked the link I posted? Scripts stops when using the ajax script. Tested in IE, FF and Opera.

    Please click on the Home link in the main menu and see how the floating bar disappear , the drop down menus doens't work and the main menu is not shown any more.

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

    Default

    Ah, I see. Firstly, we have this:
    Code:
    woco_moz = {
    	init : function (dbSrc, oEl) {
    		oEl = (typeof(oEl) == 'string')? document.getElementById(oEl) : oEl;
    At some point, this is called with (I presume) an invalid ID.
    Secondly, it is interesting that the whole page seems to be reloaded when clicking "Home." Try setting onclick="return false;" in the home link.
    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!

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
  •