Re: [jQuery] release: Validation plugin beta 1
can you just upload the correct files with the correct versions so ill can test if its my problem? zip it to somewhere and ill be happy to report you and i didnt realise how to fix the known issues of ie6 bugs... great work! Jörn Zaefferer wrote: amircx schrieb: is anyone here tried to run this code on ie6 ? i wonder if its just my browser or the versions of the files are incorrect I'm testing the plugin in Firefox 2, IE6 7 and Opera 9.1. Apart from the issues reported on the plugin page, I never experienced any problems. And the known issues are easy to avoid. I read about different versions of IE6 causing problems on this list, maybe you have on of those versions. Maybe posting your version number of trying to get updates helps. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/release%3A-Validation-plugin-beta-1-tf3358465.html#a9371174 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting a development team to use jQuery
Hi Jake, I will impart a small seminar soon about Non-intrusive JavaScript techniques, jQuery and client side programming to the develop team where I work , The University of Murcia :) This is the documentation that I've made (sorry in spanish :-P ): http://gat1.atica.um.es/FORJA/ Jake McGraw escribió: Hi all, first let me say I've had an absolutely wonderful time utilizing jQuery for all of my javascript tasks. So wonderful, that I've convinced my boss that we should throw out every one (we're using about 4 or 5) of the javascript frameworks and random scripts we're currently using and consolidate all of our web applications under jQuery. This is a library of about 60 web applications that have to be re-examined and partially rewritten. This Monday, I'm scheduled to give a 30 minute presentation to the development team about JavaScript and jQuery, essentially a couple of short tutorials / propaganda session to get them hyped about this technology. I'm sending out this email to see if anyone has done something like this yet, what their experience was like and maybe garner a couple of pointers or things I should bring up in my presentation. Thanks, - jake ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Best Regards, José Francisco Rives Lirola sevir1ATgmail.com SeViR CW · Computer Design http://www.sevir.org Murcia - Spain ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] addClass to 4th column
Karl Rudd schrieb: You can combine the selectors with a ,: $(table td:nth-child(4), table td:nth-child(5), table td:nth-child(8)).css('text-align', 'right'); Karl You could also use filter in that case (untested): $('table td').filter(':eq(4), :eq(5), :eq(8)').css('text-align', 'right'); Comma separated lists in filter require jQuery 1.1 -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)
On Mar 7, 9:56 pm, Mike Alsup [EMAIL PROTECTED] wrote: After the page is loaded and if I set the breakpoint, it works like I expected. But, if I set the breakpoint and reload the page, it breaks at the breakpoint even while the page is loaded--this is confusing as it looks the event or function is been called even when the page is been getting loaded. Am I missing something? or Is this Maybe it is being called. Did you look at the callstack? Yes, I did and find some variables and they're not readable for me (this, options and validator). Can you be able to interpret them? TIA -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)
On Mar 7, 9:30 pm, Aaron Heimlich [EMAIL PROTECTED] wrote: On 3/7/07, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: After the page is loaded and if I set the breakpoint, it works like I expected. But, if I set the breakpoint and reload the page, it breaks at the breakpoint even while the page is loaded--this is confusing as it looks the event or function is been called even when the page is been getting loaded. Am I missing something? or Is this the way the Firebug works on jQuery? TIA That's the way Firebug works in general. My understanding is that when it hits the breakpoint on page-load, the JS interpretor is processing the code, but hasn't gotten to the point where it begins to execute it yet. Firebug probably breaks whenever the JS interpretor hits that line, regardless of what it's actually doing with it. Your reasoning is quite logical. But, my testing suggests that this behavior is happening only with jQuery. This is really something that you should ask Joe Hewitt (the creator of Firebug), though. Yes, but no helpful hints from the Firebug group:( -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problems with retrieving / setting textarea content [Firefox]
I have a textarea which I want to read / write. I have been testing with this: alert($(#the_text_area).text()); $(#the_text_area).text('different text'); That works as expected until the textarea contents are modified by the user. From that point, .text() continues to return the unmodified text, and text('text') has no effect. This fault occurs in Firefox 2.0.0.2, but not in IE6.0 I've discovered I can use .val() which will work in both. Should it? Is this a Firefox bug or am I going about this the wrong way? Any advice welcome. TIA --rob __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problems with retrieving / setting textarea content [Firefox]
Rob Desbois schrieb: I have a textarea which I want to read / write. I have been testing with this: alert($(#the_text_area).text()); $(#the_text_area).text('different text'); That works as expected until the textarea contents are modified by the user. From that point, .text() continues to return the unmodified text, and text('text') has no effect. This fault occurs in Firefox 2.0.0.2, but not in IE6.0 I've discovered I can use .val() which will work in both. Should it? Is this a Firefox bug or am I going about this the wrong way? Any advice welcome. This is no bug. You need to use the value property (aka .val()) to retrieve textarea content (like any other form element). -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Litebox adds Flickr support
Daniel, This is badass! I love it man. I was thinking after I saw it that it would be VERY cool is if you could tie it into jCarousel in some fashion. (http://sorgalla.com/jcarousel/). The ability to load up jCarousel with Flickr thumbs would be awesome. Rey... Daniel MacDonald wrote: http://www.projectatomic.com/litebox jQuery Litebox now supports Flickr with the http://www.projectatomic.com/flickr jQuery Flickr plug-in. The jQuery Flickr plug-in is an alpha release, but it features: no server-side proxy required. easy to implement: $(#myElement).flickr(); supports custom callbacks, and custom requests returns recent photos photosets by id returns sorted search results by user id, group id, tags, or text configure thumbnail size and image size built-in jQuery Litebox slideshow integration tested in Firefox 1.5-2.0, Internet Explorer 6.0-7.0, and Opera 8.53 Windows check it out, and please leave feedback -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] LI cursor/underlining
I have ul/li/ul... structure and want the text to be underlined, and a cursor pointer set rather like an href when the mouse moves over the text. 1. I suppose I could put in an href, and then get an action performed when I click. I'm sure it can be done - I'm not sure how. It is also not a very clean solution. 2. Consider the html code: liimg src=images/file.gif / Item 1.1/span/li I can add a style thusly: li style=cursor: pointer; img src=images/file.gif / Item 1.1/li But it does not give the required result. If you move the cursor rightwards from the text, the cursor remains a pointer (FF and IE). On the other hand liimg src=images/file.gif /span style=cursor: pointer; text-decoration: underline Item 1.1/span/li does give the expected result. So my question is: How can I do the equivalent in JQuery? Thanks, Peter ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] NEWS: John Resig Discusses Future Proofing JavaScript Libraries
Hi everyone, I just wanted to point you guys to John's recent perspective on leveraging popular JS libraries and their respective test suites to assist Mozilla in building more stable products. This has the added benefit of ensuring that library developers are able to adjust their code based on issues or features. Partial posting on Ajaxian here: http://ajaxian.com/archives/future-proofing-javascript-libraries John's full article here: http://ejohn.org/blog/future-proofing-javascript-libraries/ Also, for those that weren't aware, John frequently posts more generalized articles (ie: not specific to jQuery) on his personal blog which can be found here: http://ejohn.org/blog/ Definitely a good read. Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Custome selectors use : as seperator, which is an official character for id's
Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words this means that for example if I have an id=my:elem this element is the not selectable like $('#my:id') as the regexp on line 949: re2 = /^([#.]?)([a-z0-9\\*_-]*)/i;) // jquery 1.1.1 does split that and uses the :elem as custom selector. You might now ask why am I using : as element id's. The answer is pretty easy. JSF uses a : to automatically generate element id's in HTML and that's unfortuntely not changeable. And I have to use jsf. But I really like jquery a lot and would love to use it in my future projects together with JSF. Any way that for example, before splitting the id and use the 2nd part of the id as custom selector do a search for the full ID as specified, and if no element is found fall back to the custome selector way of splitting? Or even better that the custom selector character could be configurable? Would you guys (jquery members) consider that as an option if I would send a patch for that for future releases? I prefere to go with official releases as otherwise updating to newer versions gets a pain Tx for your help. -- View this message in context: http://www.nabble.com/Custome-selectors-use-%3A-as-seperator%2C-which-is-an-official-character-for-id%27s-tf3232451.html#a8981502 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Strange Safari bug
Hi,... i have exactly the same problem using jquery 1.1 is there anything to watch out for? greetings j. siefer Bryant Cutler wrote: I'm working on a rather complicated CMS app that uses the AJAX plugin heavily. Everything's coming back our backend Java Textile implementation as XML, and I'm getting a strage Safari bug. The element is called bodyTextile. When I try alert($(bodyTextile, xml).text()) the contents come back just fine, but the FIRST time that I set the $(#textarea_id).val($(bodyTextile, xml).text()) nothing shows up. I've looked all over the web for Safari XML parsing bugs, Safari xmlhttprequest bugs... is this a jquery bug? Anybody having similar issues? Bryant Cutler Humaniz Interactive ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Strange-Safari-bug-tf1874142.html#a9374184 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Draggables Problem
Greetings, I am new to JQuery and am very excited to start using it and jump into the world of javascript programming. I have been experimenting with the Interface plugins and have come across a problem or possible bug with the Draggable library. Please see the following page: http://www.gordbusse.com/test.htm I have a parent div horizontally centered on the page using: margin-right: auto; margin-left: auto; And have a child div inside that set to be draggable. But the draggable div does not appear to be obeying the containment: 'parent' command and staying within the div. In fact it seems that there is a constraint but the constraint is left justified whereas the parent div is centered? Furthermore the draggable child div also appears to be ignoring the padding setting of the parent div as well? If I take out the auto margin settings to make the parent div left justified it looks better but it still doesn't seem to be working right? Am I doing something wrong or is this a bug? Thanks in advance for any help anyone can give me. Gord ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Feedback needed on when to use Edit In Place
I've been thinking about the best time to use an Edit in Place like this one (http://www.dyve.net/jquery/?editable). Its a very cool technique but I'm not quite sure when I would use it or how I would let a user know that a field is editable simply by clicking on it. I'd like some feedback on this. Suggestions? Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's
Have you posted this on the developer list? That's probably a really good place for this post. Cheers, Chris manfred berry wrote: Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words this means that for example if I have an id=my:elem this element is the not selectable like $('#my:id') as the regexp on line 949: re2 = /^([#.]?)([a-z0-9\\*_-]*)/i;) // jquery 1.1.1 does split that and uses the :elem as custom selector. You might now ask why am I using : as element id's. The answer is pretty easy. JSF uses a : to automatically generate element id's in HTML and that's unfortuntely not changeable. And I have to use jsf. But I really like jquery a lot and would love to use it in my future projects together with JSF. Any way that for example, before splitting the id and use the 2nd part of the id as custom selector do a search for the full ID as specified, and if no element is found fall back to the custome selector way of splitting? Or even better that the custom selector character could be configurable? Would you guys (jquery members) consider that as an option if I would send a patch for that for future releases? I prefere to go with official releases as otherwise updating to newer versions gets a pain Tx for your help. -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting a development team to use jQuery
Jose, Gracias, but I'm afraid American schools have left me with such a poor grasp of the Spanish language that I won't be able to use your guide. It looks very thorough, though, and would love to introduce some of the ideas you have here to my team, as they are really lacking in the concept of what JavaScript is. If an English version becomes available, please let me know. Also, this is for anyone on the listserv, I've created a short set of (Power Point) slides about jQuery, if anyone could take a second to review this first draft, I'd much appreciate it. They're located here: http://www.jakemcgraw.com/java/jquery.ppt Thanks everyone for your help! - jake On 3/8/07, SeViR [EMAIL PROTECTED] wrote: Hi Jake, I will impart a small seminar soon about Non-intrusive JavaScript techniques, jQuery and client side programming to the develop team where I work , The University of Murcia :) This is the documentation that I've made (sorry in spanish :-P ): http://gat1.atica.um.es/FORJA/ Jake McGraw escribió: Hi all, first let me say I've had an absolutely wonderful time utilizing jQuery for all of my javascript tasks. So wonderful, that I've convinced my boss that we should throw out every one (we're using about 4 or 5) of the javascript frameworks and random scripts we're currently using and consolidate all of our web applications under jQuery. This is a library of about 60 web applications that have to be re-examined and partially rewritten. This Monday, I'm scheduled to give a 30 minute presentation to the development team about JavaScript and jQuery, essentially a couple of short tutorials / propaganda session to get them hyped about this technology. I'm sending out this email to see if anyone has done something like this yet, what their experience was like and maybe garner a couple of pointers or things I should bring up in my presentation. Thanks, - jake ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Best Regards, José Francisco Rives Lirola sevir1ATgmail.com SeViR CW · Computer Design http://www.sevir.org Murcia - Spain ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] vertical fisheye menu? OSX dock or tsunami
I can't find one demo of a javascript version in vertical orientation... I'm also seeing the fisheye menu referred to as OSX dock, or tsunami. After thinking it over I don't think it would be as easy as changing the Css or even layout. All of the distortion and thinking needs to be altered anything that happens to the X plane, will now be happening in the Y direction. Anybody got anything???!! Thanks again. {js}sTyler wrote: Is there a way to set up a fisheye menu with a vertical orientation instead of horizontal? http://interface.eyecon.ro/demos/fisheye.html I haven't toyed with this, but vertical would float my boat better than horizontal, besides MAC's cornered the market on the horizontal fisheye nav. This is the only implementation I've found so far, that is a jquery version. The documentation is here, but it doesn't say much: http://interface.eyecon.ro/docs/fisheye I might give it a whirl. I've got some big image buttons for another site I've just started working with, they are sort of big-ish buttons. If I make the buttons just barely readable the fisheye would zoom them in nice. Thanks, ty I find in the actual interface js code option halign and option valign. Can I simply switch all of the halign instances to valign? If so what would I use instead of Center? Left maybe? Some of the interface code comments: /*** * Build a Fisheye menu from a list of links * * @name Fisheye * @description Build a Fisheye menu from a list of links * @param Hash hash A hash of parameters * @option String items items selection * @option String container container element * @option Integer itemWidth the minimum width for each item * @option Integer maxWidth the maximum width for each item * @option String itemsText selection of element that contains the text for each item * @option Integer proximity the distance from element that make item to interact * @option String valign vertical alignment * @option String halign horizontal alignment * * @type jQuery * @cat Plugins/Interface * @author Stefan Petre **/ -- View this message in context: http://www.nabble.com/vertical-fisheye-menu--tf3365640.html#a9374195 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's
There is a ticket for this: http://dev.jquery.com/ticket/143 -- Brandon Aaron On 3/8/07, Christopher Jordan [EMAIL PROTECTED] wrote: Have you posted this on the developer list? That's probably a really good place for this post. Cheers, Chris manfred berry wrote: Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words this means that for example if I have an id=my:elem this element is the not selectable like $('#my:id') as the regexp on line 949: re2 = /^([#.]?)([a-z0-9\\*_-]*)/i;) // jquery 1.1.1 does split that and uses the :elem as custom selector. You might now ask why am I using : as element id's. The answer is pretty easy. JSF uses a : to automatically generate element id's in HTML and that's unfortuntely not changeable. And I have to use jsf. But I really like jquery a lot and would love to use it in my future projects together with JSF. Any way that for example, before splitting the id and use the 2nd part of the id as custom selector do a search for the full ID as specified, and if no element is found fall back to the custome selector way of splitting? Or even better that the custom selector character could be configurable? Would you guys (jquery members) consider that as an option if I would send a patch for that for future releases? I prefere to go with official releases as otherwise updating to newer versions gets a pain Tx for your help. -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
Rey Bango schrieb: I've been thinking about the best time to use an Edit in Place like this one (http://www.dyve.net/jquery/?editable). Its a very cool technique but I'm not quite sure when I would use it or how I would let a user know that a field is editable simply by clicking on it. I'd like some feedback on this. Suggestions? Rey... Hey Rey, I think edit-in-place is best suitable if there's the need/possibility to update one piece of information, for example on a page that has a lot of items of the same kind. As soon as you need to edit a few more attributes of an item, I think it is better to show a complete form, although the whole form could be made edit in place, e.g. it replaces the former rendering with form fields after klicking a little button for example. But I think that's nothing new to you, is it? I mean, Flickr is to me a perfect example of *where* to use edit-in-place. Or the delicious headline where you can immediatly edit the tag you're searching for... Showing that something is editable is more difficult. Some hover effect like Flickr is not the best solution to me, because it is not at all obvious. Maybe it is better to show a little icon that says I'm editable (a pencil etc.). Still that involves that the user needs to hover over the data to know that it is editable, which means the user needs to learn it. In the end it will be maybe something users have learned from other pages and expect it on similiar pages as well. I like the idea of showing a little bubble/explanation the first time a user visits a page to show that something is editable. On the other hand usability gurus will say, as soon as you have to do that, something went wrong already. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's
manfred berry schrieb: Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words this means that for example if I have an id=my:elem this element is the not selectable like $('#my:id') as the regexp on line 949: re2 = /^([#.]?)([a-z0-9\\*_-]*)/i;) // jquery 1.1.1 does split that and uses the :elem as custom selector. Does $('[EMAIL PROTECTED]my:elem]') suit as a workaround? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
Hi, Rey... Let me make sure of what your view is on what this plug-in can do in terms of taking the place of CF functions. This plug-in seems to offer a way to do record updates via the display screen for data rather than having to rely on a form on a separate edit and submit update form page. Would that be accurate? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Thursday, March 08, 2007 9:56 AM To: jQuery Discussion. Subject: [jQuery] Feedback needed on when to use Edit In Place I've been thinking about the best time to use an Edit in Place like this one (http://www.dyve.net/jquery/?editable). Its a very cool technique but I'm not quite sure when I would use it or how I would let a user know that a field is editable simply by clicking on it. I'd like some feedback on this. Suggestions? Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
Hey Klaus! I was hoping you'd chime in. :o) But I think that's nothing new to you, is it? I mean, Flickr is to me a perfect example of *where* to use edit-in-place. Or the delicious headline where you can immediatly edit the tag you're searching for... Its definitely not new to me. I've just struggled with the usability issues that you mentioned. Since I've been taking a much more serious look at usability (especially because of our previous email exchanges), I've tried hard to determine how I could effectively convey to a user that this field is editable. The usability points that you made are exactly the same concerns I've had. Its such a cool feature but I don't want the user to sit there an ponder what the heck is going on. So this is why I'm so interested in getting feedback on how to represent this type of functionality to an end user. Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting a development team to use jQuery
One thing that I have noticed in speaking wiwth the development team I work with (trying to convert) is the concept of the FOR loop in jQuery. in jQuery, I assume that EVERYTHING has a FOR loop attached to it. So $(.myClass).fadeOut() will fade out *all* of the classes, not just one. The EACH method helped them understand how to get inside that loop if neeeded. For them, they thought it was easy to read, but not understandable until I explained the iterative nature of jQuery. However, there is still resistance because *not* using the FOR loop to them is just alien. To use jQuery, you have to let go of using FOR loops and IF statements and instead embrace the selector power to do the same stuff. I haven't converted them, nor does it look like they are switching soon. But I found this issue to be interesting as a discussion point. It might be worth it to show before and after examples of code, with and without jQuery. Glen ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
Yep. :o) Rey Rick Faircloth wrote: Hi, Rey... Let me make sure of what your view is on what this plug-in can do in terms of taking the place of CF functions. This plug-in seems to offer a way to do record updates via the display screen for data rather than having to rely on a form on a separate edit and submit update form page. Would that be accurate? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Thursday, March 08, 2007 9:56 AM To: jQuery Discussion. Subject: [jQuery] Feedback needed on when to use Edit In Place I've been thinking about the best time to use an Edit in Place like this one (http://www.dyve.net/jquery/?editable). Its a very cool technique but I'm not quite sure when I would use it or how I would let a user know that a field is editable simply by clicking on it. I'd like some feedback on this. Suggestions? Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
Sounds like Edit In Place would be a very good candidate for apps built for specific clients, where some training would be involved... People seem to always be looking at my web/browser-based apps and wondering why they can't just click on the data as in Excel and edit the data right there. Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Thursday, March 08, 2007 10:19 AM To: jQuery Discussion. Subject: Re: [jQuery] Feedback needed on when to use Edit In Place Rey Bango schrieb: I've been thinking about the best time to use an Edit in Place like this one (http://www.dyve.net/jquery/?editable). Its a very cool technique but I'm not quite sure when I would use it or how I would let a user know that a field is editable simply by clicking on it. I'd like some feedback on this. Suggestions? Rey... Hey Rey, I think edit-in-place is best suitable if there's the need/possibility to update one piece of information, for example on a page that has a lot of items of the same kind. As soon as you need to edit a few more attributes of an item, I think it is better to show a complete form, although the whole form could be made edit in place, e.g. it replaces the former rendering with form fields after klicking a little button for example. But I think that's nothing new to you, is it? I mean, Flickr is to me a perfect example of *where* to use edit-in-place. Or the delicious headline where you can immediatly edit the tag you're searching for... Showing that something is editable is more difficult. Some hover effect like Flickr is not the best solution to me, because it is not at all obvious. Maybe it is better to show a little icon that says I'm editable (a pencil etc.). Still that involves that the user needs to hover over the data to know that it is editable, which means the user needs to learn it. In the end it will be maybe something users have learned from other pages and expect it on similiar pages as well. I like the idea of showing a little bubble/explanation the first time a user visits a page to show that something is editable. On the other hand usability gurus will say, as soon as you have to do that, something went wrong already. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Strange Safari bug
if($.browser.safari) $('#mytextarea').text(some text); workes for me -- View this message in context: http://www.nabble.com/Strange-Safari-bug-tf1874142.html#a9374214 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Handling unsupported browsers
Hi, I've started using jQuery and I really like it. Thank you! I'd like to know if there is a snippet or recommended method for handling the user interaction when the browser is not supported or javascript has been disabled. Also, I would like to know if the jQuery Ajax works on IE5.x browsers. More info on IE5 issues beyond the test cases would also be useful, as I don't have an IE5 browser myself. Regards jose ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Getting a development team to use jQuery
Glen Thanks for the pointer, I didn't explicitly write this out in my slides, but it is something I alluded to and will speak about during my presentation. I've also kinda ripped off firebug by showing exact DOM changes with yellow highlighting between jQuery function calls, I think this is a great way to introduce jQuery as it's a great visual aid. - jake On 3/8/07, Glen Lipka [EMAIL PROTECTED] wrote: One thing that I have noticed in speaking wiwth the development team I work with (trying to convert) is the concept of the FOR loop in jQuery. in jQuery, I assume that EVERYTHING has a FOR loop attached to it. So $(.myClass).fadeOut() will fade out *all* of the classes, not just one. The EACH method helped them understand how to get inside that loop if neeeded. For them, they thought it was easy to read, but not understandable until I explained the iterative nature of jQuery. However, there is still resistance because *not* using the FOR loop to them is just alien. To use jQuery, you have to let go of using FOR loops and IF statements and instead embrace the selector power to do the same stuff. I haven't converted them, nor does it look like they are switching soon. But I found this issue to be interesting as a discussion point. It might be worth it to show before and after examples of code, with and without jQuery. Glen ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Draggables Problem
Ah, easy fix. I went ahead and mimicked your site. All you need to do to fix this is to set the parent element, #page in your case, position:relative. Now it works like a charm! hth, -scott From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gord Busse Sent: Thursday, March 08, 2007 9:52 AM To: JQuery Discuss Subject: [jQuery] Interface Draggables Problem Greetings, I am new to JQuery and am very excited to start using it and jump into the world of javascript programming. I have been experimenting with the Interface plugins and have come across a problem or possible bug with the Draggable library. Please see the following page: http://www.gordbusse.com/test.htm I have a parent div horizontally centered on the page using: margin-right: auto; margin-left: auto; And have a child div inside that set to be draggable. But the draggable div does not appear to be obeying the containment: 'parent' command and staying within the div. In fact it seems that there is a constraint but the constraint is left justified whereas the parent div is centered? Furthermore the draggable child div also appears to be ignoring the padding setting of the parent div as well? If I take out the auto margin settings to make the parent div left justified it looks better but it still doesn't seem to be working right? Am I doing something wrong or is this a bug? Thanks in advance for any help anyone can give me. Gord ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
Where can I look over this plug-in and info about it? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Thursday, March 08, 2007 10:55 AM To: jQuery Discussion. Subject: Re: [jQuery] Feedback needed on when to use Edit In Place Yep. :o) Rey ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Jquery, Thickbox, and tracking scripts
I am trying to use jQuery and thick box to replace my existing popups. The one thing is that on these popups, I have tracking scripts that are pointed to outside domains and it seems to cause my javascript to error out saying uncaught exception: Permission denied to call method XMLHttpRequest.open I see from everywhere after googling that this is from trying to pull in content from another domain but really I'm not doing that I'm just pulling in another page from my server, which has tracking scripts pointing to other domains. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Jquery, Thickbox, and tracking scripts
Can you show code or a preview page of how you are pulling it in? -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Need some guidance...
Well, Jorn... I finally figured out the problem... I hadn't assigned an id's to my form fields (Principal, Interest, Years), so I couldn't see the conflict. However, it looks like id's were automatically being assigned to my form fields when published... they were renamed using the form id and then the field name attached, as in #Mortgage_Calculation_FormPrincipal and I guess this id was confusing the validation plug-in (although I'm not quite sure why because even though the automatically generated id name included the form id name, it was not the same name exactly. However, the lesson learned: Always assign id's (unique ones) to every element. So I've got the plug-in working. Now I've got two more questions: 1) How do I format the validation message? In the plug-in settings? Can I put CSS formatting in there? 2) How can I get the messages to display above the form fields? Can the label tag take CSS formatting in-line? Thanks for all your help with this... Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Tuesday, March 06, 2007 1:48 PM To: jQuery Discussion. Subject: Re: [jQuery] Need some guidance... Rick Faircloth schrieb: Hmmm cant get any reaction from the validation code. Heres my script and html whats wrong with it? (Ive included my show/hide script and my CalculateMortgage script in case theres a conflict) The Mortgage Calculation still runs fine, but when I submit the form without an entry I get a CF error stating that the expression that calculates the payment cant be evaluated. Isnt the validation code supposed to prevent submission when a form field is blank? And in this case, with debug on, it should stop all submissions? But, it's pretty much like the validation code is not even active. I don't get any kind of response from it. I can't find any hint of an issue in your code, so I suspect the problem lies in my plugin. I hope you can be patient enough to wait for beta 1. I've implemented all features, and just need to do a little bit more testing. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
You can check it out here. http://www.dyve.net/jquery/?editable There are some other versions listed on the plugin page as well. Rey Rick Faircloth wrote: Where can I look over this plug-in and info about it? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Thursday, March 08, 2007 10:55 AM To: jQuery Discussion. Subject: Re: [jQuery] Feedback needed on when to use Edit In Place Yep. :o) Rey ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
-Original Message- From: Rey Bango [mailto:[EMAIL PROTECTED] I've been thinking about the best time to use an Edit in Place like this one (http://www.dyve.net/jquery/?editable). Its a very cool technique but I'm not quite sure when I would use it or how I would let a user know that a field is editable simply by clicking on it. Rey - I've looked at these 'click to edit' functions as well but always run into accessibility issues - by the time I add enough flashing arrows and descriptive text that describes how to click, etc - I may as well just use a form. I think users just relate form = editable area and anything that deviates from that confuses people. I use a desktop wiki that has this feature - TiddlyWiki - you can either click the area or they provide an 'edit' button. I ALWAYS click the edit button? I also find myself accidently clicking on those areas which can screw up the content... Maybe I'm old fasioned but I'll stick with vanilla forms :) Jim ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Feedback needed on when to use Edit In Place
On 8 Mar 2007, at 16:56, Rey Bango wrote: I've been thinking about the best time to use an Edit in Place like this one (http://www.dyve.net/jquery/?editable). Its a very cool technique but I'm not quite sure when I would use it or how I would let a user know that a field is editable simply by clicking on it. You might also want to check jEditable which is based on Dylan's plugin. http://www.appelsiini.net/~tuupola/javascript/jEditable/ Some ideas about notifying user field is editable might be for example yellow background or fade to yellow on mouseover, tooltips etc. -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Draggables Problem
Scott, Thanks, you rock! I knew it had to be something simple. One more question though. Any idea why it ignores my padding: 10px; setting on the parent element? Thanks again, Gord On 3/8/07, Weaver, Scott [EMAIL PROTECTED] wrote: Ah, easy fix. I went ahead and mimicked your site. All you need to do to fix this is to set the parent element, #page in your case, position:relative. Now it works like a charm! hth, -scott -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Gord Busse *Sent:* Thursday, March 08, 2007 9:52 AM *To:* JQuery Discuss *Subject:* [jQuery] Interface Draggables Problem Greetings, I am new to JQuery and am very excited to start using it and jump into the world of javascript programming. I have been experimenting with the Interface plugins and have come across a problem or possible bug with the Draggable library. Please see the following page: http://www.gordbusse.com/test.htm I have a parent div horizontally centered on the page using: margin-right: auto; margin-left: auto; And have a child div inside that set to be draggable. But the draggable div does not appear to be obeying the containment: 'parent' command and staying within the div. In fact it seems that there is a constraint but the constraint is left justified whereas the parent div is centered? Furthermore the draggable child div also appears to be ignoring the padding setting of the parent div as well? If I take out the auto margin settings to make the parent div left justified it looks better but it still doesn't seem to be working right? Am I doing something wrong or is this a bug? Thanks in advance for any help anyone can give me. Gord ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] generate folder name
Alexandre, You should be able to simply test the folder name string against a regular expression. More info: http://www.regular-expressions.info/javascript.html http://www.websina.com/bugzero/kb/regexp.html HTH, SEAN O http://www.sean-o.com Alexandre Plennevaux wrote: hello! i am creating a form where user enters the name of a new project. First field is title, the second one is project folder name. I would like to proposed a failsafe folder name from the project title. Can somebody provide me with a good idea on how to generate a secure folder name out of any string input, thus removing all non alphanumeric characters ? Thank you!! Alexandre -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date: 6/03/2007 15:42 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/generate-folder-name-tf3361720.html#a9374260 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] checking created items again via DOM
Hi; I got an interesting problem. I have a code like this: $('.lin').click(function(){ $(#sublevels).append(span class='lin'+split[1]+/spanbr /); } As you see,I have been adding span tags with class lin when another span tag with class lin was clicked. Problem is created span tags with class link must run this code also when they are clicked because they have the same class name (lin) But they donot work What's the problem? -- View this message in context: http://www.nabble.com/checking-created-items-again-via-DOM-tf3369155.html#a9374259 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] generate folder name
Hi Sean, I indeed did it via regular expressions:) Here is the final code: $(input#title).keyup(function(){ var oldVal = $(this).val(); oldVal = oldVal.toLowerCase(); newFolder = oldVal.replace(/^\s+|\s+$/g,).replace(/[ _:;\']/g,-).replace(/[*'²+!?\/@°\]\[]/g,).replace(/[éèë]/g,e).replace(/[ï]/g,i).replace(/[äà]/g,a).replace(/[ùûü]/g,u); $(input#project_folder).val(newFolder); }); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean O Sent: jeudi 8 mars 2007 18:37 To: discuss@jquery.com Subject: Re: [jQuery] generate folder name Alexandre, You should be able to simply test the folder name string against a regular expression. More info: http://www.regular-expressions.info/javascript.html http://www.websina.com/bugzero/kb/regexp.html HTH, SEAN O http://www.sean-o.com Alexandre Plennevaux wrote: hello! i am creating a form where user enters the name of a new project. First field is title, the second one is project folder name. I would like to proposed a failsafe folder name from the project title. Can somebody provide me with a good idea on how to generate a secure folder name out of any string input, thus removing all non alphanumeric characters ? Thank you!! Alexandre -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date: 6/03/2007 15:42 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/generate-folder-name-tf3361720.html#a9374260 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.7/713 - Date: 7/03/2007 9:24 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Draggables Problem
Good question. I can only guess that Draggables is probably using offsets to build the containment box and AFAIK, this does not take into account padding (and it shouldn't). The use of offsets was more than likely also the cause of the initial bounding issue you had. Even though you repositioned the parent using margins, since it was not relatively or absolutely positioned, the call to get parent offset was returning the parent's initial location minus the margin adjustment. WARNING: These are all just wild guesses off the top of my head, though. I could be completely wrong ;) -scott From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gord Busse Sent: Thursday, March 08, 2007 12:25 PM To: jQuery Discussion. Subject: Re: [jQuery] Interface Draggables Problem Scott, Thanks, you rock! I knew it had to be something simple. One more question though. Any idea why it ignores my padding: 10px; setting on the parent element? Thanks again, Gord On 3/8/07, Weaver, Scott [EMAIL PROTECTED] wrote: Ah, easy fix. I went ahead and mimicked your site. All you need to do to fix this is to set the parent element, #page in your case, position:relative. Now it works like a charm! hth, -scott From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] On Behalf Of Gord Busse Sent: Thursday, March 08, 2007 9:52 AM To: JQuery Discuss Subject: [jQuery] Interface Draggables Problem Greetings, I am new to JQuery and am very excited to start using it and jump into the world of javascript programming. I have been experimenting with the Interface plugins and have come across a problem or possible bug with the Draggable library. Please see the following page: http://www.gordbusse.com/test.htm I have a parent div horizontally centered on the page using: margin-right: auto; margin-left: auto; And have a child div inside that set to be draggable. But the draggable div does not appear to be obeying the containment: 'parent' command and staying within the div. In fact it seems that there is a constraint but the constraint is left justified whereas the parent div is centered? Furthermore the draggable child div also appears to be ignoring the padding setting of the parent div as well? If I take out the auto margin settings to make the parent div left justified it looks better but it still doesn't seem to be working right? Am I doing something wrong or is this a bug? Thanks in advance for any help anyone can give me. Gord ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] vertical fisheye menu? OSX dock or tsunami
Hi. Another question about fisheye. Can I use it with this markup: div id=wrapper table tr td class=nav a href=#home/a/td td class=nav a href=#tools/a/td td class=nav a href=#profile/a/td td class=nav a href=#contacts/a/td td class=nav a href=#terms/a/td /tr /table /div Nathan .:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.: ||:. Nathan Young Cisco.com-Interface Development A: ncy1717 E: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of {js}sTyler Sent: Thursday, March 08, 2007 7:09 AM To: discuss@jquery.com Subject: Re: [jQuery] vertical fisheye menu? OSX dock or tsunami I can't find one demo of a javascript version in vertical orientation... I'm also seeing the fisheye menu referred to as OSX dock, or tsunami. After thinking it over I don't think it would be as easy as changing the Css or even layout. All of the distortion and thinking needs to be altered anything that happens to the X plane, will now be happening in the Y direction. Anybody got anything???!! Thanks again. {js}sTyler wrote: Is there a way to set up a fisheye menu with a vertical orientation instead of horizontal? http://interface.eyecon.ro/demos/fisheye.html I haven't toyed with this, but vertical would float my boat better than horizontal, besides MAC's cornered the market on the horizontal fisheye nav. This is the only implementation I've found so far, that is a jquery version. The documentation is here, but it doesn't say much: http://interface.eyecon.ro/docs/fisheye I might give it a whirl. I've got some big image buttons for another site I've just started working with, they are sort of big-ish buttons. If I make the buttons just barely readable the fisheye would zoom them in nice. Thanks, ty I find in the actual interface js code option halign and option valign. Can I simply switch all of the halign instances to valign? If so what would I use instead of Center? Left maybe? Some of the interface code comments: /*** * Build a Fisheye menu from a list of links * * @name Fisheye * @description Build a Fisheye menu from a list of links * @param Hash hash A hash of parameters * @option String items items selection * @option String container container element * @option Integer itemWidth the minimum width for each item * @option Integer maxWidth the maximum width for each item * @option String itemsText selection of element that contains the text for each item * @option Integer proximity the distance from element that make item to interact * @option String valign vertical alignment * @option String halign horizontal alignment * * @type jQuery * @cat Plugins/Interface * @author Stefan Petre **/ -- View this message in context: http://www.nabble.com/vertical-fisheye-menu--tf3365640.html#a9374195 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] javascript is not executed after post
Hi, I am some problem with jQuery.post(url, parmas)..I use the jQuery.post and after that I get a page which again contains some jquery scripts. But they never get fired up. I can see the javascript using the firebug tool in firefox. Any idea what might be the problem. Regards, Ritesh -- View this message in context: http://www.nabble.com/javascript-is-not-executed-after-post-tf3369161.html#a9374267 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Draggables Problem
Scott, Warning noted Thanks again for your help! Gord On 3/8/07, Weaver, Scott [EMAIL PROTECTED] wrote: Good question. I can only guess that Draggables is probably using offsets to build the containment box and AFAIK, this does not take into account padding (and it shouldn't). The use of offsets was more than likely also the cause of the initial bounding issue you had. Even though you repositioned the parent using margins, since it was not relatively or absolutely positioned, the call to get parent offset was returning the parent's initial location minus the margin adjustment. WARNING: These are all just wild guesses off the top of my head, though. I could be completely wrong ;) -scott -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Gord Busse *Sent:* Thursday, March 08, 2007 12:25 PM *To:* jQuery Discussion. *Subject:* Re: [jQuery] Interface Draggables Problem Scott, Thanks, you rock! I knew it had to be something simple. One more question though. Any idea why it ignores my padding: 10px; setting on the parent element? Thanks again, Gord On 3/8/07, *Weaver, Scott* [EMAIL PROTECTED] wrote: Ah, easy fix. I went ahead and mimicked your site. All you need to do to fix this is to set the parent element, #page in your case, position:relative. Now it works like a charm! hth, -scott -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Gord Busse *Sent:* Thursday, March 08, 2007 9:52 AM *To:* JQuery Discuss *Subject:* [jQuery] Interface Draggables Problem Greetings, I am new to JQuery and am very excited to start using it and jump into the world of javascript programming. I have been experimenting with the Interface plugins and have come across a problem or possible bug with the Draggable library. Please see the following page: http://www.gordbusse.com/test.htm I have a parent div horizontally centered on the page using: margin-right: auto; margin-left: auto; And have a child div inside that set to be draggable. But the draggable div does not appear to be obeying the containment: 'parent' command and staying within the div. In fact it seems that there is a constraint but the constraint is left justified whereas the parent div is centered? Furthermore the draggable child div also appears to be ignoring the padding setting of the parent div as well? If I take out the auto margin settings to make the parent div left justified it looks better but it still doesn't seem to be working right? Am I doing something wrong or is this a bug? Thanks in advance for any help anyone can give me. Gord ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] javascript is not executed after post
Could you provide a link or some code? - jake On 3/8/07, Agrawal, Ritesh [EMAIL PROTECTED] wrote: Hi, I am some problem with jQuery.post(url, parmas)..I use the jQuery.post and after that I get a page which again contains some jquery scripts. But they never get fired up. I can see the javascript using the firebug tool in firefox. Any idea what might be the problem. Regards, Ritesh -- View this message in context: http://www.nabble.com/javascript-is-not-executed-after-post-tf3369161.html#a9374267 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with validation
Your code don't solve my problem, but I believe that I found the problem. The problem is the label class. When I set the errorClass, the label still have the class='error'. $(form).validate({ focusInvalid: false, event: blur, debug: true, errorClass: comErro, errorPlacement: function(error, id) { error.attr(class, comErro); error.appendTo( element.next() ); } }); On 3/7/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Leonardo K schrieb: Whenever plugin validates the field it creates new label with error I forgot to update the example about errorPlacement, d'oh. Try this: errorPlacement: function(error, element) { error.appendTo( element.next() ); } I tried your example here, and it works. If the above doesn't solve your issue, could you post an example page? -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with validation
Can I suggest something? Instead of making for example: messages:{ fieldName: { required: blabla } } To use a standard for all the messages: messages:{ required: blabla } ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] checking created items again via DOM
You will need to assign the click to the newly created DOM elements. The elements MUST be attached to DOM before you can assign an event otherwise, the event will not be bound. I think this achieves what you want in jQuery plugin format ;) !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleRecursive Event Assignment/title style type=text/css .lin { cursor:pointer; } /style script type=text/javascript src=/jquery/jquery.js/script script type=text/javascript $.fn.createLink = function() { this.click(function() { var text = Child of +$(this).text(); var newLink = $(span class='lin'+text+/spanbr/); $(#sublevels).append(newLink); newLink.createLink(); // can only bind events AFTER an element is attached to the DOM }); }; $().ready(function () { $(.lin).createLink(); }); /script /head body h1Main Links/h1 ul li class=linLink 1/li li class=linLink 2/li li class=linLink 3/li /ul h1Sublevels/h1 div id=sublevels /div /body /html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of phplord Sent: Thursday, March 08, 2007 12:36 PM To: discuss@jquery.com Subject: [jQuery] checking created items again via DOM Hi; I got an interesting problem. I have a code like this: $('.lin').click(function(){ $(#sublevels).append(span class='lin'+split[1]+/spanbr /); } As you see,I have been adding span tags with class lin when another span tag with class lin was clicked. Problem is created span tags with class link must run this code also when they are clicked because they have the same class name (lin) But they donot work What's the problem? -- View this message in context: http://www.nabble.com/checking-created- items-again-via-DOM-tf3369155.html#a9374259 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] generate folder name
Hi Alexandre. On 3/8/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Hi Sean, I indeed did it via regular expressions:) Good, but you shouldn't rely on stripping a list of invalid characters. It's safer to strip any character that doesn't belong to a whitelist. This code ínó.replace(/[^a-z0-9]/ig, ); will delete from the string any characters that are not in the ranges a-z or 0-9. Your aproach would allow the user to insert (c)∫∂æ†∑Ω crappy characters :( Anyway, don't forget to replicate the validation on the server side. Here is the final code: $(input#title).keyup(function(){ var oldVal = $(this).val(); oldVal = oldVal.toLowerCase(); newFolder = oldVal.replace(/^\s+|\s+$/g,).replace(/[ _:;\']/g,-).replace(/[*'²+!?\/@°\]\[]/g,).replace(/[éèë]/g,e).replace(/[ï]/g,i).replace(/[äà]/g,a).replace(/[ùûü]/g,u); $(input#project_folder).val(newFolder); }); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean O Sent: jeudi 8 mars 2007 18:37 To: discuss@jquery.com Subject: Re: [jQuery] generate folder name Alexandre, You should be able to simply test the folder name string against a regular expression. More info: http://www.regular-expressions.info/javascript.html http://www.websina.com/bugzero/kb/regexp.html HTH, SEAN O http://www.sean-o.com Alexandre Plennevaux wrote: hello! i am creating a form where user enters the name of a new project. First field is title, the second one is project folder name. I would like to proposed a failsafe folder name from the project title. Can somebody provide me with a good idea on how to generate a secure folder name out of any string input, thus removing all non alphanumeric characters ? Thank you!! Alexandre -- Choan http://choangalvez.nom.es/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] checking created items again via DOM
Hi, you could try the following: linClick = function () { $('.lin').unbind('click').click( function(){ $(#sublevels).append(span class='lin'+split[1]+/spanbr/) linClick() } ) } linClick() --Francesco phplord ha scritto: Hi; I got an interesting problem. I have a code like this: $('.lin').click(function(){ $(#sublevels).append(span class='lin'+split[1]+/spanbr /); } As you see,I have been adding span tags with class lin when another span tag with class lin was clicked. Problem is created span tags with class link must run this code also when they are clicked because they have the same class name (lin) But they donot work What's the problem? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Drupal Taxonomy into Jquery
Hi I am building Dynamic taxonomy Form from Ryan`s code http://www.ubercart.org/jquery_dynamic_form/18 So My first step is done: /code $vid=2;$formname=taxonomy; $vocabulary = db_query(SELECT term_data.name, term_data.tid, term_data.language FROM term_data WHERE term_data.vid=$vid AND term_data.language = ' . i18n_get_lang() . ' ORDER BY name); $options[] = t('... '); // Initialise the Taxonomy array //Populate array with taxonomy ID / name while ($term = db_fetch_object($vocabulary)) { $options[$term-tid] = $term-name; } //Build dropdown select $form['taxonomy']['2'] = array( '#type' = 'select', '#name' = $formname, '#id' = 'class-box', '#title' = 'Jump Taxonomy', '#default_value' = '', '#options' = $options, '#description' = '', '#multiple' = $multiple = FALSE, '#required' = $required = FALSE, '#attributes' = array('onchange' = 'mod_class_fields(this.value);') ); /code You can see two important things . First is compatible with i18n and second after choice will open a new box. Very Good!! But after this I am into a Drupal Jquery tag: code drupal_add_js(' $(document).ready(function(){ // Ready code here. if ($(#class-box).val() 0) mod_class_fields($(#class-box).val(), 0); }); function mod_class_fields(class_id, speed) { var cfields; if (speed == null) speed = slow; switch (class_id) { case 3: cfields = div class=\form-item\label for=\edit-genre\Genre: /labelselect name=\genre\ class=\form-select\ id=\edit-genre\ optionDrama/optionoptionAction/optionoptionSci-Fi/option/select/div; break; case 2: cfields = div class=\form-item\label for=\edit-genre\Genre: /labelselect name=\genre\ class=\form-select\ id=\edit-genre\ optionDrama/optionoptionAction/optionoptionSci-Fi/option/select/div; break; default: cfields = div/div; } if (class_id == 0) $(#class-fields).hide(slow).empty(); else $(#class-fields).empty().append(cfields).show(speed); } ', 'inline'); /code and I want in simple way case 3: div class=\form-item\ print drupal_render($form['taxonomy']['6']); /div; I tried a lot of things but dont work. I am feeling could have something in Jquery is crashing my ideas. Who can help me? -- Mário [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery tabs and loader div
hey... i want to load content inside tab, and whille that to show loading image... i saw the api and i dont success to do it what i did worng in here? ?link rel=stylesheet href=?=$rooturljs?/tabs2/tabs.css type=text/css media=print, projection, screen / !-- Additional IE/Win specific style sheet (Conditional Comments) -- !--[if lte IE 7] link rel=stylesheet href=?=$rooturljs?/tabs2/tabs_ie.css type=text/css media=projection, screen / ![endif]-- script src=?=$rooturljs?/jquery-1.1.1.js type=text/javascript/script script src=?=$rooturljs?/history/jquery.history.pack.js type=text/javascript/script script src=?=$rooturljs?/tabs2/jquery.tabs.pack.js type=text/javascript/script script type=text/javascript//![CDATA[ // Tabs - hide tabs before initialization to avoid flash of content // Add styles via JavaScript for graceful degradation... document.write('style type=text/css media=projection, screen.fragment { display: none; }/style'); //]]/script style type=text/css media=screen, projection /* just to make this demo look a bit better... */ * { margin: 0; padding: 0; } body { padding: 10px; line-height: 1.4; font-size: 16px; /* @ EOMB */ } body * { font-size: 87.5%; font-family: Trebuchet MS, Trebuchet, Verdana, Helvetica, Arial, sans-serif; } body * * { font-size: 100%; } h1 { margin: 0 0 1em; font-size: 143%; } h2 { margin: 2em 0 1em; } h3 { margin: 0 0 1em; } ul { list-style: none; } p, pre { margin: 1em 0 0; } code { font-family: Courier New, Courier, monospace; } div { margin: 1.2em 0 0; width: 50%; } div div { margin: 0; width: auto; } #container-10 div { border: 1px solid #eaeaea; background: transparent; } #container-10 div div { border: 0; } #tested li { display: inline; } #tested li:before { content: , ; } #tested li:first-child:before { content: ; } /style !-- Additional IE/Win specific style sheet (Conditional Comments) -- !--[if lte IE 7] style type=text/css media=screen, projection body { font-size: 100%; /* resizable fonts */ } /style ![endif]-- script type=text/javascript//![CDATA[ function createCallback(type) { return function() { alert('callback: ' + type); } } $(document).ready(function() { $('#container-10').tabs({ remote: true, fxFade: true, fxSpeed: 'fast', fxSlide: true, loadingClass: 'progress', spinner: '/myhome/img/load1.gif'}); }); //]]/script /head body div id=container-10 ul class=anchors li tes1t.php Section 25 /li li tes2t.php Section 26 /li li test.php Section 27 /li /ul/divdiv id='progress'/div /body /html -- View this message in context: http://www.nabble.com/jquery-tabs-and-loader-div-tf3371416.html#a9381472 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Using datePicker as a calendar
Hi Bruce, I'm looking for exactly looking for the same thing, I would like to be able to blank out certain dates and make them not selectable, but also looking at the calendar as a whole, not just a date picker. I know this is not much help but I will follow this thread closely. Regards, Eugene On 3/5/07, Bruce McKenzie [EMAIL PROTECTED] wrote: Hello, I'd like to use the excellent datePicker plugin to make a bigger calendar that displays summary data from a database for each day in the month. I've got it working for the first month that displays, but I don't know how to display new data when the user clicks on the previous month or next month link. I think what I need to do is either insert a function into datePicker.js that makes an Ajax call, then call that function from the built-in changeMonth function. Or extend jQuery.datePicker with a new method that includes changeMonth. I'm not clear on how to do either -- or whether there's a better way. Thanks, Bruce http://www.2MinuteExplainer.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Eugene Louw Nowhere, South Africa ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Autocomplete Plug-In at dyve.net CF
Hey, Rey...(or others) I was looking over the plug-ins at dyve.net and am interested in the autocomplete plug-in. I noticed that the source script that supplied info for the auto complete is a php file. Would it be difficult to modify this autocomplete to work with CF? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Using datePicker as a calendar
I've resorted to writing my own calendar functions (a mix of JS and ColdFusion) because I needed more than just a date picker. I'll watch this thread too, and see where it goes. :o) Chris Eugene Louw wrote: Hi Bruce, I'm looking for exactly looking for the same thing, I would like to be able to blank out certain dates and make them not selectable, but also looking at the calendar as a whole, not just a date picker. I know this is not much help but I will follow this thread closely. Regards, Eugene On 3/5/07, *Bruce McKenzie* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I'd like to use the excellent datePicker plugin to make a bigger calendar that displays summary data from a database for each day in the month. I've got it working for the first month that displays, but I don't know how to display new data when the user clicks on the previous month or next month link. I think what I need to do is either insert a function into datePicker.js that makes an Ajax call, then call that function from the built-in changeMonth function. Or extend jQuery.datePicker with a new method that includes changeMonth. I'm not clear on how to do either -- or whether there's a better way. Thanks, Bruce http://www.2MinuteExplainer.com http://www.2MinuteExplainer.com ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ -- Eugene Louw Nowhere, South Africa ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Litebox adds Flickr support
I'd like to use it as well, unfortunately the licensing ( ie non-commercial http://creativecommons.org/licenses/by-nc/2.5/ ) is prohibitive. Why not MIT and/or GPL? Karl Rudd On 3/9/07, Rey Bango [EMAIL PROTECTED] wrote: Daniel, This is badass! I love it man. I was thinking after I saw it that it would be VERY cool is if you could tie it into jCarousel in some fashion. (http://sorgalla.com/jcarousel/). The ability to load up jCarousel with Flickr thumbs would be awesome. Rey... Daniel MacDonald wrote: http://www.projectatomic.com/litebox jQuery Litebox now supports Flickr with the http://www.projectatomic.com/flickr jQuery Flickr plug-in. The jQuery Flickr plug-in is an alpha release, but it features: no server-side proxy required. easy to implement: $(#myElement).flickr(); supports custom callbacks, and custom requests returns recent photos photosets by id returns sorted search results by user id, group id, tags, or text configure thumbnail size and image size built-in jQuery Litebox slideshow integration tested in Firefox 1.5-2.0, Internet Explorer 6.0-7.0, and Opera 8.53 Windows check it out, and please leave feedback -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete Plug-In at dyve.net CF
Dan Switzer has already done this Rick. http://www.pengoworks.com/workshop/jquery/autocomplete.htm _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Thursday, March 08, 2007 2:46 PM To: 'jQuery Discussion.' Subject: [jQuery] Autocomplete Plug-In at dyve.net CF Hey, Rey...(or others) I was looking over the plug-ins at dyve.net and am interested in the autocomplete plug-in. I noticed that the source script that supplied info for the auto complete is a php file. Would it be difficult to modify this autocomplete to work with CF? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete Plug-In at dyve.net CF
I have code for you. I'll send it off list. Rey Rick Faircloth wrote: Hey, Rey...(or others) I was looking over the plug-ins at dyve.net and am interested in the autocomplete plug-in. I noticed that the source script that supplied info for the auto complete is a php file. Would it be difficult to modify this autocomplete to work with CF? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Autocomplete Plug-In at dyve.net CF
Thanks, Rey... I'll be watching for it. Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Thursday, March 08, 2007 4:09 PM To: jQuery Discussion. Subject: Re: [jQuery] Autocomplete Plug-In at dyve.net CF I have code for you. I'll send it off list. Rey ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Options for Validation...
Calling all jQuery/CF'ers. I'm not real satisfied with the error message placement options in Jorn Zaefferer's validation plug-in. I like to place my error messages right above the form field that the error message references. Right now, as I understand it, Jorn's plug-in doesn't allow for that type of placement. Among the options are placement after the invalid element. Don't like that. Another option is to validate onSubmit and, while that's ok, I'm still limited to grouping the error messages at the top of the form. That's not a good user experience when the form may be 50 fields long and the user has to scroll up and down to check errors messages. Here's my scenario and question: I'm using jQuery to calculate a mortgage payment. Once the form is submitted, the form info is sent to a CF pages for processing, then the resulting payment is returned to the calling page. Very nice. The question is this.can I use CF to validate the form data and then, if there's an error, set some error messages in a scope, such as Form_Errors.Principal, etc., and send that info back to the calling page and display it in the form as described above? If all user input passes validation, then the other CF code processes the payment and returns it to the calling page. Is this kind validation possible without page refreshing? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery tabs and loader div
amircx schrieb: hey... i want to load content inside tab, and whille that to show loading image... i saw the api and i dont success to do it what i did worng in here? I don't know where you got that from, but there is no spinner option currently implemented. $('#container-10').tabs({ remote: true, fxFade: true, fxSpeed: 'fast', fxSlide: true, loadingClass: 'progress', spinner: '/myhome/img/load1.gif'}); The loading class is attached to the the li element which anchor got clicked on to load the Ajax content. This class is used to change the appearance of the clicked tab while loading. It's default value is 'tabs-loading', thus there's the following rule in the style sheet: .anchors .tabs-selected .tabs-loading { padding-left: 25px; background-image: url(loading.gif); /* = change url here?! */ background-position: 4px 50%; background-repeat: no-repeat; } If you want to change the name of that class, you can use the loadingClass option for that. You have to adapt your style sheet accordingly of course: .anchors .tabs-selected .progress { padding-left: 25px; background-image: url(loading.gif); background-position: 4px 50%; background-repeat: no-repeat; } The little spinner will be shown left to the text of the tab title. Showing a spinner elsewhere is not supported by an option, but you could use the onClick and onHide callbacks, the former for displaying the spinner, the latter to hide it. onHide gets fired when the formerly active tab is hidden, e.g. in the middle of the effect, right before the new tab is revealed. Something like that: $('#container').tabs({ remote: true, fxFade: true, fxSlide: true, fxSpeed: 'fast', onClick: function() { $('#progress').show(); }, onHide: function() { $('#progress').hide(); } }); Let me know if that works for you. onHide does not exactly map to the point when the content got loaded. As an alternative you could use the global ajaxStart and ajaxStop handlers for that. $(#progress) .ajaxStart(function(){ $(this).show(); }) .ajaxStop(function(){ $(this).hide(); }); -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Options for Validation...
You might want to look into Mike Alsup's Taconite plug-in http://www.malsup.com/jquery/taconite/. Seems to be able to do what you want. -blair Rick Faircloth wrote: Calling all jQuery/CF’ers… I’m not real satisfied with the error message placement options in Jorn Zaefferer’s validation plug-in. I like to place my error messages right above the form field that the error message references. Right now, as I understand it, Jorn’s plug-in doesn’t allow for that type of placement. Among the options are placement after the invalid element. Don’t like that… Another option is to validate onSubmit and, while that’s ok, I’m still limited to grouping the error messages at the top of the form. That’s not a good user experience when the form may be 50 fields long and the user has to scroll up and down to check errors messages. Here’s my scenario and question: I’m using jQuery to calculate a mortgage payment. Once the form is submitted, the form info is sent to a CF pages for processing, then the resulting payment is returned to the calling page. Very nice… The question is this…can I use CF to validate the form data and then, if there’s an error, set some error messages in a scope, such as Form_Errors.Principal, etc., and send that info back to the calling page and display it in the form as described above? If all user input passes validation, then the other CF code processes the payment and returns it to the calling page. Is this kind validation possible without page refreshing? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Litebox adds Flickr support
ooh. I didn't see that. That effectively rules me out as well. Daniel, can you change the licensing to match jQuery? Rey... Karl Rudd wrote: I'd like to use it as well, unfortunately the licensing ( ie non-commercial http://creativecommons.org/licenses/by-nc/2.5/ ) is prohibitive. Why not MIT and/or GPL? Karl Rudd On 3/9/07, Rey Bango [EMAIL PROTECTED] wrote: Daniel, This is badass! I love it man. I was thinking after I saw it that it would be VERY cool is if you could tie it into jCarousel in some fashion. (http://sorgalla.com/jcarousel/). The ability to load up jCarousel with Flickr thumbs would be awesome. Rey... Daniel MacDonald wrote: http://www.projectatomic.com/litebox jQuery Litebox now supports Flickr with the http://www.projectatomic.com/flickr jQuery Flickr plug-in. The jQuery Flickr plug-in is an alpha release, but it features: no server-side proxy required. easy to implement: $(#myElement).flickr(); supports custom callbacks, and custom requests returns recent photos photosets by id returns sorted search results by user id, group id, tags, or text configure thumbnail size and image size built-in jQuery Litebox slideshow integration tested in Firefox 1.5-2.0, Internet Explorer 6.0-7.0, and Opera 8.53 Windows check it out, and please leave feedback -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Litebox adds Flickr support
Rey, Thanks, I like hearing badass! I ran across jCarousel mid-way through this project, and I knew that Litebox would be even badasser with jCarousel. I was thinking of something similar to the Windows Explorer Filmstrip view. I am going to continue to tweak a few issues before tackling that one, however. Thanks for the feedback, I really have to enable comments on the site. D Rey Bango-2 wrote: Daniel, This is badass! I love it man. I was thinking after I saw it that it would be VERY cool is if you could tie it into jCarousel in some fashion. (http://sorgalla.com/jcarousel/). The ability to load up jCarousel with Flickr thumbs would be awesome. Rey... Daniel MacDonald wrote: http://www.projectatomic.com/litebox jQuery Litebox now supports Flickr with the http://www.projectatomic.com/flickr jQuery Flickr plug-in. The jQuery Flickr plug-in is an alpha release, but it features: no server-side proxy required. easy to implement: $(#myElement).flickr(); supports custom callbacks, and custom requests returns recent photos photosets by id returns sorted search results by user id, group id, tags, or text configure thumbnail size and image size built-in jQuery Litebox slideshow integration tested in Firefox 1.5-2.0, Internet Explorer 6.0-7.0, and Opera 8.53 Windows check it out, and please leave feedback -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/jQuery-Litebox-adds-Flickr-support-tf3367248.html#a9381493 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] need some idea
Hi, I need some idea on how to do this. I have a big user survey form. It has around 25 fields. However, depending on the type of user such as administrator, member, etc...many fields are not required. In my survey form, a user will select user type from a select box. My problem: I don't want to scare off users from filling the survey form. Thus, I want to display only the relevant fields depending on the user type they have selected. What I would like to do is to add some script to change method of select box and hide/show fields dependening on the selection. However, I am not sure what's the best way to handle list of box to show and hide...I am trying to avoid a long list of if else .. any idea is welcome Regards, Ritesh -- View this message in context: http://www.nabble.com/need-some-idea-tf3371424.html#a9381497 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Need help implementing validation...
Rick Faircloth schrieb: Well now I'm getting somewhere... What was happening is that all the form fields (Principal, Interest, Years) in the MC_Form did not have id's assigned to them by me. However, when rendered, the fields were being automatically assigned an id such #MC_FormPrincipal or #MC_FormInterest. (From the looks of the Firebug response that's why I think was happening, anyway.) Once I assigned explicit id's to each of the form fields, I began to get a response from the validation plug-in. Whew! Man that has been driving me crazy all week! Well, good news at last, good to hear. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] interface imagebox
I recently added image preloading (the previous and next images start to load while viewing the current image) to http://www.projectatomic.com/litebox jQuery Litebox , which should help with reduce delays. You could try adding the setInterval to the onload event in the $.litebox.resize() method. I also cleaned up the code to enable easier access to properties, you could try something like: if (this.i+1 this.g.length) { setInterval( That might stop the last image from continually clicking (maybe) I too am also trying to be lazy D Brent Pedersen-2 wrote: thanks, i have looked at that one. and i have dug into the code some. doing what you suggest _seems_ fine, but then, you get to the last image and it keeps triggering click. also, instead of fading from 1 image to the next it shows the loading gif in between. and in that slideshow, i think the loading gif is never hidden so if the image is too small, you can still see the gif. the other thing with a timeout is a large image might take 4 seconds to load so you see it for only a second. a small image will load faster so you'll see it for longer. of course, all of these could be addressed. i'm just trying to be lazy. -b On 2/22/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Brent, You can check out this plugin http://www.projectatomic.com/litebox/ and you can put a setInterval to trigger the next click. setInterval ($('#nextlink').trigger('click'), 5000); this is not tested but I think it is somewhat right. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/interface-imagebox-tf3275634.html#a9381499 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] release: Validation plugin beta 1
Brice Burgess schrieb: Jörn Zaefferer wrote: Actually I was referring to the use of metadata ;-) The metadata plugin was the result of a pretty long discussion about the best approach on metadata, a lot of brainpower went into that one :-) Any chance on integrating this into the core API? I think it would be pretty cool. I know a lot of plugins use, or will be using the metadata plugin. The same two functions could be used, but I'd like $.data() to be able to override the default extraction method set with $.meta(). Something like; jQuery.meta('set default extraction to element's attribute || selector referencing script '), jQueryObject.data() // grab the data jQurryObject.data('override default extraxtion'); // grab the data using a non-default extractor A little background on the inner workings of the metadata plugin: It extracts the metadata on first access of the element via jQuery, therefore it is already available when calling data(). Therefore your proposal would be not so very easy to implement. And as jQuery is growing with its bug fixes, even without any new core features, I don't expect to see any new features in jQuery core at all in the next months. More effort will go into leverarging the qualitity of plugins to the level of the core. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] need some idea
So why don't you do this: JavaScript: $(function(){ $(div.opt).hide(); $(select).change(function(){ $(div.opt).hide(); $(div.+$(this).val()).show(); }); }); Document: select name=user option value=t1Administrator/option option value=t2Manager/option option value=t3Executive/option /select div class=opt t1 t2 t3 label for=text1Field Number One/label input type=text name=text1/input /div div class=opt t3 label for=text1Field Number Two/label input type=text name=text1/input /div div class=opt t2 t3 label for=text1Field Number Three/label input type=text name=text1/input /div So basically, the option values are the class names of the divisions you want to show when someone selects a new user type. $().change fires whenever a new user type is selected. - jake On 3/8/07, Agrawal, Ritesh [EMAIL PROTECTED] wrote: Hi, I need some idea on how to do this. I have a big user survey form. It has around 25 fields. However, depending on the type of user such as administrator, member, etc...many fields are not required. In my survey form, a user will select user type from a select box. My problem: I don't want to scare off users from filling the survey form. Thus, I want to display only the relevant fields depending on the user type they have selected. What I would like to do is to add some script to change method of select box and hide/show fields dependening on the selection. However, I am not sure what's the best way to handle list of box to show and hide...I am trying to avoid a long list of if else .. any idea is welcome Regards, Ritesh -- View this message in context: http://www.nabble.com/need-some-idea-tf3371424.html#a9381497 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Options for Validation...
Thanks for the tip, Blair. Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blair Mitchelmore Sent: Thursday, March 08, 2007 4:23 PM To: jQuery Discussion. Subject: Re: [jQuery] Options for Validation... You might want to look into Mike Alsup's Taconite plug-in http://www.malsup.com/jquery/taconite/. Seems to be able to do what you want. -blair Rick Faircloth wrote: Calling all jQuery/CF'ers. I'm not real satisfied with the error message placement options in Jorn Zaefferer's validation plug-in. I like to place my error messages right above the form field that the error message references. Right now, as I understand it, Jorn's plug-in doesn't allow for that type of placement. Among the options are placement after the invalid element. Don't like that. Another option is to validate onSubmit and, while that's ok, I'm still limited to grouping the error messages at the top of the form. That's not a good user experience when the form may be 50 fields long and the user has to scroll up and down to check errors messages. Here's my scenario and question: I'm using jQuery to calculate a mortgage payment. Once the form is submitted, the form info is sent to a CF pages for processing, then the resulting payment is returned to the calling page. Very nice. The question is this.can I use CF to validate the form data and then, if there's an error, set some error messages in a scope, such as Form_Errors.Principal, etc., and send that info back to the calling page and display it in the form as described above? If all user input passes validation, then the other CF code processes the payment and returns it to the calling page. Is this kind validation possible without page refreshing? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's
Brandon Aaron schrieb: There is a ticket for this: http://dev.jquery.com/ticket/143 I've added another comment on that ticket. I'm currently working with JSF, too, so a working solution is quite interesting. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Options for Validation...
Blair... Are you saying that Taconite will allow the kind of validation using CF that I described below? Process my inputs, create a scope for errors, such as Form_Errors.Principal, then use Taconite to take the scope data and attach it to some form element in the calling document and display it? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blair Mitchelmore Sent: Thursday, March 08, 2007 4:23 PM To: jQuery Discussion. Subject: Re: [jQuery] Options for Validation... You might want to look into Mike Alsup's Taconite plug-in http://www.malsup.com/jquery/taconite/. Seems to be able to do what you want. -blair Rick Faircloth wrote: Calling all jQuery/CF'ers. I'm not real satisfied with the error message placement options in Jorn Zaefferer's validation plug-in. I like to place my error messages right above the form field that the error message references. Right now, as I understand it, Jorn's plug-in doesn't allow for that type of placement. Among the options are placement after the invalid element. Don't like that. Another option is to validate onSubmit and, while that's ok, I'm still limited to grouping the error messages at the top of the form. That's not a good user experience when the form may be 50 fields long and the user has to scroll up and down to check errors messages. Here's my scenario and question: I'm using jQuery to calculate a mortgage payment. Once the form is submitted, the form info is sent to a CF pages for processing, then the resulting payment is returned to the calling page. Very nice. The question is this.can I use CF to validate the form data and then, if there's an error, set some error messages in a scope, such as Form_Errors.Principal, etc., and send that info back to the calling page and display it in the form as described above? If all user input passes validation, then the other CF code processes the payment and returns it to the calling page. Is this kind validation possible without page refreshing? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Need some guidance...
Rick Faircloth schrieb: Well, Jorn... I finally figured out the problem... I hadn't assigned an id's to my form fields (Principal, Interest, Years), so I couldn't see the conflict. However, it looks like id's were automatically being assigned to my form fields when published... they were renamed using the form id and then the field name attached, as in #Mortgage_Calculation_FormPrincipal and I guess this id was confusing the validation plug-in (although I'm not quite sure why because even though the automatically generated id name included the form id name, it was not the same name exactly. The plugin genereates IDs by combining the form's id with the element's name. Of course that doesn't happen when element already have IDs. Can you tell me what combination of IDs and names caused the confusion? I'd like to fix that. However, the lesson learned: Always assign id's (unique ones) to every element. So I've got the plug-in working. Now I've got two more questions: 1) How do I format the validation message? In the plug-in settings? Can I put CSS formatting in there? All formatting should be done via external stylesheets. The plugin lets you customize the class used to mark them as error labels, but thats it. 2) How can I get the messages to display above the form fields? Can the label tag take CSS formatting in-line? You can use the errorPlacement option to take the placement of the labels in your own hand. So you could append them to the body element and add absolute positioning. Beware that the example of the errorPlacement option is flawed. The second argument is not the ID, but the element itself as a jQuery object. The documentation for the option itself is correct. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Options for Validation...
Rick Faircloth schrieb: Calling all jQuery/CF’ers… I’m not real satisfied with the error message placement options in Jorn Zaefferer’s validation plug-in. I like to place my error messages right above the form field that the error message references. Right now, as I understand it, Jorn’s plug-in doesn’t allow for that type of placement. Forgot that other message. Well, parts of it. You can customize the error placement! Just implement the errorPlacement function: $(#myform).validate({ errorPlacement: function(error, element) { // do whatever you like with error and the element, eg.: error.insertBefore(element); // - inserts the error before the element, use next() or prev() or parent() on element etc. to navigate through the DOM } }); -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with validation
Leonardo K schrieb: Your code don't solve my problem, but I believe that I found the problem. The problem is the label class. When I set the errorClass, the label still have the class='error'. $(form).validate({ focusInvalid: false, event: blur, debug: true, errorClass: comErro, errorPlacement: function(error, id) { error.attr(class, comErro); error.appendTo( element.next() ); } }); That is a bug, thanks for spotting it. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with validation
Leonardo K schrieb: Can I suggest something? Instead of making for example: messages:{ fieldName: { required: blabla } } To use a standard for all the messages: messages:{ required: blabla } You can override default messages by modifying the jQuery.validator.messages object. So in your case: jQuery.validator.messages.required = blablabla That then applies to all validations following. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Validation help with Date Selector
I have a form with multiple inputs. One of them using the dateselector plugin. On validation that field gets jumbled up because of the placement of the date icon. What I'm wondering is on just that one field can I set the error message to appear in an alternate location? i.e. - Can I add something to the meta data to tell that one field to post the error message in the #errdiv? input id=getdate name=getdate type=text class=reg_input {required:true} style=width:115px; div id=errdiv/div Thanks for your input. -- View this message in context: http://www.nabble.com/Validation-help-with-Date-Selector-tf3371164.html#a9380704 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] SVN konq test suite
Hi guys, I wrote in a while ago asking about konqueror isssues and someone referred me to a test page where i could check the supported functions etc.. I've been given some time to play around with JQuery. I've checked out the source from SVN and was wondering if the test page was in SVN ? kind regards Andrew M pgpjMU73A8DX7.pgp Description: PGP signature ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Need some guidance...
Can you tell me what combination of IDs and names caused the confusion? What was happening is this: I had a form with an id of #Mortgage_Calculation_Form. I had inputs for the form named Principal, Interest, and Years. However, these inputs did not have any id assigned to them. When the plug-in ran, it created id's for them: For Principal, the id became #Mortgage_Calculation_FormPrincipal. For Interest, the id became #Mortgage_Calculation_FormInterest. For Years, the id became #Mortgage_Calculation_FormYears. It combined the form id with the name of the inputs to form the id... at least that's what I gathered from looking at the response that Firebug returned. All formatting should be done via external stylesheets. The plugin lets you customize the class used to mark them as error labels, but that's it. What is the class used to mark them as 'error labels'? Is that a class that I assign to them for the stylesheets to reference? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Thursday, March 08, 2007 5:23 PM To: jQuery Discussion. Subject: Re: [jQuery] Need some guidance... Rick Faircloth schrieb: Well, Jorn... I finally figured out the problem... I hadn't assigned an id's to my form fields (Principal, Interest, Years), so I couldn't see the conflict. However, it looks like id's were automatically being assigned to my form fields when published... they were renamed using the form id and then the field name attached, as in #Mortgage_Calculation_FormPrincipal and I guess this id was confusing the validation plug-in (although I'm not quite sure why because even though the automatically generated id name included the form id name, it was not the same name exactly. The plugin genereates IDs by combining the form's id with the element's name. Of course that doesn't happen when element already have IDs. Can you tell me what combination of IDs and names caused the confusion? I'd like to fix that. However, the lesson learned: Always assign id's (unique ones) to every element. So I've got the plug-in working. Now I've got two more questions: 1) How do I format the validation message? In the plug-in settings? Can I put CSS formatting in there? All formatting should be done via external stylesheets. The plugin lets you customize the class used to mark them as error labels, but thats it. 2) How can I get the messages to display above the form fields? Can the label tag take CSS formatting in-line? You can use the errorPlacement option to take the placement of the labels in your own hand. So you could append them to the body element and add absolute positioning. Beware that the example of the errorPlacement option is flawed. The second argument is not the ID, but the element itself as a jQuery object. The documentation for the option itself is correct. -- Jörn Zaefferer ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] New plugin: ContextMenu
Hi everyone The first version of my new ContextMenu plugin has been released. You can grab it here: http://www.trendskitchens.co.nz/jquery/contextmenu/ ContextMenu lets you selectively replace the browser's right click menu with one of your own. It is fully customisable and allows you to bind context-sensitive actions to each menu option. Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided much inspiration. This is my first plugin for jQuery and any feedback/comments/improvements would be most appreciated! Cheers, Chris Domigan ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] One element, multiple actions
You can use .each(). $(#myId).each(function() { // do lots of stuff }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New plugin: ContextMenu
Ok, that gets added to my badass plugin list as well!! Chris Domigan wrote: Hi everyone The first version of my new ContextMenu plugin has been released. You can grab it here: http://www.trendskitchens.co.nz/jquery/contextmenu/ http://www.trendskitchens.co.nz/jquery/contextmenu/ ContextMenu lets you selectively replace the browser's right click menu with one of your own. It is fully customisable and allows you to bind context-sensitive actions to each menu option. Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided much inspiration. This is my first plugin for jQuery and any feedback/comments/improvements would be most appreciated! Cheers, Chris Domigan ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] New version of jquery and IE6 bugs
I am having major issues with the newer versions of JQuery with IE6. Everything works beautifully in Firefox and IE 7. Jquery 1.04 is stable in IE 6, but jquery1.11+ causes an occasionally crash IE runtime error when using radio buttons that are triggering xajax calls. A bigger issue is that now I have really messeded CSS issues. To solve the Radio button issues, I am probably just going to remodel that part of the page without radios. But, as far as the CSS, I am at a loss. Any ideas on how Jquery 1.1.1+ could cause css issues in IE? I am looking for clues, but haven't found any yet. Each refresh causes different div backgrounds to appear and dissappear in a seemingly random pattern. Can somebody wave a magic wand and make IE6 go away? thanks, jeremy ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Options for Validation...
I don't have much of a clue how to code what you mean with the errorPlacement function: Here's what I tried, which didn't work...everything else runs fine without it... remember, unfortunately you're helping someone who has just begun to work with jQuery and the plug-ins... :o) $.validator.defaults.debug = true; $().ready(function() { // validate Mortgage_Calculation_Form form fields on blur $(#MC_Form).validate({ errorPlacement: function(error, #Principal) { error.insertBefore(#Principal); }, focusInvalid: false, event: blur, rules: { Principal: {required: true}, Interest: {required: true, number: true}, Years: {required: true, number: true} }, messages: { Principal: Please enter the Principal., Interest: {required: Please enter the Interest Rate., number: Please enter a number.}, Years: {required: Please enter the Years., number: Please enter a number.} } }) }); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Thursday, March 08, 2007 5:30 PM To: jQuery Discussion. Subject: Re: [jQuery] Options for Validation... Rick Faircloth schrieb: Calling all jQuery/CFers Im not real satisfied with the error message placement options in Jorn Zaefferers validation plug-in. I like to place my error messages right above the form field that the error message references. Right now, as I understand it, Jorns plug-in doesnt allow for that type of placement. Forgot that other message. Well, parts of it. You can customize the error placement! Just implement the errorPlacement function: $(#myform).validate({ errorPlacement: function(error, element) { // do whatever you like with error and the element, eg.: error.insertBefore(element); // - inserts the error before the element, use next() or prev() or parent() on element etc. to navigate through the DOM } }); -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] SVN konq test suite N/M i found it
please disregard my previous post On Friday March 9 2007 09:37:06 am Andrew Mason wrote: Hi guys, I wrote in a while ago asking about konqueror isssues and someone referred me to a test page where i could check the supported functions etc.. I've been given some time to play around with JQuery. I've checked out the source from SVN and was wondering if the test page was in SVN ? kind regards Andrew M pgp3Y5aH3wfOj.pgp Description: PGP signature ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New version of jquery and IE6 bugs
You could use some sort of content negotiation to serve up different versions of jquery depending on browser. Apache has a few different ways of doing this, not sure about other web servers. On Friday March 9 2007 10:10:14 am Jeremy Dill wrote: I am having major issues with the newer versions of JQuery with IE6. Everything works beautifully in Firefox and IE 7. Jquery 1.04 is stable in IE 6, but jquery1.11+ causes an occasionally crash IE runtime error when using radio buttons that are triggering xajax calls. A bigger issue is that now I have really messeded CSS issues. To solve the Radio button issues, I am probably just going to remodel that part of the page without radios. But, as far as the CSS, I am at a loss. Any ideas on how Jquery 1.1.1+ could cause css issues in IE? I am looking for clues, but haven't found any yet. Each refresh causes different div backgrounds to appear and dissappear in a seemingly random pattern. Can somebody wave a magic wand and make IE6 go away? thanks, jeremy pgp7CvWHkQxGn.pgp Description: PGP signature ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] One element, multiple actions
Not exactly, to add to Chris's comment, using: $(myele).each(function() { // do lots of stuff }); will scope the 'this' keyword to whatever you've selected using $('myele'). So, for example, if I had: with(document.getElementById(myele)) { // myele now part of scope chain, no variable needed style.backgroundColor = #000; } I could replace it using the following jQuery: $(#myele).each(function(){ // myele now referenced using this this.style.backgroundColor = #000; }); Keep in mind that $(selector).each() will work with all elements that have been found using a given selector (see http://docs.jquery.com/Core). Also, this is just my opinion, but using the with keyword is usually a bad idea, as it is difficult to optimize such code and it can cause surprising behavior when defining functions within such blocks. Instead, just assign the element to a variable, using jQuery or JavaScript, like: var myele = $(#myele); myele.css({backgroundColor:#000}); is equivalent to var myele = document.getElementById(myele); myele.style.backgroundColor = #000; - jake On 3/8/07, Chris Domigan [EMAIL PROTECTED] wrote: You can use .each(). $(#myId).each(function() { // do lots of stuff }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New version of jquery and IE6 bugs
Thanks. I might have to do that. Just worried that it will lead to other issues like plugin compatibility, etc. -Original Message- From: Andrew Mason [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 5:50 PM To: [EMAIL PROTECTED]; jQuery Discussion. Subject: Re: [jQuery] New version of jquery and IE6 bugs You could use some sort of content negotiation to serve up different versions of jquery depending on browser. Apache has a few different ways of doing this, not sure about other web servers. On Friday March 9 2007 10:10:14 am Jeremy Dill wrote: I am having major issues with the newer versions of JQuery with IE6. Everything works beautifully in Firefox and IE 7. Jquery 1.04 is stable in IE 6, but jquery1.11+ causes an occasionally crash IE runtime error when using radio buttons that are triggering xajax calls. A bigger issue is that now I have really messeded CSS issues. To solve the Radio button issues, I am probably just going to remodel that part of the page without radios. But, as far as the CSS, I am at a loss. Any ideas on how Jquery 1.1.1+ could cause css issues in IE? I am looking for clues, but haven't found any yet. Each refresh causes different div backgrounds to appear and dissappear in a seemingly random pattern. Can somebody wave a magic wand and make IE6 go away? thanks, jeremy ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New version of jquery and IE6 bugs
Could you possibly post up an example? It is hard to know what is really going on without seeing it. -- Brandon Aaron On 3/8/07, Jeremy Dill [EMAIL PROTECTED] wrote: I am having major issues with the newer versions of JQuery with IE6. Everything works beautifully in Firefox and IE 7. Jquery 1.04 is stable in IE 6, but jquery1.11+ causes an occasionally crash IE runtime error when using radio buttons that are triggering xajax calls. A bigger issue is that now I have really messeded CSS issues. To solve the Radio button issues, I am probably just going to remodel that part of the page without radios. But, as far as the CSS, I am at a loss. Any ideas on how Jquery 1.1.1+ could cause css issues in IE? I am looking for clues, but haven't found any yet. Each refresh causes different div backgrounds to appear and dissappear in a seemingly random pattern. Can somebody wave a magic wand and make IE6 go away? thanks, jeremy ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] One element, multiple actions
I knew about each(), but since I had only one element it seemed...I don't know...almost like overkill. I was hoping there would be something like: $('myele').do ( /** do stuff */ ); But, that having been said, I guess each() is effectively that. Maybe it's only the semantics of it that had me looking for a different way. Thanks for your help. On 3/8/07, Karl Rudd [EMAIL PROTECTED] wrote: Something to also keep in mind is that most of the jQuery functions have an implicit each included with them. A jQuery object is basically an array of objects, so the methods you run on the object are actually run on all the objects in the array. For instance, given the follow HTML: ul li1/li li2/li li3/li /ul The following script will change the background color of all the li elements: $('li').css({backgroundColor:#000}); It's like writing: var elems = document.getElementsByTagName(li); for ( var i = 0; i elems.length; i++ ) elems[i].style.backgroundColor = #000; This is where jQuery gets a lot of it's write less, do more power from. Perhaps you should take a look at some of the tutorials: http://docs.jquery.com/Tutorials Karl Rudd On 3/9/07, Jake McGraw [EMAIL PROTECTED] wrote: Not exactly, to add to Chris's comment, using: $(myele).each(function() { // do lots of stuff }); will scope the 'this' keyword to whatever you've selected using $('myele'). So, for example, if I had: with(document.getElementById(myele)) { // myele now part of scope chain, no variable needed style.backgroundColor = #000; } I could replace it using the following jQuery: $(#myele).each(function(){ // myele now referenced using this this.style.backgroundColor = #000; }); Keep in mind that $(selector).each() will work with all elements that have been found using a given selector (see http://docs.jquery.com/Core). Also, this is just my opinion, but using the with keyword is usually a bad idea, as it is difficult to optimize such code and it can cause surprising behavior when defining functions within such blocks. Instead, just assign the element to a variable, using jQuery or JavaScript, like: var myele = $(#myele); myele.css({backgroundColor:#000}); is equivalent to var myele = document.getElementById(myele); myele.style.backgroundColor = #000; - jake On 3/8/07, Chris Domigan [EMAIL PROTECTED] wrote: You can use .each(). $(#myId).each(function() { // do lots of stuff }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] One element, multiple actions
If it is just one element you can do: var myelem = $('#myelem')[0]; Because the jQuery wrapper acts like an array you can just grab the first element of the array, which is the raw DOM element. Another thing to keep in mind is jQuery's chainability. So while it's not so efficient to deal with just one object and do one thing to it, if you want to do multiple things to one object (or many objects) it becomes very efficient. For example: $('#myelem') .click( function(){ alert('blah'); } )// assign a click event handler .css( backgroundColor, #000 ); // change the background color It's not quite like using with, but it's pretty close. Karl rudd On 3/9/07, Rob Wilkerson [EMAIL PROTECTED] wrote: I knew about each(), but since I had only one element it seemed...I don't know...almost like overkill. I was hoping there would be something like: $('myele').do ( /** do stuff */ ); But, that having been said, I guess each() is effectively that. Maybe it's only the semantics of it that had me looking for a different way. Thanks for your help. On 3/8/07, Karl Rudd [EMAIL PROTECTED] wrote: Something to also keep in mind is that most of the jQuery functions have an implicit each included with them. A jQuery object is basically an array of objects, so the methods you run on the object are actually run on all the objects in the array. For instance, given the follow HTML: ul li1/li li2/li li3/li /ul The following script will change the background color of all the li elements: $('li').css({backgroundColor:#000}); It's like writing: var elems = document.getElementsByTagName(li); for ( var i = 0; i elems.length; i++ ) elems[i].style.backgroundColor = #000; This is where jQuery gets a lot of it's write less, do more power from. Perhaps you should take a look at some of the tutorials: http://docs.jquery.com/Tutorials Karl Rudd On 3/9/07, Jake McGraw [EMAIL PROTECTED] wrote: Not exactly, to add to Chris's comment, using: $(myele).each(function() { // do lots of stuff }); will scope the 'this' keyword to whatever you've selected using $('myele'). So, for example, if I had: with(document.getElementById(myele)) { // myele now part of scope chain, no variable needed style.backgroundColor = #000; } I could replace it using the following jQuery: $(#myele).each(function(){ // myele now referenced using this this.style.backgroundColor = #000; }); Keep in mind that $(selector).each() will work with all elements that have been found using a given selector (see http://docs.jquery.com/Core). Also, this is just my opinion, but using the with keyword is usually a bad idea, as it is difficult to optimize such code and it can cause surprising behavior when defining functions within such blocks. Instead, just assign the element to a variable, using jQuery or JavaScript, like: var myele = $(#myele); myele.css({backgroundColor:#000}); is equivalent to var myele = document.getElementById(myele); myele.style.backgroundColor = #000; - jake On 3/8/07, Chris Domigan [EMAIL PROTECTED] wrote: You can use .each(). $(#myId).each(function() { // do lots of stuff }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How do I hook up the Editable plug-in to a MySQL DB?
I don't see how to hook the Editable plug-in to *any* datasource right now. ??? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Validation help with Date Selector
Have you figured out how to style the error message, yet? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of blemming Sent: Thursday, March 08, 2007 7:40 PM To: discuss@jquery.com Subject: [jQuery] Validation help with Date Selector I have a form with multiple inputs. One of them using the dateselector plugin. On validation that field gets jumbled up because of the placement of the date icon. What I'm wondering is on just that one field can I set the error message to appear in an alternate location? i.e. - Can I add something to the meta data to tell that one field to post the error message in the #errdiv? input id=getdate name=getdate type=text class=reg_input {required:true} style=width:115px; div id=errdiv/div Thanks for your input. -- View this message in context: http://www.nabble.com/Validation-help-with-Date-Selector-tf3372676.html#a938 5290 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] One element, multiple actions
Ah, that's what I was looking for. I knew about jQuery's chainability, but being more familiar with the Java world, I'm not used to chaining completely unrelated actions. That's really cool. Thanks again. On 3/8/07, Karl Rudd [EMAIL PROTECTED] wrote: If it is just one element you can do: var myelem = $('#myelem')[0]; Because the jQuery wrapper acts like an array you can just grab the first element of the array, which is the raw DOM element. Another thing to keep in mind is jQuery's chainability. So while it's not so efficient to deal with just one object and do one thing to it, if you want to do multiple things to one object (or many objects) it becomes very efficient. For example: $('#myelem') .click( function(){ alert('blah'); } )// assign a click event handler .css( backgroundColor, #000 ); // change the background color It's not quite like using with, but it's pretty close. Karl rudd On 3/9/07, Rob Wilkerson [EMAIL PROTECTED] wrote: I knew about each(), but since I had only one element it seemed...I don't know...almost like overkill. I was hoping there would be something like: $('myele').do ( /** do stuff */ ); But, that having been said, I guess each() is effectively that. Maybe it's only the semantics of it that had me looking for a different way. Thanks for your help. On 3/8/07, Karl Rudd [EMAIL PROTECTED] wrote: Something to also keep in mind is that most of the jQuery functions have an implicit each included with them. A jQuery object is basically an array of objects, so the methods you run on the object are actually run on all the objects in the array. For instance, given the follow HTML: ul li1/li li2/li li3/li /ul The following script will change the background color of all the li elements: $('li').css({backgroundColor:#000}); It's like writing: var elems = document.getElementsByTagName(li); for ( var i = 0; i elems.length; i++ ) elems[i].style.backgroundColor = #000; This is where jQuery gets a lot of it's write less, do more power from. Perhaps you should take a look at some of the tutorials: http://docs.jquery.com/Tutorials Karl Rudd On 3/9/07, Jake McGraw [EMAIL PROTECTED] wrote: Not exactly, to add to Chris's comment, using: $(myele).each(function() { // do lots of stuff }); will scope the 'this' keyword to whatever you've selected using $('myele'). So, for example, if I had: with(document.getElementById(myele)) { // myele now part of scope chain, no variable needed style.backgroundColor = #000; } I could replace it using the following jQuery: $(#myele).each(function(){ // myele now referenced using this this.style.backgroundColor = #000; }); Keep in mind that $(selector).each() will work with all elements that have been found using a given selector (see http://docs.jquery.com/Core). Also, this is just my opinion, but using the with keyword is usually a bad idea, as it is difficult to optimize such code and it can cause surprising behavior when defining functions within such blocks. Instead, just assign the element to a variable, using jQuery or JavaScript, like: var myele = $(#myele); myele.css({backgroundColor:#000}); is equivalent to var myele = document.getElementById(myele); myele.style.backgroundColor = #000; - jake On 3/8/07, Chris Domigan [EMAIL PROTECTED] wrote: You can use .each(). $(#myId).each(function() { // do lots of stuff }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] NEWS: John Resig Discusses Future Proofing JavaScript Libraries
Good read. A bit further down in the blog he mentioned a push to add browser-level JSON parsing for speed and security. If you are going to Max2007 or cf.objective() perhaps you and Rob could bend Adobe's ear to implement a cfjson tag that emulates cfwddx, including cf2js where it would dump a JSON block in the page inside of an eval function. Hrm - that just gave me an idea! Rey Bango-2 wrote: Hi everyone, I just wanted to point you guys to John's recent perspective on leveraging popular JS libraries and their respective test suites to assist Mozilla in building more stable products. This has the added benefit of ensuring that library developers are able to adjust their code based on issues or features. Partial posting on Ajaxian here: http://ajaxian.com/archives/future-proofing-javascript-libraries John's full article here: http://ejohn.org/blog/future-proofing-javascript-libraries/ Also, for those that weren't aware, John frequently posts more generalized articles (ie: not specific to jQuery) on his personal blog which can be found here: http://ejohn.org/blog/ Definitely a good read. Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/NEWS%3A-John-Resig-Discusses-Future-Proofing-JavaScript-Libraries-tf3369434.html#a9386626 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Validation help with Date Selector
I sure hope so,. I've been working with Jorn's validation plug-in all week and the only two parts I've got let to figure out are the CSS of the messages and how to place the validation messages in an acceptable position. I'd love to be able to tell the plug-in to do what you're saying and be able to specify a receptacle for the messages, instead of having to place the messages in relation to an element. Sorry I can't help...but I'll be watching this thread *very* closely... Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of blemming Sent: Thursday, March 08, 2007 7:40 PM To: discuss@jquery.com Subject: [jQuery] Validation help with Date Selector I have a form with multiple inputs. One of them using the dateselector plugin. On validation that field gets jumbled up because of the placement of the date icon. What I'm wondering is on just that one field can I set the error message to appear in an alternate location? i.e. - Can I add something to the meta data to tell that one field to post the error message in the #errdiv? input id=getdate name=getdate type=text class=reg_input {required:true} style=width:115px; div id=errdiv/div Thanks for your input. -- View this message in context: http://www.nabble.com/Validation-help-with-Date-Selector-tf3372676.html#a938 5290 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Matt Krause - table plugins
Matt, are you reading this list? I am anxiously awaiting the jQuery port of your table filtering/sorting functionality. Is this coming soon? The demos on your site are very very fast and would fit perfectly into a project I'm about to start. -- View this message in context: http://www.nabble.com/Matt-Krause---table-plugins-tf3373162.html#a9386702 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Litebox now GPL/MIT licensed
Eexcellent. Karl Rudd On 3/9/07, Daniel MacDonald [EMAIL PROTECTED] wrote: Oops, sorry! I had copied the header from an old project. I am glad that some people actually pay attention to these things. jQuery Litebox is now GPL/MIT. Use and abuse. D ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Validation help with Date Selector
You can style it with the css class error I'm trying to move the location of it for one input. Rick Faircloth wrote: Have you figured out how to style the error message, yet? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of blemming Sent: Thursday, March 08, 2007 7:40 PM To: discuss@jquery.com Subject: [jQuery] Validation help with Date Selector I have a form with multiple inputs. One of them using the dateselector plugin. On validation that field gets jumbled up because of the placement of the date icon. What I'm wondering is on just that one field can I set the error message to appear in an alternate location? i.e. - Can I add something to the meta data to tell that one field to post the error message in the #errdiv? input id=getdate name=getdate type=text class=reg_input {required:true} style=width:115px; div id=errdiv/div Thanks for your input. -- View this message in context: http://www.nabble.com/Validation-help-with-Date-Selector-tf3372676.html#a938 5290 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Validation-help-with-Date-Selector-tf3372676.html#a9386622 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Matt Krause
-- View this message in context: http://www.nabble.com/Matt-Krause-tf3373126.html#a9386627 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/