|
[Solved] Trigger qtip on validation failure
|
|
30th April, 10:59
Post: #1
|
|||
|
|||
|
[Solved] Trigger qtip on validation failure
Hi, I'm trying to combine qTip with the jQuery validationEngine - when a form submitted via ajax comes back as failed with errors, I want to generate a qTip popup. It's unusual to want to overlay the validation errors with a pop up, but on this occasion there is a good reason for it!
In this code, the failure function should trigger the qTip pop up, but the url for the content is never requested. I have tried replacing $(this) with the $('input#eligibility') selector, but this makes no difference. I have also tested that the failure callback gets called, the console.log('test') line works as expected. Any help greatly appreciated! JS Code
|
|||
|
1st May, 19:40
Post: #2
|
|||
|
|||
|
RE: Trigger qtip on validation failure
franko, add into your code show.ready as true, since you're binding it on an event and want it to show immediately:
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
2nd May, 13:59
Post: #3
|
|||
|
|||
|
RE: Trigger qtip on validation failure
Thanks for the reply Craig. I tried your suggestion but this results in neither the validation errors or the qtip content being shown. If I comment out the qtip code, the validation errors appear as they should, but there seems to be some sort of conflict with the code i have at the moment. Any other ideas?
|
|||
|
4th May, 11:11
Post: #4
|
|||
|
|||
|
RE: Trigger qtip on validation failure
Got it sorted - problem was using $(this) from my callback - once I changed it to the element ID everything worked correctly. Thanks again Craig
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




