Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Script problem (interference somehow)

    I have a problem I just can't seem to solve. Seems to be an interference of two scripts.

    But have checked no duplicate function names or variables. Tried altering script order too.

    The one that breaks, breaks on this line:

    $('*[@title^="ajax:"]').each(function(index){ ...

    which I don't fully understand. The expression is a jQuery loop thing I believe. index seems to be null. I can't see where index is defined.

    What the code at this point aims to do is check for the phrase ajax: in all links on the page and do some manipulation so that the contents of the link are shown in a a tooltip.

    The problem is not about ajax.

    The full script is here: http://www.javascriptkit.com/script/...xtooltip.shtml

    The problem occurs when the page includes the editor script, such as here: http://www.tji-java-ide.com/beijing/...blogs&Itemid=1

    The links on the top of the page work fine when there is no editor present, such as here: http://www.tji-java-ide.com/beijing/...tpage&Itemid=1
    Last edited by kina; 12-04-2009 at 02:50 AM.

  • #2
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    index just stands for the array index. The first part must be shorthand for an array of all the elements matching the pattern.

    The editor doesnt use jQuery.

    Maybe I can try replacing this part of the script to use standard js rater than jQuery...?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •