|
[Solved] qTp modal dialog , on page load
|
|
19th August, 20:26
Post: #1
|
|||
|
|||
|
qTp modal dialog , on page load
Referring to : http://craigsworks.com/projects/qtip/dem...ects/modal
I this this modal is nice and simple, here is one question that I see no one had asked so far, or perhaps I've not read the forum thoroughly. How do you enable this modal on body load .. like <body onload="some action"> instead of clicking on it to appear ? Thank you |
|||
|
20th August, 09:13
Post: #2
|
|||
|
|||
|
[Solved] qTp modal dialog , on page load
The best way to do this is to aply the tooltip to the document body and use the show.ready functionality (combine it with the code already present in the demo):
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
20th August, 11:21
Post: #3
|
|||
|
|||
|
qTp modal dialog , on page load
Thank you for your answer Craig, I just can't get it working .. I'm really a newbie to jquery .. especially this advanced functionality that you use. I've tried several combinations with the code you wrote in previous post, can you help me a bit more? or if you're out of time .. link me to some jquery tutorials so I can work my way?
Thank you |
|||
|
20th August, 11:51
Post: #4
|
|||
|
|||
|
qTp modal dialog , on page load
No problem c0mrade. Here's the full code to get you going (hopefully, it's untested!):
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
20th August, 16:04
Post: #5
|
|||
|
|||
|
qTp modal dialog , on page load
tnx Craig, its working .. the black thing doesn't appear on the rest of the page with the code above .. but I browser trough the code than tried some changes and I hit it, just changed this line
JS Code
toJS Code
brilliant.. tnx a zillion
|
|||
|
13th August, 16:13
Post: #6
|
|||
|
|||
|
RE: qTp modal dialog , on page load
+1 for this - thanks!
I've found that using target: $(window) keeps it in the viewport. using target: $(document.body) makes it go in the middle of the body which is could be further down on a long page. Also, I changed $('a[rel="modal"]:first').qtip( to $('body').qtip( Which meant I didn't need to put a href with rel in - seemed to work but I had to be quick so worth more testing... |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





