Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bottom Javascript
13th March, 09:30
Post: #1
Bottom Javascript
Hello,
I've found this beautiful js, but it does seems to not work correctly if it is not included at the bottom of the page.
In our work it would be a problematic change to do this. Is there a way to make it work while including it in the head part of the html?

Regards
Andrea Grassi
Find all posts by this user
Quote this message in a reply
13th March, 15:26
Post: #2
Bottom Javascript
Hi a.grassi

I'll be updating the documentation soon with instructions for people who including the files at the bottom of the page for isn't practical. If you use qTip at the head of the page, make sure that you only create the tooltips after the document is loaded like so:

JS Code
$(document).ready(function()
{
   //Create tooltips and any other DOM manipulation here
});


Hope this helps!

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
13th March, 15:31
Post: #3
Bottom Javascript
Thank you for your answer. Actually I did found a solution.
The solution was to load the script with $.getScript function of jQuery and adding the call to you qtip in the callback.
If I just used like you did it wasn't working (I was already using .ready method). And if I just include on the bottom of the page it wouldn't load correctly on ie6 (a problem about document.namespace['v'] it seems).
Anyway thank you. the script is wonderful!
Find all posts by this user
Quote this message in a reply
13th March, 15:36
Post: #4
Bottom Javascript
a.grassi Wrote:Thank you for your answer. Actually I did found a solution.
The solution was to load the script with $.getScript function of jQuery and adding the call to you qtip in the callback.
If I just used like you did it wasn't working (I was already using .ready method). And if I just include on the bottom of the page it wouldn't load correctly on ie6 (a problem about document.namespace['v'] it seems).
Anyway thank you. the script is wonderful!

Could you elaborate more on the ie6 problem and how to reproduce it? Always nice to iron out bugs.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
13th March, 15:38
Post: #5
Bottom Javascript
I'll try to do my best while not working Smile I'll get back on this topic next days
Find all posts by this user
Quote this message in a reply
16th March, 23:17
Post: #6
Bottom Javascript
Hi a.grassi,

The header include issues are now resolved as of beta2, which you can grab right now on the downloads page.

Thanks for the bug report!

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] How to call javascript function within Qtip? When2Meets2 7 828 19th September 16:49
Last Post: Craig
  [Solved] Change content in javascript weber 1 956 20th June 15:43
Last Post: weber
  [Solved] qtip clone at bottom of page becomes visible sometimes codeulike 1 754 26th April 11:58
Last Post: Craig
  Multiple links loading external javascript page Kao006 1 1,218 24th January 18:58
Last Post: Craig
  javascript Newbie (but not to website dev.) needs some direction Lindsayanng 0 478 28th June 06:27
Last Post: Lindsayanng
  [Solved] Activate tooltip from alternative element/ via javascript. mightyhaggis 2 1,219 2nd May 15:00
Last Post: mightyhaggis
  display popup at the bottom of the window canal 2 995 20th April 14:54
Last Post: Craig
  Call javascript function within Qtip? Meista 1 2,066 1st April 14:06
Last Post: sveiki
  [Solved] getting content from outside javascript zwiep 0 550 11th March 11:16
Last Post: zwiep
  [Solved] qtip is show's bottom of the page prasofty 2 1,129 11th February 09:40
Last Post: prasofty



User(s) browsing this thread: 1 Guest(s)