|
Validation plugin integration
|
|
13th February, 03:43
(This post was last modified: 13th February 03:48 by bruj0.)
Post: #1
|
|||
|
|||
|
Validation plugin integration
Hi, ive managed to integrate the Validation plugin with qtip2 properly.
The example shown in the Demo page only shows the first error message, this is becouse "errorPlacement: function(error, element)" is only called once to set the location of the error messages. The only problem that i had was when using: $('.selector').qtip('option', 'content.text', 'new content'); It wouldnt refresh the qtip text so i had to destroy and recreate it everytime the error message changes, if anybody knows why please post here or email me. The implementation that works is by hooking "highlight", "unhighlight" and "showErrors", as follows: http://paste.ideaslabs.com/show/CV3fjxNjoj PS: The [ CODE ] tag in this forums sucks
|
|||
|
13th February, 06:04
Post: #2
|
|||
|
|||
|
RE: Validation plugin integration
It doesnt suck, i was using it wrong
![]() JS Code
|
|||
|
13th February, 17:33
Post: #3
|
|||
|
|||
|
RE: Validation plugin integration
Mmm, is this based off the http://craigsworks.com/projects/qtip2/demos/#validation demo?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
13th February, 21:53
Post: #4
|
|||
|
|||
RE: Validation plugin integration
(13th February 17:33)Craig Wrote: Mmm, is this based off the http://craigsworks.com/projects/qtip2/demos/#validation demo? Yea but i changed it a lot, like i said it has a bug, do you want me to update it so it works on the demo? |
|||
|
19th March, 04:00
(This post was last modified: 19th March 04:03 by sparky672.)
Post: #5
|
|||
|
|||
|
RE: Validation plugin integration
A little off-topic but the software running this discussion forum is not rendering correctly in Safari 4.1.3 Mac or Firefox 3.6.13 Mac.
Within the code sections, instead of seeing my highlighted words as per the URL query string... ?highlight=validation+demo I'm seeing the raw HTML within the code sections above. So I can actually see this "<span class="highlight" style="padding-left: 0px; padding-right: 0px;">validation</span>" mixed in with all the raw javascript code making it impossible to read. |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| qTip2 and Wordpress integration Tutorial | newbie2012 | 0 | 184 |
17th April 03:35 Last Post: newbie2012 |
|
| [Solved] Personalize the plugin download | Unpassant | 4 | 644 |
1st December 09:22 Last Post: Unpassant |
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





