anutron / clientcide
- Source
- Commits
- Network (5)
- Issues (17)
- Downloads (8)
- Wiki (1)
- Graphs
-
Branch:
master
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
The Clientcide Javascript Libraries — Read more
-
DatePicker does not work correctly with weekStartOffset > 0
1 comment Created 8 months ago by anutron -
Comments
karptonite
Mon Sep 28 09:14:54 -0700 2009
| link
While I really like using StickyWins for prompts and forms, we have enough Opera users that this bug makes me reluctant to implement them any further on our site. I would be very grateful (as would our Opera users) if there were a fix for this!
-
DatePicker's draggable option doesn't work as documented
0 comments Created 8 months ago by anutron -
Lightbox overlayStyles not working after updating to revision 805
3 comments Created 8 months ago by anutronComments
I got an email telling me that this issue is in a wont-fix status in google? Is this for the google issue but not for clientcide?
No, I plan on supporting it and fixing it, I'm just not using google code anymore.
I'll try and get back to the clientcide bugs soon. I've got some mootools focused things that require my attention for the next week or so...
-
Comments
-
-
Remove event(s) doesn't work in Element.Delegation module
0 comments Created 8 months ago by anutron -
Datepicker and weekStartOffset: 1 And DateFormat '%d/%m/%Y' or '%d/%m/%y'
0 comments Created 8 months ago by anutron -
FormValidator.Tips not appearing in Firefox 3.0.10
1 comment Created 8 months ago by kaoz70I'm not sure if its a code problem, but after updating both Clientcide and Firefox to latest it does not appear. Ive checked the demo site and it works there.
Also if I switch tabs, and go back it then appears, which would seem a FF issue, but as I sayd before, the demo code works.
Test site: http://www.arrarray.com/contacto.html
Comments
-
FormValidator.Inline scrollFxOptions ignored
2 comments Created 7 months ago by bowserseniorInside FormValidator.Inline:
BAD:
validate: function(field, force){ ... if (!fx && window.Fx && Fx.Scroll){ fx = new Fx.Scroll(par, { transition: 'quad:out', offset: { y: -20 } }); par.store('fvScroller', fx); } ...SHOULD BE:
validate: function(field, force){ ... if (!fx && window.Fx && Fx.Scroll){ fx = new Fx.Scroll(par, this.options.scrollFxOptions); par.store('fvScroller', fx); } ...Comments
bowsersenior
Fri May 08 16:55:46 -0700 2009
| link
Patch submitted via lighthouse:
https://mootools.lighthouseapp.com/projects/24057-mootoolsmore/tickets/54 -
I must be doing something wrong, but I have tried the demo and the code in the docs and neither one work. I have spent all day looking at the code (including the source from the demo page) and have not had any success. I totally love Moo Tools and I want to love the Clientcide library too, but please please please help me get there.
Sincerely
GraComments
TabSwapper does work. This is not a bug. I suggest you post a comment (with a link to an example!) in the google group: http://groups.google.com/group/clientside
-
What steps will reproduce the problem?
1. We can see the other slides, they are not passed on display:noneThe bug is also here on your demo on
http://www.clientcide.com/wiki/cnet-libraries/08-layout/04-simpleslideshowIt happen on IE7, works fine on firefox
What is the expected output? What do you see instead?
I tried to add some lines on the simpleslideshow.carroussel class near
those lines but can't fix it :(this.element = new Element('div').wraps(this.container).setStyles({
width: this.container.getSize().x, overflow: 'hidden', float: 'left' }); this.container.setStyles({ width: this.options.sliderWidth, position: 'relative', overflow: 'hidden' });Thx for answer :)
Comments
-
autocompleter script and opera - old version on clientcide ?
1 comment Created 6 months ago by AvricotHi
Just take opera, go here :
http://www.clientcide.com/wiki/cnet-libraries/11-3rdparty/02-autocompleter.local
Try to type something.
I got this error :Error:
name: TypeError
message: RegExp.prototype.test was called with the wrong number of arguments
stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'Well i have look around for this bug, and it seems that the author has fix it, but we don't have the last version on clientcide, so you should just update it :)
http://digitarald.de/project/autocompleter/Comments
-
Fupdate.AjaxPrompt and StickyWin caption option
1 comment Created 6 months ago by dci2112unlike the Fupate.Prompt class, the Fupdate.AjaxPrompt doesn't support the "caption" option. the StickyWin caption is hard coded in the ajaxPrompter function. It should look likes this maybe:
makeStickyWin: function(formUrl){ if (this.swin) return this.swin; this.swin = new this.options.stickyWinToUse($merge({ showNow: false, requestOptions: this.options.requestOptions, onHide: function(){ this.win.empty(); }, url: formUrl, handleResponse: function(response) { var responseScript = ""; this.swin.Request.response.text.stripScripts(function(script){ responseScript += script; }); var content = this.options.useUi?StickyWin.ui(this.options.caption, response, this.options.stickyWinUiOptions):response; this.swin.setContent(content); if (this.options.requestOptions.evalScripts) $exec(responseScript); this.element = this.swin.win.getElement('form'); this.initAfterUpdate(); this.swin.show(); }.bind(this) }, this.options.stickyWinOptions)); return this.swin; },Comments
-
Hi Aaron
Not sure if this is a bug or not but I think it is atleast an issue.
I decided to have a play around with the PopupDetails but found that I was constantly getting an error.
opt.stickyWinToUse is not a constructor
http://www.buyaphoto.net/test2/js/clientcide-trunk-2.1.0.js
Line 10142
I even tried copying and pasting the example from here http://www.clientcide.com/docs/UI/PopupDetails#PopupDetail
Still the same error.
Regards
Dean
Comments
-
There is no effect the first time (and only the first time) you click next/prev on the SimpleSlideShow.Carousel() in IE. The same goes for SimpleImageSlideShow.Carousel().
The issue is found here: http://www.clientcide.com/wiki/cnet-libraries/08-layout/04-simpleslideshow
I'm running IE8 on Windows 7.
Comments
claudio5678
Thu Aug 20 16:58:17 -0700 2009
| link
That issue seems to happen in all non-gecko browsers.
To fix that you have to add the following code at the bottom of the SimpleSlideShow.Carousel.initialize() function:if (!Browser.Engine.gecko) { this.fx = this.fx || new Fx.Tween(this.container, { property: 'left' }); this.fx.start(-this.slides[this.now].getPosition(this.container).x); }You can add that after the line "this.parent(options);" but it's better to refactor the class or extend it.
-
dbug throws "Uncaught TypeError: Illegal invocation" in Google Chrome
3 comments Created 5 months ago by OffroadcodeFound this one in our code today when a client booted up Chrome to show off the site. Lots of egg on face. Anyway, seems Chrome throws a wobbler on any dbug statements.
Sample code to run in Chrome:
<head> <script type="text/javascript" src="mootools-1.2.3-core-nc.js"></script> <script type="text/javascript" src="mootools-1.2.3.1-more.js"></script> <script type="text/javascript" src="clientcide.js"></script> <script type="text/javascript"> dbug.debug( "Hello I'm working" ); // Chrome will goose right here var obj = { name: "test", data: [] } dbug.debug( obj ); dbug.debug( "contents of obj are: " + obj ); </script> </head> <body> </body>Not had time to look into it much yet as the debugger in Chrome is horrid but here for reference so its not forgotten. For now I've just commented out all our dbug calls which is a bummer as thats the whole point of using dbug instead of console :(
Comments
Offroadcode
Tue Jul 07 07:23:43 -0700 2009
| link
BTW this is me using version 2.0.172.33
Just tested in chrome 3 and it's working fine. closing this ticket; let me know if it still isn't working for you.
Offroadcode
Mon Nov 02 03:04:54 -0800 2009
| link
Funny enough I was hacking around with this on Friday. I'm still running V2 as thats what the client has and its still throwing the same error. Will keep digging and see what I can find for you though.
-
Autocompleter overflow scrolling not correct
1 comment Created 5 months ago by themarcinI found that Autocompleter's scrolling for overflow is bugged. It obviously isn't on the demo page, but in the trunk available at the download page it is. This is a small patch I made from the fix that helped me:
Context:
if (this.overflown) { var coords = this.selected.getCoordinates(this.choices), margin = this.options.overflowMargin, top = this.choices.scrollTop, height = this.choices.offsetHeight, bottom = top + height;Old:
if (coords.top - margin < top && top) this.choices.scrollTop = Math.max(coords.top - margin, 0); else if (coords.bottom + margin > bottom) this.choices.scrollTop = Math.min(coords.bottom - height + margin, bottom);New:
if (coords.top - margin < 0 && top) this.choices.scrollTop = Math.max(coords.top - margin + top, 0); else if (coords.bottom + margin + top > bottom) this.choices.scrollTop = Math.min(coords.bottom - height + margin + top, bottom);Context:
} if (this.selectMode) this.setSelection(); },Comments
clientcide just redistributes this code, please file autocompleter bugs here:
http://digitarald.de/project/autocompleter/I've emailed the developer about this issue.
-
SimpleCarousel breaks in IE when no buttons are present
1 comment Created 5 months ago by dynedainWith the latest Mootools core and more (1.2.3 and 1.2.3.1 respectively) along with clientcide 2.1.0, if you create a simplecarousel without any buttons (don't pass any existing elements as buttons) then IE throws an error message when trying to use document.id() to get the button to change its state to active.
Comments
-
I've had problems with positioning the autocompleter. The relative-option doesn't seem to work as expected. This line of code causes this:
if (this.options.relative || this.element.getOffsetParent() != document.body) {
I think this should be, so the option won't be overridden:
if (this.options.relative && this.element.getOffsetParent() != document.body) {
Comments
clientcide includes the autocompleter plugin, but it's author is harald kirschner. you should file this ticket there: http://digitarald.de/project/autocompleter/
I'll email him and let him know about it.
-
Internet Explorer needs a ; after window.execScript(text) in $exec function on Clientcide 2.1.0 compressed.
Comments
I don't think this is accurate. $exec is defined in Browser.js in MooTools Core. It's possible that I'm missing a semicolon somewhere in the Clientcide codebase, but that's not in the Clientcide codebase, and I doubt that it's missing one (....looking at the code, it is not).
-
hey Aaron!
just a quick question about the MooScroller (cnet 1.2)...
I can't seem to make the example work somehow...
I just copied all the code from the example.I use cnet 1.2 and the newest moo-core (1.2.3) and moo-more (1.2.3.1) but whatever I try, Firebug always says >>
"document.id(content) is null"
in this MooScroller-line >>
this.content = document.id(content).setStyle('overflow', 'hidden');I included the "$E" and "MooScroller", but I also tried the complete cnet lib.
Thanks for your help & thumbs up on your great work on moo!
yougene
Comments
When you say cnet 1.2, do you mean Clientcide 2.0.3 (http://www.clientcide.com/js) ?
Secondly, if document.id(content) is null, it means that you are not passing in a valid element reference. I.e. whatever you are passing as content to document.id is not an element or an element's id.
Are you using domready?
Questions like this should go to the forum, not as an issue in github:
-
Text input disappears in IE6 when using TabSwapper with smoothSize set to true
1 comment Created 4 months ago by OffroadcodeThis was a pig to find and fix.
I have three tabs, first has a input box on it. Switch between the tabs and the text box disappears. Its not a hasLayout issue as its an input box which should have it anyway. After much hackery I found that if you set smoothSize to false it works a treat.
Will try to knock up a test case for it if I get time.
Comments
-
If I use this format in input value, 22/09/2009 (22 September) becomes 02/10/2010 (2 October).
Example:HTML:
JS: new DatePicker($('calen'),{
'format': '%d/%m/%Y' });Comments
HTML was: [input type="text" value="22/09/2009" id="calen" /]
-
Browsers: All
Issue: Close button should be in upper right of StickyWin instead of upper right of screen.
Reason: Close button is position:absolute, but the parent has no positioning.
Demo: http://www.clientcide.com/docs/UI/StickyWin.UI (pick a demo, look for the close button).
Notes: When used with modal this problem does not show, as the outer parent is positioned.
Fix: Pull the corrected code:
git://github.com/SamGoody/clientcide.git (1048db)Comments
-
Lightbox doesn't handle urls with spaces in them
1 comment Created 3 months ago by sharkbrainguyIf you add anchors to your lightbox with hrefs that contain spaces, they don't display correctly in FF3.
Element.setStyle('background-image', 'url(' + foo ')');doesn't seem to work if foo contains spaces. I changed a line
nextEffect: function(){ switch (this.step++){ case 1: - this.image.setStyle('backgroundImage', 'url('+this.images[this.activeImage][0]+')'); + this.image.setStyle('backgroundImage', 'url('+escape(this.images[this.activeImage][0])+')');And now it's working for me, I've only tested it in a few browsers but it works in at least FF3 and IE7.
Comments
-
I am using clientcide-trunk-2.1.0-compatible.compressed.js. When implementing FormValidator.Inline, the ignoreHidden property is not ignoring hidden fields, and therefore my form never validates.
Comments
first, formvalidator is now part of mootools more, not clientcide (no big deal).
secondly, looking at the code, it checks the display property for visibility. note that this does not apply to <input type="hidden">, which you shouldn't have any validators attached to.
If you have a form that's validating a field whose display styles is none, can you post a url to it? Or recreate it using http://mooshell.net?
-
Autocompleter.JSONP doesn't cache properly
1 comment Created 2 months ago by claudio5678The Autocompleter.JSONP uses Request.JSONP to request data. Each request on that class sends a callback key parameter in order to handle the response data. The value associated with that key is
'Request.JSONP.request_map.request_'+ indexIndex is the number of times Request.JSONP was called on that page.
Since that index's always growing, the request url changes all the time and the caching process gets broken.A simple scenario would be like this:
The user types "auto" on the autocomplete field. A request is made to:
url + "?callback=Request.JSONP.request_map.request_0&query=auto"Now the user continues typing, "autocomple". As expected, a new request is made to:
url + "?callback=Request.JSONP.request_map.request_1&query=autocomple"And now the user backspaces until the field reads "auto" again. At that time, a new request is made to:
url + "?callback=Request.JSONP.request_map.request_2&query=auto"The result works as expected but, since the url changed (index was zero and now is two) the browser can't possibly cache these results.
Considering autocomplete generates a reasonable ammount of traffic, it woud be appropriate to find a way to benefit from caching.
As a proof of concept, I added:
Request.JSONP.counter--;to the Autocompleter.JSONP.queryResponse method. This way the index is always zero and the requests get properly cached. Of course this isnt' reasonable as a solution, but it proves the point: Autocompleter.JSONP could have better caching.
Comments
autocompleter is really a 3rd party script (here: http://digitarald.de/project/autocompleter/). The caching concept makes sense, but really Harald (the author of it) should handle this. I'll mention it to him.
-
One symptom of this bug was an infinite loop of resize calls (Modalizer.resize()) in IE7--initiated by the 'resize' event listener on the Modalizer. The workaround I found was to modify the StickyWin.destroy() function to first call this.modalHide() before issuing the destroy method. I'm not sure if this will work in general, but for my application it did.
Comments
-
Aaron pulled the latest code from the clientcide site today and had to fix the following issue, you have a trailing , on buttonsSelector: ".button", this causes an error on IE7.
var CNETcarousel = new Class({
Extends: SimpleCarousel, options:{ slidesSelector: ".slide", buttonsSelector: ".button", },There was also an error in this block of code which caused problems across browsers I needed to add in an additional closing bracket.
(function(){
var SWA = function(extend) { return Class.refactor(extend, { options: { XHRoptions: { method: 'get' }, wrapWithStickyWinDefaultHTML: false, stickyWinHTMLOptions:{} }, initialize: function(options) { this.setOptions(options); this.options.RequestOptions = this.options.XHRoptions; this.wrapWithUi = this.options.wrapWithStickyWinDefaultHTML; this.uiOptions = this.options.stickyWinHTMLOptions; this.previous(options); } }) }; try { SWA(StickyWin.Ajax); } catch(e){} try { SWA(StickyWin.Fx.Ajax); } catch(e){} try { SWA(StickyWin.Modal.Ajax); } catch(e){} try { SWA(StickyWin.Fx.Modal.Ajax); } catch(e){}})();
Fantastic project guys and anything else I spot you can be sure I'll feedback!
Dave
Comments
-
Hi, I implemented the one-liner btwn :
new Tips.Pinty($('')); but the Tips Pointy feature doesn't work in any browser..
IE debugger says it's expecting a ')' in clientcide's function which contains:
var SWA = function(extend) {
return Class.refactor(extend, {which was true, and so I added that ')' but then the debugger points to another bug in mootools's code. So I am wondering if someone else also has the same experience, or maybe someone can tell me if I implemented Tips Pointy wrong.
Comments
-
StickyWin (2.2.0) allowMultiple: false has bug in mask
1 comment Created about 1 month ago by jhancockI have two dialog: login and register. Each has a link to the
other. I never want them "stacked" or open at the same time: when I
open one, if another is open, I want it closed upon opening another.
In clientcide 2.1.0, I was able to get the desired effect by setting
id: to the same value. This no longer works and I've found 2.2.0 has
the allowMultiple option. So I set it to false. This mostly works
but has a bug in that as each window opens, the mask get applied over
the prior, so as I switch back and forth between login and register
multiple times, my background gets darker and darker. When I finally
close the dialog, I have to click the background once for each time a
dialog was opened to incrementally remove the masks.Comments
-
First ist that on the StickyWin destroy() handler, the mask is missing
class StickyWin
destroy: function(){
if (this.windowManager) this.windowManager.remove(this); if (this.win) this.win.destroy(); if (this.options.useIframeShim && this.shim) this.shim.destroy(); if (document.id('modalOverlay')) document.id('modalOverlay').destroy();// add this
if (this.mask) this.mask.destroy(); this.fireEvent('destroy'); }Comments
-
Links to certain pages in the documentation are incorrect
1 comment Created 17 days ago by mwarkentinSeveral links in the documentation's navigation are broken.
The correct links are:
Comments
-
'domready' happend after window.onload always in ie6/ie7/ie8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!! i don't know if you test it~shit~~~ ~~!!!! I am not the first one know it ,there are many peaple told you ,shit team~~ 不知道到底有没测试过就发布了~~这么严重的bug还敢发布,这不是害人吗
Comments
-
'domready' happend after window.onload always in ie6/ie7/ie8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!! i don't know if you test it~shit~~~ ~~!!!! I am not the first one know it ,there are many peaple told you ,shit team~~ 不知道到底有没测试过就发布了~~这么严重的bug还敢发布,这不是害人吗
Comments
-
DatePicker bugs with %d/%m/%y format (Year 09)
0 comments Created 8 months ago by anutron -
Fupdate incorrectly handles multiple choices inputs
0 comments Created 8 months ago by anutron -
Async StickyWin.Ajax doesn't allow accessing result's dom
0 comments Created 8 months ago by anutron -
Element.get('inputValue') not returning a boolean on checkboxes
0 comments Created 8 months ago by anutron -
MultipleOpenAccordion refactor error w/possible fix
0 comments Created 8 months ago by anutron -
DatePicker - calendars don't pop up when showMoreThanOne=true
0 comments Created 8 months ago by anutron -
http://skitch.com/peterpunk/bp7ty/clientcide-datepicker-issue-with-march-09
Happens with ff3 and not Ie.
sample code:
this.date = new DatePicker(this.input, { 'onHide': this.calendarHide.bind(this), 'format': "%m/%d/%Y" }); this.date = new DatePicker(this.input, { 'onHide': this.calendarHide.bind(this) });Comments
-
I noted something odd going on in the
validateFieldmethod in theFormValidator.Tipsclass.Test case: create a multi text field form. Introduce multiple validations on some of the fields, and have at least 2 that have no "required" validations. My example had the following 5 text field validations:
- required validate-integer
- required minLength:10
- validate-url
- validate-url
- validate-url
I used all the default options on the instantiations of
FormValidator.TipsandFupdate.Prompt, specifying the minimum necessary arguments.I noticed when I setup a
Fupdate.Promptwith this form (after initializing theFormValidator.Tips) that if I failed the first field (enter alpha chars) and the second field (enter too few chars) then corrected the first field I could post the form even though the second field still was invalid. Another behavior was that if I had a correct integer entry in field one, a too short entry in field 2, then clicked around in fields 3 through 5 I could make the error tip go away on field 2, and post.I found the following changes to
FormValidator.Tipsin thevalidateFieldmethod solved this behavior...but it is likely not the most elegant. It also removed a JS error I saw in console from themsgs.getChildren().hide()line in this same method.Here's my sloppy but working changes:
validateField: function(field, force){ var advice = this.getAdvice(field); var anyVis = this.advices.some(function(a){ return a.visible; }); if (anyVis && this.options.serial) { if (advice && advice.visible) { var passed = this.parent(field, force); if (!field.hasClass('validation-failed')) advice.hide(); } return passed; } var msgs = field.retrieve('validationMsgs'); if (msgs) { var msgChildren = msgs.getChildren(); msgChildren.each(function (item,index) { item.hide(); }); } if (field.hasClass('validation-failed') || field.hasClass('warning')) if (advice) advice.show(); var passed = this.parent(field, force); if (this.options.serial && !passed) { var fields = this.element.getElements('.validation-failed, .warning'); if (fields.length) { fields.each(function(f, i) { var adv = this.getAdvice(f); if (adv) adv.hide(); }, this); passed = this.parent(field, force); } } return passed; },Comments
-
Weird DatePicker behavior with some dates
1 comment Created 3 months ago by lucascorbeauxHi there,
As mentionned here http://github.com/anutron/clientcide/issuesearch?state=open&q=datepicker#issue/15 and here http://github.com/anutron/clientcide/issuesearch?state=open&q=datepicker#issue/26 some dates break the DatePicker.
I'm sure that's an issue, as you can reproduce the bug in the tutorial/demo section here :
http://www.clientcide.com/wiki/cnet-libraries/09-forms/02-datepickerTry to type any november date prior to 2009, like 2007-11-07, and all calendar's cases will be filled by the same number (28 for this example). Works the same way on FF or IE.
As the previous issues were posted several months ago, is there a chance to get an answer, or even an hint to fix the problem ourselves ?
Comments
rrehbeindoi
Tue Nov 10 10:50:11 -0800 2009
| link
The issue is with Daylights savings.
ie: Nov 1, 2009 to Nov 2nd, Daylights savings means Nov 1 + 24 hours of seconds gets you to Nov 1, 23:00. Because it sets the hour, Nov 1 23:00 becomes Nov 1, 00:00, and you end up repeating the date.Ended up adding a bit of code to fillCalendar method:
@@ -13629,13 +13629,15 @@ var DatePicker; }); document.id(this.rows[0].getElements('td')[1]).empty().adopt(monthyr); var atDate = startDate.clone(); + // deal with a daylight savings time issue, see: Nov 1st, 2009 + var incrementTime = Date.units.day() + (Date.units.hour() * 2); this.rows.each(function(row, i){ if (i < 2) return; row.getElements('td').each(function(td){ atDate.set('hours', hours); td.firstChild.data = atDate.getDate(); td.refDate = atDate.getTime(); - atDate.setTime(atDate.getTime() + Date.units.day()); + atDate.setTime(atDate.getTime() + incrementTime); }, this); -
StickyWin (2.2.0) modalOptions: {hideOnClick: false} not working
1 comment Created about 1 month ago by jhancockStickyWin (2.2.0) modalOptions: {hideOnClick: false} not working
the title says it all.
Comments
-
Datepicker works bad for sure... even on http://www.clientcide.com/wiki/cnet-libraries/09-forms/02-datepicker the third datepicker is faulty: when you enter soem date in the field (e.g. 1/1/2010) and the open the datepicker and press "next month" to reach October 2010 the last row contains seven days of "31st"...
clicking "next month" then brings you to a "correct" October 2010...
why calculating dates through 1000ths of seconds?
and Cleintcide in complete: pitty nobody seems to read this comments and react to them :-(Comments
I do read them all, but it's a matter of priority. I spend 90% of my "free" time working on MooTools itself, fixing bugs in Clientcide when I can. If you really want to see these things fixed, you should fork the code on github, work out a solution, and send me a pull request.
aha, I get it. the eternal "time problem" ... same here lol
i already "upgraded" your date picker and implemented holidays (colouring them) and my next intention is to do some selector for months / years inside date picker.
also working on localization for Slovenian (moo & clientside).
going to contact you when i'm so far...
have a nice day
B -
Form.Validator.Tips(serial=false) doesn't completely clear error dialogs
0 comments Created 11 days ago by alexgrgeForm.Validator.Tips doesn't remove the PointyTip graphic of the error dialog for a field, once that field has been selected.
Here is a sample HTML page that has a Form.Validator.Tips associated with a form with 2 text inputs, both set as required. Error msgs can be triggered correctly, but are not removed after entering a legal value.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Sample div.DefaultStickyWin {font-family:verdana; font-size:11px; line-height: 13px;position: relative;}div.DefaultStickyWin div.top{-moz-user-select: none;-khtml-user-select: none;}div.DefaultStickyWin div.top_ul{background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/full.png) top left no-repeat; height:30px; width:15px; float:left}div.DefaultStickyWin div.top_ur{position:relative; left:0px !important; left:-4px; background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/full.png) top right !important; height:30px; margin:0px 0px 0px 15px !important; margin-right:-4px; padding:0px}div.DefaultStickyWin h1.caption{clear: none !important; margin:0px !important; overflow: hidden; padding:0 !important; font-weight:bold; color:#555; font-size:14px !important; position:relative; top:8px !important; left:5px !important; float: left; height: 22px !important;}div.DefaultStickyWin div.middle, div.DefaultStickyWin div.closeBody {background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/body.png) top left repeat-y; margin:0px 20px 0px 0px !important; margin-bottom: -3px; position: relative; top: 0px !important; top: -3px;}div.DefaultStickyWin div.body{background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/body.png) top right repeat-y; padding:8px 23px 8px 0px !important; margin-left:5px !important; position:relative; right:-20px !important; z-index: 1;}div.DefaultStickyWin div.bottom{clear:both;}div.DefaultStickyWin div.bottom_ll{background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/full.png) bottom left no-repeat; width:15px; height:15px; float:left}div.DefaultStickyWin div.bottom_lr{background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/full.png) bottom right; position:relative; left:0px !important; left:-4px; margin:0px 0px 0px 15px !important; margin-right:-4px; height:15px}div.DefaultStickyWin div.closeButtons{text-align: center; background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/body.png) top right repeat-y; padding: 4px 30px 8px 0px; margin-left:5px; position:relative; right:-20px}div.DefaultStickyWin a.button:hover{background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/big_button_over.gif) repeat-x}div.DefaultStickyWin a.button {background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/big_button.gif) repeat-x; margin: 2px 8px 2px 8px; padding: 2px 12px; cursor:pointer; border: 1px solid #999 !important; text-decoration:none; color: #0 !important;}div.DefaultStickyWin div.closeButton{width:13px; height:13px; background:url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/closebtn.gif) no-repeat; position: absolute; right: 0px; margin:10px 15px 0px 0px !important; cursor:pointer;top:0px}div.DefaultStickyWin div.dragHandle { width: 11px; height: 25px; position: relative; top: 5px; left: -3px; cursor: move; background: url(http://github.com/anutron/clientcide/raw/master/Assets/stickyWinHTML/drag_corner.gif); float: left;}Customer Name First name Last name Here is a solution used...
Form.Validator.Tips.AFix = new Class({ Extends: Form.Validator.Tips, validateField: function(field, force){ var advice = this.getAdvice(field); var wasFailed = field.hasClass('validation-failed'); var wasWarning = field.hasClass('warning'); var isPassed = this.parent(field, force); if (!this.options.serial) { if ((wasFailed || wasWarning) && advice) { if (isPassed) advice.hide(); else advice.show(); } } return isPassed; } });Comments





The patch works great, but are there any plans to implement it in the main trunk?