Results 1 to 3 of 3
-
15th Mar 2011, 06:55 PM #1OPMemberWebsite's:
maxneeds.infojquery 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>
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
-
15th Mar 2011, 07:22 PM #2Member
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..
-
15th Mar 2011, 08:14 PM #3OPMemberWebsite's:
maxneeds.infoit's not about settimeout
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Live Link Restricter - Choose how many posts a member needs to post live links!
By Exel in forum Webmaster ResourcesReplies: 0Last Post: 6th Jun 2012, 06:22 AM -
jquery help(with .load() function)
By Arpit15 in forum Web Development AreaReplies: 4Last Post: 19th Feb 2012, 02:20 PM -
JQuery help
By xElliex in forum Web Development AreaReplies: 5Last Post: 25th Aug 2011, 10:38 PM -
jQuery tooltip help
By devilzkrazy in forum Technical Help Desk SupportReplies: 0Last Post: 22nd May 2010, 04:24 PM -
Introduction to jQuery
By litewarez in forum Tutorials and GuidesReplies: 4Last Post: 14th Jan 2010, 02:51 AM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...