Re: [jQuery] jQuery Browser Detection

2007-03-06 Thread Karl Rudd
Ok this is untested but use conditional comments to hide the scripts from IE 5.5 and lower, but shown to IE 6+ and the rest of the browsers you'll need to use this somewhat messy approach. !--[if gte IE 6] ... scripts ... ![endif]-- !--[if !IE]-- ... scripts ... !--![endif]-- You need to include

Re: [jQuery] jQuery Browser Detection

2007-03-06 Thread Aaron Heimlich
On 3/6/07, Oliver Boermans [EMAIL PROTECTED] wrote: Is there a reasonably straight forward method I could employ to lock out IE5 out of jQuery altogether? jQuery(document).ready(function() { if( /MSIE [1-5]/.test(navigator.userAgent ) return; // rest of init code goes here; }); All of

Re: [jQuery] loading animation for imagebox

2007-03-06 Thread Torbjorn Tornkvist
Janet Weber wrote: Hi The loading animation for imagebox doesn't display properly. The animation has a white box behind the loading.gif animation and I would like to know how to change that white box to black or transparent? It is the container div that holds the loading.gif that has a

Re: [jQuery] jQuery Browser Detection

2007-03-06 Thread Klaus Hartl
Oliver Boermans schrieb: Clever and almost perfect. IE 6 is rendering -- visibly in the page. Thanks Klaus! On 06/03/07, Klaus Hartl [EMAIL PROTECTED] wrote: Why don't you make it the other way round? !--[if gte IE 6]-- script type=text/javascript src=jquery.js/script !--![endif]--

Re: [jQuery] What is the difference in functionality between bind() and click/blur/keyup/etc()?

2007-03-06 Thread agent2026
What's a situation where you want to use .bind then? (still new at this) Adam Karl Rudd wrote: The click, blur, keyup, etc functions are just shortcuts. So instead of: $(...).bind( 'click', function... you can write: $(...).click( function... Karl Rudd -- View this

Re: [jQuery] What is the difference in functionality between bind() and click/blur/keyup/etc()?

2007-03-06 Thread Karl Rudd
About the only reason is that the bind() function allows you to pass a block of data into the handler function. The shortcut functions only allow you to pass in a function. For more info take a look at: http://jquery.bassistance.de/api-browser/#bindStringObjectFunction Karl Rudd On 3/6/07,

Re: [jQuery] What is the difference in functionality between bind() and click/blur/keyup/etc()?

2007-03-06 Thread Klaus Hartl
agent2026 schrieb: What's a situation where you want to use .bind then? (still new at this) Adam Maybe avoiding ambiguity. load() is used to either bind an event or load content via XHR. Also, if you want to attach custom events, you'll have to use bind. $(elem).bind('triggerTab',

[jQuery] Form validator 0.2 - onblur instad of onsubmit

2007-03-06 Thread amircx
hey.. i got this code http://pastebin.ca/383367 now its validate on submit, i want to modify it to onblur... how do i do that? -- View this message in context: http://www.nabble.com/Form-validator-0.2---onblur-instad-of-onsubmit-tf3354347.html#a9328706 Sent from the JQuery mailing list archive

Re: [jQuery] What is the difference in functionality between bind() and click/blur/keyup/etc()?

2007-03-06 Thread agent2026
That's what I thought, and I had it in my head that it was actually phased out and have been solely using .bind(). Seems like the best practice anyway. Thanks everyone for your explanations. Adam Chris Domigan wrote: Also, I seem to remember (not sure though...) that there was some talk

Re: [jQuery] carousel example with dynamic content via ajax

2007-03-06 Thread Marshall Salinger
Hi there again. I am willing to help you but only posting a small bit of code from the plugin example is not going to help me see what you are doing wrong. You say you have verified the image paths, yet they don't show up? I would like to see *exactly* what you have in your txt file. It is highly

Re: [jQuery] My basic navigation plugin

2007-03-06 Thread Klaus Hartl
Joel Birch schrieb: I thought the switch 'smelled' less that an eval would :) . Hey, this could be a good place for Jörn to prove his point and suggest how this could be refactored to avoid the switch :D Some more about switch - I really think it's alright to use: Switch blocks should

[jQuery] treeview problem

2007-03-06 Thread Denis
Hi, here http://jquery.bassistance.de/treeview/ i found tree example, but it didn't work when I wrap this example with my DIV's, any ideas how to prevent it ? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Ajax - maintain the History

2007-03-06 Thread chango
Hi, it's possible maintain the History of Navigation using back/forward buttons?? I'm using Ajax to load Contents into a DIV: - function open_url(url, target) { document.getElementById(target).innerHTML = 'please wait'; $('#'+target).load(url); $('#'+target).fadeIn('fast'); }

Re: [jQuery] Ajax - maintain the History

2007-03-06 Thread Klaus Hartl
chango schrieb: Hi, it's possible maintain the History of Navigation using back/forward buttons?? I'm using Ajax to load Contents into a DIV: - function open_url(url, target) { document.getElementById(target).innerHTML = 'please wait'; $('#'+target).load(url);

Re: [jQuery] My basic navigation plugin

2007-03-06 Thread Joel Birch
On 06/03/2007, at 10:02 PM, Klaus Hartl wrote: with the if else statements, a test must be made for each if statement, whereas switch blocks generate vector jump tables at compile time so NO test is actually required in the underlying code! vector jump tables… nice. Thanks for the extra

Re: [jQuery] [*Possible SPAM*] Re: rewriting generic ajax jQuery style

2007-03-06 Thread Jim Wharton
certainly: ?xml version=1.0 encoding=utf-8?catagoriesitemitem_id659/item_iditem_name3 Gal Beverage Igloo Cooler/item_name/itemitemitem_id660/item_iditem_name5 Gal Beverage Igloo Cooler/item_name /itemitemitem_id661/item_iditem_name10 Gal Beverage Igloo Cooler/item_name/itemitem

[jQuery] context menu example

2007-03-06 Thread Denis
Can you please share working context menu example? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Need help implementing validation...

2007-03-06 Thread Rick Faircloth
Good morning, all. Can't get any reaction from the validation code. Here's my script and html. what's wrong with it? (I've included my show/hide script and my CalculateMortgage script in case there's a conflict) The Mortgage Calculation still runs fine, but when I submit the form without an

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Sam Collett
On 05/03/07, Jim Wharton [EMAIL PROTECTED] wrote: Hi, I'm trying to change a bunch of handwritten Ajax stuff to use jQuery's methods. (I figure, if I'm already including the jquery.js file, I may as well use the heck out of it.) My current code sends a request to a php page and gets back an

[jQuery] JQuery scope

2007-03-06 Thread Harlley Roberto
Guys, Does someone know why my function doesn't work ? How does work the scope on JQuery with ajax? The commented alert is working fine. function LerXML(ordem) { var diretorio; $.get(../modulos.xml, function(xmldataset){ diretorio= $(diretorio:eq( + ordem + ) ,

Re: [jQuery] loading animation for imagebox

2007-03-06 Thread Janet Weber
Hi Tobbe I tried that but could not add a transparent background color to the code. Ii came up with errors. And adding it in the css doesn't work either the program just ignores it, I think the developer should have thought that not all webpages use a white background. The way it displays

Re: [jQuery] confirm link

2007-03-06 Thread Sam Collett
On 05/03/07, James Thomas [EMAIL PROTECTED] wrote: Close ... try this: $(a).click(function(){return alertSave($(this).attr(href));}); function alertSave(url) { var dataControl = $('#changedAppointments').attr(value); if (dataControl.length 0) { if

[jQuery] Screencast: how to easily use AJAX to submit a form using jQuery

2007-03-06 Thread Remy Sharp
A screencast for beginners to jQuery and/or AJAX showing how easy it is to add an AJAX layer to submit a form. http://remysharp.com/2007/03/05/jquery-ajaxed-forms/ I wasn't sure whether just to add it to the tutorials wiki on jquery.com or not... -- View this message in context:

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Jake McGraw
Or, perhaps even more in line jQuery philosophy (try to reduce code as much as possible): $(function(){ $.get('getItems.php',{cat_id:idsource},function(xml){ $('#itemtable'+idsource).append('tabletheadtrthItems Available/th/tr/theadtbody/tbody/table');

[jQuery] dynamic put post data Jquery Forms plugin

2007-03-06 Thread amircx
hey i got this script: http://pastebin.ca/383636 what im trying to achive is that i got a form that user go to page and fill it, while its loading its generate him id in hidden field, and i need to pass the id in the hidden field to the next page... how can i do that? my demo isnt working

Re: [jQuery] loading animation for imagebox

2007-03-06 Thread Torbjorn Tornkvist
Janet Weber wrote: Hi Tobbe I tried that but could not add a transparent background color to the code. Ii came up with errors. And adding it in the css doesn't work either the program just ignores it, I made a quick hack:

Re: [jQuery] Screencast: how to easily use AJAX to submit a form using jQuery

2007-03-06 Thread Mike Alsup
On 3/6/07, Remy Sharp [EMAIL PROTECTED] wrote: A screencast for beginners to jQuery and/or AJAX showing how easy it is to add an AJAX layer to submit a form. Excellent job on that screencast, Remy! Since you end the cast with a note about putting the script into a plugin I would just like to

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Jim Wharton
that actually works quite well. I'll also need to parse the item_name from the xml. It may benifit me more to yank the parent element and then spit back out both childNodes... only thing is the second childNode item_name will have to be a link. I suppose I could add an href attribute using DOM

Re: [jQuery] JQuery scope

2007-03-06 Thread John Resig
$.get() isn't synchronous, the return will occur before the request has finished. You could give this a try, instead: function LerXML(ordem) { var diretorio; $.ajax({ type: GET, url: ../modulos.xml, async: false, success:

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Jake McGraw
Jim, split it up for readability, this uses the same function I had before. find() within the scope of the current jQuery object, which in our case $(this) = item.../item, so find() will look within this element for elements 'item_id' and 'item_name'. Hope this helps. $(function(){

[jQuery] Find nearest parent with an ID

2007-03-06 Thread jazzle
Hi all, I'm wanted to traverse up the DOM to find the nearest/closest ((+great)grand)parent which has an ID. For example table id=table1 tr td id=td1 div span a class=meh ... ... so from $(.meh) I want to find td1 I thought I could use $(.meh).parents(@[id]).attr(id) but

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Jim Wharton
Ok, here's another question I've got this code working: $(document).ready(function() { $('#resultcontainer').accordion(); $(dt).click(function(){ idsource = $(this).attr(id);

Re: [jQuery] confirm link

2007-03-06 Thread James Thomas
That's true - I didn't change it because I thought there could be some cases where alertSave() could be called outside of the 'a' thing - if that's not the case, then this version is definitely better. You could go so far as to eliminate the variable as well and just do: if

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Rick Faircloth
Anyone got any clues? Anyone at all? Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Tuesday, March 06, 2007 9:42 AM To: 'jQuery Discussion.' Subject: [jQuery] Need help implementing validation... Good morning, all… Can’t get any reaction from the

Re: [jQuery] Form validator 0.2 - onblur instad of onsubmit

2007-03-06 Thread Leonardo K
Try this: $(#form1).validate({ event: blur, submitHandler: function(form) { $(form).ajaxSubmit(options); } }); On 3/6/07, amircx [EMAIL PROTECTED] wrote: hey.. i got this code http://pastebin.ca/383367 now its validate on submit, i want to modify it to onblur...

Re: [jQuery] Auto Vertical Scroller newsBlock div

2007-03-06 Thread Danny Wachsstock
I made a news scroller a while back; you can see it at http://youngisrael-stl.org/updates.php at the upper right. It smoothly scrolls any element (I use H3 and LI, but you can specify), stops on mouseover and adds buttons to scroll back up or further down, and a button to expand the whole list.

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Josh Nathanson
Rick, That's a lot of code for folks to look at. Are you using Firebug for Firefox? That is very helpful in diagnosing these types of problems. -- Josh - Original Message - From: Rick Faircloth [EMAIL PROTECTED] To: 'jQuery Discussion.' discuss@jquery.com Sent: Tuesday, March 06,

[jQuery] Testing... testing... ignore

2007-03-06 Thread Rick Faircloth
Testing. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] finding an image by src attribute

2007-03-06 Thread Paul
This is probably easy, but it's my first attempt so I'm not sure where to begin. I have a series of images which all have the class ico. Within that collection of images I need to find any with src set to ico-fail.png. How can I efficiently search through the images to determine if any have

Re: [jQuery] compare between display and visibility when hide an element?

2007-03-06 Thread Klaus Hartl
Microtoby schrieb: Hello, Guys, I’m using jQuery for a while, and like jQuery much more, But I have a question begin start using this library, YUI and some other library using visibility to hide an element, jQuery using the display css property. Any one can tell me what the

Re: [jQuery] compare between display and visibility when hide anelement?

2007-03-06 Thread Michael Geary
Nothing to do with SEO. The display and visibility properties do two different things: http://www.w3.org/TR/CSS21/visuren.html#display-prop http://www.w3.org/TR/CSS21/visufx.html#visibility -Mike _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Microtoby Sent:

Re: [jQuery] finding an image by src attribute

2007-03-06 Thread Josh Nathanson
$([EMAIL PROTECTED]) Should return the elements you seek. -- Josh - Original Message - From: Paul To: 'jQuery Discussion.' Sent: Tuesday, March 06, 2007 10:34 AM Subject: [jQuery] finding an image by src attribute This is probably easy, but it's my first attempt so I'm

Re: [jQuery] Auto Vertical Scroller newsBlock div

2007-03-06 Thread {js}sTyler
Thanks for both suggestions so far. They are both great examples, but maybe not quite right. It's interesting how the http://youngisrael-stl.org/updates.php example pops to it's own window when clicking the window button, and the scrolling arrow nav's. The arrow nav is great, but I don't think

[jQuery] ie submiting ajax forum in thick box

2007-03-06 Thread Desmond Hymers
Currently I have a login form being displayed in a thickbox(v 2.1), the actual form submission is handeled by the form plugin, from malsup.com(v 0.9). In Firefox when a user enters there username/password the form submits how it should, and data is returned. In IE the form submits and goes to

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Jake McGraw
Jim, you can use the siblings() exactly as you put in your code, the only thing you should watch out for is siblings() will return a group of jQuery objects, which in your case doesn't matter as item_id only has a single sibling, item_name. When you chain text() to a group of jQuery objects, only

Re: [jQuery] Auto Vertical Scroller newsBlock div

2007-03-06 Thread Jonathan Sharp
Howdy, Jumping in late here. I reworked the jdNewsScroller about a month ago and haven't posted the changes yet! So see if this helps any: http://jdsharp.us/code/jQuery/plugins/jdNewsScroll/1.1/ Cheers, -Jonathan On 3/6/07, {js}sTyler [EMAIL PROTECTED] wrote: Thanks for both suggestions so

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Jim Wharton
thank you immensely for all your help. I'll start rewriting the accordion code in a day or so. -Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jake McGraw Sent: Tuesday, March 06, 2007 3:30 PM To: jQuery Discussion. Subject: Re: [jQuery] rewriting

Re: [jQuery] finding an image by src attribute

2007-03-06 Thread Paul
Thanks, Josh, that's essentially what I'd been trying, but it wasn't working. Turns out the function was executing before the validation script finished its work, so the src attribute had not been updated before the second function fired. I'm still trying to sort that out. Anyway, thanks for

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-06 Thread Jake McGraw
No problem, welcome to jquery. - jake On 3/6/07, Jim Wharton [EMAIL PROTECTED] wrote: thank you immensely for all your help. I'll start rewriting the accordion code in a day or so. -Jim -Original Message- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of *Jake McGraw

Re: [jQuery] context menu example

2007-03-06 Thread Joel Birch
On 07/03/2007, at 1:52 AM, Denis wrote: Can you please share working context menu example? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Hi Denis, I am thinking you may be meaning my Page Contents Menu plugin (rather than

Re: [jQuery] loading animation for imagebox

2007-03-06 Thread Janet Weber
Hi Tobbe Thank you very much. It works okay. Janet Torbjorn Tornkvist wrote: Janet Weber wrote: Hi Tobbe I tried that but could not add a transparent background color to the code. Ii came up with errors. And adding it in the css doesn't work either the program just ignores it,

[jQuery] release: Validation plugin beta 1

2007-03-06 Thread Jörn Zaefferer
Hi folks, just released beta 1 of my validation plugin. The list of problem was reduced quite a lot, and currently I have no more outstanding feature requests. Most notable new features: - dependency checking: The required method accepts both jQuery-expressions and functions to compute

Re: [jQuery] context menu example

2007-03-06 Thread denis
Thanks for explanation! This what I need too ;-). But I really need context menu(I hope I write it correct), I mean menu which we see on right mouse click. On google docs page(copy/paste/etc ..) On 07/03/2007, at 1:52 AM, Denis wrote: Can you please share working context menu example?

Re: [jQuery] context menu example

2007-03-06 Thread Joel Birch
On 07/03/2007, at 8:02 AM, Joel Birch wrote: On 07/03/2007, at 1:52 AM, Denis wrote: Can you please share working context menu example? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Hi Denis, I am thinking you may be

[jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Yoav Shapira
Hi, I have a simple link in my HTML page that I want to track when users click on. I thought this would be pretty simple, like so: a href=destinationUrl onClick=$.get('trackingUrl'); return true;Destination/a When I run the above code, I get no errors, but trackingUrl doesn't get hit. There's

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Rick Faircloth
Thanks for responding, Josh. I know it's a lot of code, but I figured the problem might be related to the other code. How about this part, does it look correct? I haven't been using Firebug, but I'll check into it, too. Rick script type=text/javascript $.validator.defaults.debug = true;

[jQuery] ajax GET test.js

2007-03-06 Thread narven
HI, Im really new to jquery. but I think im in love :P LOL I've been trying to use this to load up a js file. but.. it doesn't work :-|.. can anyone give me hit?? :P $.ajax({ type: GET, url: test.js, dataType: script }) thanks ___ jQuery

Re: [jQuery] ajax GET test.js

2007-03-06 Thread Jake McGraw
Have you tried $.getScript(test.js)? http://docs.jquery.com/Ajax#.24.getScript.28_url.2C_callback_.29 - jake On 3/6/07, narven [EMAIL PROTECTED] wrote: HI, Im really new to jquery… but I think im in love :P LOL I've been trying to use this to load up a js file… but.. it doesn't work

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Jörn Zaefferer
Rick Faircloth schrieb: Thanks for responding, Josh. I know it's a lot of code, but I figured the problem might be related to the other code. How about this part, does it look correct? I haven't been using Firebug, but I'll check into it, too. Hey Rick, I've just released beta 1 of the

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Josh Nathanson
Rick, it looks ok but I have not used the validation plugin, so I have no idea what is the correct usage. I *very strongly suggest* getting Firebug for Firefox. You will save hours of pulling out your hair, such as you are right now! It's a simple extension for Firefox that debugs your

Re: [jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Jake McGraw
Have you tried something like: $(function(){ $(a).click(function(){ $.get(trackingURL); return true; }); }); I haven't tried modifying onClick, etc, I normally just put all the directives in a script block. - jake On 3/6/07, Yoav Shapira [EMAIL

Re: [jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Yoav Shapira
Hi, On 3/6/07, Jake McGraw [EMAIL PROTECTED] wrote: Have you tried something like: $(function(){ $(a).click(function(){ $.get(trackingURL); return true; }); }); I haven't tried that, but I will. It will be a little annoying because there

Re: [jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Jake McGraw
Then you could use this: $(function(){ $(a).click(function(){ $.get($(this).attr(title)); return true; }); }); and have your anchors look like this: a href=whateverURL title=trackingURLText here/a Function passed to click() scope this to the

Re: [jQuery] Find nearest parent with an ID

2007-03-06 Thread Chris Domigan
This might work: $(.meh).parents([EMAIL PROTECTED]:first); Although I think you're better to give the td a class rather than rely on it having an id attribute. Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Yoav Shapira
Hi, On 3/6/07, Jake McGraw [EMAIL PROTECTED] wrote: Then you could use this: $(function(){ $(a).click(function(){ $.get($(this).attr(title)); return true; }); }); and have your anchors look like this: a href=whateverURL

Re: [jQuery] ajax GET test.js

2007-03-06 Thread narven
Thanks a lot :) _ De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Jake McGraw Enviada: terça-feira, 6 de Março de 2007 22:28 Para: jQuery Discussion. Assunto: Re: [jQuery] ajax GET test.js Have you tried $.getScript(test.js)?

[jQuery] Tooltips and Google Maps

2007-03-06 Thread underdesign.co.uk
Hi list, I hope someone can help me with this. I'm attempting to use the hovertips plugin to display Google Maps but am having trouble getting the map to display. The test page I'm working on can be seen here: http://teamo.underdesign.co.uk/vis2.html Basically, the Google Map appears but it is

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Rick Faircloth
Hey Jorn... Where do I get the beta 1? I see the download for Validation plugin 1.0, Alpha 2. Is there a different download location for beta 1? Thanks, Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Tuesday, March 06, 2007

Re: [jQuery] treeview problem

2007-03-06 Thread Jörn Zaefferer
Denis schrieb: Hi, here http://jquery.bassistance.de/treeview/ i found tree example, but it didn't work when I wrap this example with my DIV's, any ideas how to prevent it ? A few more details would help to help you. -- Jörn Zaefferer http://bassistance.de

[jQuery] compare between display and visibility when hide an element?

2007-03-06 Thread Microtoby
Hello, Guys, I'm using jQuery for a while, and like jQuery much more, But I have a question begin start using this library, YUI and some other library using visibility to hide an element, jQuery using the display css property. Any one can tell me what the difference between display and

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Rick Faircloth
Hey, Jorn (and Josh)... I think the beta 1 will be the answer. When I tried my current coding in Firefox it worked! However, no response in IE 7. Is the link to beta 1 the one under Files: Download Validation plugin 1.0 Alpha 2? Doesn't seem like the correct label for beta 1, but I couldn't

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Rick Faircloth
Well... I did manage to find the beta 1 plugin. However, now it doesn't work in FF and still doesn't work in IE 7... ??? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Tuesday, March 06, 2007 8:33 PM To: 'jQuery Discussion.'

[jQuery] select all images under a div, and change their widths proportionally?

2007-03-06 Thread Alp Guneysel
hi, i'm new to jquery, and everyday i love it more. i have a question, couldn't figure out by myself. what i want to do is, select all images under blogreviews div, and if they are wider than 250px in width, make them all 250px. this did not work: $('//[EMAIL PROTECTED]blogreviews]

Re: [jQuery] select all images under a div, and change their widths proportionally?

2007-03-06 Thread Chris Domigan
Try: $(#blogreviews img).css(width,250px); Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] select all images under a div, and change their widths proportionally?

2007-03-06 Thread Alp Guneysel
wow, that was stupid of me... thanks. On 3/7/07, Chris Domigan [EMAIL PROTECTED] wrote: Try: $(#blogreviews img).css(width,250px); Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] select all images under a div, and change their widths proportionally?

2007-03-06 Thread Karl Swedberg
what if the images are narrow than 250px? Should they keep their original width, or should they be changed to 250px as well? If you only want to adjust the width of the images that are wider than 250px, you could do this: $('#blogreviews img').each(function(index) { if ($(this).width()

Re: [jQuery] Need help implementing validation...

2007-03-06 Thread Rick Faircloth
Strange thing is that your demo's are working in IE 7 and FF, too. But neither for me. It must be my code... Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Tuesday, March 06, 2007 8:52 PM To: 'jQuery Discussion.' Subject:

Re: [jQuery] Screencast: how to easily use AJAX to submit a form using jQuery

2007-03-06 Thread John Resig
Remy - I've already added it to the wiki - great work! --John On 3/6/07, Remy Sharp [EMAIL PROTECTED] wrote: A screencast for beginners to jQuery and/or AJAX showing how easy it is to add an AJAX layer to submit a form. http://remysharp.com/2007/03/05/jquery-ajaxed-forms/ I wasn't sure

Re: [jQuery] JQuery scope

2007-03-06 Thread Harlley Roberto
Great tip man. Thank you so much! On 3/6/07, John Resig [EMAIL PROTECTED] wrote: $.get() isn't synchronous, the return will occur before the request has finished. You could give this a try, instead: function LerXML(ordem) { var diretorio; $.ajax({ type: GET,

[jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)

2007-03-06 Thread R. Rajesh Jeba Anbiah
On Mar 7, 2:27 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: snip I've also update the demos:http://jquery.bassistance.de/validate/demo-test/ I'm getting mad when I couldn't set breakpoint in Firebug so that I can get to the function that is been called on clicking the submit button. I have

Re: [jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Klaus Hartl
Yoav Shapira schrieb: Hi, On 3/6/07, Jake McGraw [EMAIL PROTECTED] wrote: Then you could use this: $(function(){ $(a).click(function(){ $.get($(this).attr(title)); return true; }); }); and have your anchors look like this: a

Re: [jQuery] jQuery Browser Detection

2007-03-06 Thread Oliver Boermans
Thanks Klaus and Aaron, Unfortunately in the site I am working on the JavaScript is broken up into a number of files so I would need to make extensive changes to prevent jQuery being called in IE5.x. Instead I've made changes to ensure there are no problems regardless of whether the scripts work

Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)

2007-03-06 Thread Aaron Heimlich
On 3/7/07, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: Do you know in what line number I have to set the Firebug breakpoint so that I'll get there when clicking the submit button? TIA Set a breakpoint on line 228 of jquery.validate.js. -- Aaron Heimlich Web Developer [EMAIL PROTECTED]