Activity Stream
48,167 MEMBERS
63446 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Unhappy jquery live function ?

    Hi !
    I transfer image title (the image is in iframe) to tooltip without problem.
    But the problem is when the iframe is refreshed the image title changes and the tooltip doesn't.That's why i found the live function which is used for that ?
    To be clearer for you check out the code :
    Code: 
    //replacing the iframe title attribute with the image title (which is actually in the iframe)
    $("#onlineimg").attr("title",$("#onlineimg").contents().find("img").attr("title")); 
    //image attr title
    var chtitle = $("#onlineimg").contents().find("img").attr("title");
    // iframe attr title
    var rtitle = $("#onlineimg").attr("title");
    //tooltip load
    $("[title]").simpletooltip();
    //if iframe title diff than img title alert(0)
    $("#onlineimg").live("mouseover",function(){if(chtitle!=rtitle){alert(0);}});
    
    // the iframe
    <iframe title="" allowTransparency=true scrolling=no frameborder=0 width=45 height=10 src=online.html id=onlineimg></iframe>
    So when the chtitle!=rtitle and refresh the iframe only (not the page) the alert(0) doesn't show.
    What's the problem ?

    Edit : @im4aLL - When the iframe refreshes the image title changes too...So i need to transfer the new image title to the iframe title attribute (in the case i use alert(0) to test only).
    Porsche_maniak Reviewed by Porsche_maniak on . jquery live function ? Hi ! I transfer image title (the image is in iframe) to tooltip without problem. But the problem is when the iframe is refreshed the image title changes and the tooltip doesn't.That's why i found the live function which is used for that ? To be clearer for you check out the code : //replacing the iframe title attribute with the image title (which is actually in the iframe) $("#onlineimg").attr("title",$("#onlineimg").contents().find("img").attr("title")); //image attr title var Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    I actually didn't understand what you want to .... Please give a demo page where i can see the problem....

    else .....

    You may need setInterval/setTimeOut function to Reload. Obviously you need to use Ajax/load function on it..

  4.     
    #3
    Member
    Website's:
    maxneeds.info
    it's not about settimeout

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 6th Jun 2012, 06:22 AM
  2. jquery help(with .load() function)
    By Arpit15 in forum Web Development Area
    Replies: 4
    Last Post: 19th Feb 2012, 02:20 PM
  3. JQuery help
    By xElliex in forum Web Development Area
    Replies: 5
    Last Post: 25th Aug 2011, 10:38 PM
  4. jQuery tooltip help
    By devilzkrazy in forum Technical Help Desk Support
    Replies: 0
    Last Post: 22nd May 2010, 04:24 PM
  5. Introduction to jQuery
    By litewarez in forum Tutorials and Guides
    Replies: 4
    Last Post: 14th Jan 2010, 02:51 AM

Tags for this Thread

BE SOCIAL