Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] open jqtip from javascript call
27th July, 20:40 (This post was last modified: 27th July 20:41 by iamcanadian1973.)
Post: #1
[Solved] open jqtip from javascript call
Basically I want to use qtip like an alert box

I want to do this:

if(json.type == 'error')
{
//open qtip and show json.message
}

I haven't got a clue how?

Thanks.
Find all posts by this user
Quote this message in a reply
28th July, 21:12
Post: #2
RE: open jqtip from javascript call
Maybe...

JS Code
$(document.body).qtip({
   content: {
      text: 'There seems to have been an error...',
      title: { text: 'Error!', button: 'x' }
   },
   position: { corner: 'center' }
   show: { ready: true, when: false },
   hide: false
})

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
28th July, 21:18 (This post was last modified: 28th July 21:21 by iamcanadian1973.)
Post: #3
RE: open jqtip from javascript call
(28th July 21:12)Craig Wrote:  Maybe...

JS Code
$(document.body).qtip({
   content: {
      text: 'There seems to have been an error...',
      title: { text: 'Error!', button: 'x' }
   },
   position: { corner: 'center' }
   show: { ready: true, when: false },
   hide: false
})

Perfect!

Only problem is I want it relative to an element #contact_form and not the body.
Which I figured out. thanks.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Open a modal popup window from a click inside qtip poojakudesia 1 1,147 10th August 19:32
Last Post: Craig
  [Solved] I need the tooltip to stay open when i mouse over it Arcadian 2 1,260 5th April 09:08
Last Post: Arcadian
  [Solved] Ajax call cache problem ulasarican 1 1,428 18th January 15:18
Last Post: Craig
  [Solved] Applying different content to multiple qTips in one call Craig 5 4,044 19th February 01:53
Last Post: teeks
  Open a new tip on a tip close hari41980 3 1,744 31st August 11:49
Last Post: Craig



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