[jQuery] Re: Livequery + jQuery.YAV

2007-10-25 Thread SeViR
jQuery.YAV get the rules added in the HTML attributes onSubmit so, if your form exists when the code starts, the validation must work (although you add dinamically, with AJAX, some new fields), but if you load later completally the form, you need call to $().yav() method. You don't need

[jQuery] Re: Declaring a new jquery variable

2007-10-25 Thread SeViR
The same that you create (with any scripting language based in ECMAscript) one variable. myvariable = hello; //now myvariable exists You can declare any variable in one object (a property), by example in your jQuery object: $.myvariable = hello; but it is possible that this can overwrite

[jQuery] IE bug with IFRAME?

2007-10-25 Thread MarcelloP
Hi all! I have a piece of code in wich I create, with jQuery, an IFRAME and setting the src attribute: $(form).append(diviframe id='fileManagerWindow' src='javascript:false;' frameborder='0'/iframe/div); $(#fileManagerWindow).attr(src,FileManager.htm); WIth Firefox all goes well, but with IE

[jQuery] Re: [ANNOUNCE] Jquery spot on crysis

2007-10-25 Thread Michael Stuhr
Anthony Leboeuf(Worcester Wide Web) schrieb: Hey was just looking at crysisdemo page and saw it used jquery http://crysisdemo.com/ -Tony maybe this is of interest for those looking for jquery use on pages: http://www.sunsean.com/jquerydetect/ micha

[jQuery] Re: bbcode editor

2007-10-25 Thread Bob den Otter
[EMAIL PROTECTED] wrote: Hi, Can anybody recommend a good BBCode editor for jQuery? Thanks, Yes, try jtageditor. http://www.jaysalvat.com/jquery/jtageditor/ Best, Bob.

[jQuery] Re: Filter doubles from selection

2007-10-25 Thread Wizzud
An alternative ... var tgt = $('select:not(.addFrom)'); $('#right').click(function(){ var x = $(tgt).children(); $('.addFrom option:selected').filter(function(){ // remove, by value, selected options already in target... return

[jQuery] Re: jquery plugin + problem with return for this element

2007-10-25 Thread Erik Beeson
Despite the fact that you code is a bit of a mess, your problem is just that since you aren't defining the variable callback with var callback = ..., it's being made a global variable, and as a global variable, each time you call $(...).test1(...), you're overwriting callback. Same for ttt. Adding

[jQuery] Re: ScrollTo

2007-10-25 Thread Josh V
what about horizontal scrolling panes. the following sites are perfect examples of what i am trying to recreate. www.panic.com/coda and http://www.hbcweb.com/ On Sep 19, 3:25 pm, John Resig [EMAIL PROTECTED] wrote: jQuery hasscrollTobuilt straight into core: $(html,body).animate({ scrollTop:

[jQuery] Re: Scrolling a div area without scrolling the page?

2007-10-25 Thread Josh V
guys, any horizontal scrolling? just like, www.panic.com/coda and http://www.hbcweb.com/ On Sep 11, 10:23 am, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Check jscrollpane, it has a very nice $('#anchorlink).scrollTo('#anchorTarget'); functionality

[jQuery] Re: 1px rounded corners issue

2007-10-25 Thread SterlingK
@ weepy - Thanks so much for posting that link. That answered some of my issues as well. We all appreciate it when people like you go the extra mile to help on this list!

[jQuery] Help: Jquery Interface Drag = Graphic Bug

2007-10-25 Thread charliend
Hello all, I'm working on Drag Drop with Interface and I have a graphic bug. When I click on a Draggable object I can make it move, but only the text which is contained move all the (Css-made) graphic disappear as soon as I make a movement with the mouse. Here is a little bit of code: In the

[jQuery] Assign a confirmation box when clicking inside of a bound event

2007-10-25 Thread paulp75
When i do a search it comes up with the results with this method $(function() { var options = { target:'#searchresults' // target element(s) to be updated with server response }; // bind form using 'ajaxForm' $('#form1').ajaxForm(options); after this call, i

[jQuery] Re: draggable clones are not draggable

2007-10-25 Thread erdibalint
Ok, it seems that the clone() function messes it up. I now use the following code and it works: function makeDraggable(expr) { /** * Makes the selection (by expr) draggable */ $(expr).draggable( { start: function() { // only clone if clone is not yet

[jQuery] Re: problem with jquery

2007-10-25 Thread mark
Thanks Rob. You were correct..its working fine now. On Oct 25, 12:55 am, Rob Desbois [EMAIL PROTECTED] wrote: Mark, I think you are saving the document as rich text format (RTF). Try pasting the code sample into notepad and save it from there. Once that works, make sure that in

[jQuery] Execute jcarousel in thickbox

2007-10-25 Thread PoZu
How can I use jcarousel inside a thickbox. I've seen it done the other way around. I've tried to do it and the thickbox does work but the jcarousel doesn't. Is there any way to make this work? Thanks

[jQuery] Re: Filter doubles from selection

2007-10-25 Thread Korijn
Thanks alot! That did the trick for me. =) Surprisingly I had to remove tgt from the last selector in order for it to work properly though. Which confuses me. But hey it works fine. Thanks! (So this $('option:selected', tgt).remove(); became $('option:selected').remove(); ) On 25 okt,

[jQuery] Re: problem with jquery

2007-10-25 Thread mark
thanks Karl On Oct 25, 3:27 am, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Mark, Make sure you return false so that the link doesn't trigger the default behavior (which is to go to the url): $(document).ready(function() { $(a).click(function() { alert(Hello world!);

[jQuery] Re: clueTip feedback and suggestions

2007-10-25 Thread chrisandy
Thanks for your feedback Karl - I'm learning something new every minute! I just have one more question (I hope!). I want to call my sticky 'pop up' without the title attribute but I then lose the ability to close my 'pop up' How do I still get to be able to close the pop up? Can I embed some

[jQuery] Re: jquery plugin + problem with return for this element

2007-10-25 Thread [EMAIL PROTECTED]
On 25 Paź, 11:12, Erik Beeson [EMAIL PROTECTED] wrote: Despite the fact that you code is a bit of a mess, your problem is just that since you aren't defining the variable callback with var callback = ..., it's being made a global variable, and as a global variable, each time you call

[jQuery] Re: Validation triggering based on radio button value

2007-10-25 Thread Web Specialist
Jorn's Form Validation could be this job with related option. Please look example page: http://jquery.bassistance.de/validate/demo-test/ and you could see relation between I'd like to receive... and Topics. Source code: topic: { required: #newsletter:checked, minLength: 2 }, Cheers Marco

[jQuery] Re: ScrollTo

2007-10-25 Thread djl
jCaroussel Lite is perfect for the Coda-style:- http://www.gmarwaha.com/jquery/jcarousellite/ On 25 Oct 2007, at 05:30, Josh V wrote: what about horizontal scrolling panes. the following sites are perfect examples of what i am trying to recreate. www.panic.com/coda and

[jQuery] Re: Help: Jquery Interface Drag = Graphic Bug

2007-10-25 Thread Richard D. Worth
I think this may be due to the fact that, while dragging, the element doesn't have the .gps class (and therefore the style that you've defined in css). Have you tried jQuery UI's draggables? http://ui.jquery.com/ http://docs.jquery.com/UI/Draggables - Richard On 10/25/07, charliend [EMAIL

[jQuery] Scrolling a textarea to the bottom each time it's updated

2007-10-25 Thread Eli
Hey, I'm in need for a function that will scroll my textarea to the bottom each time it's updated, how can I do that? Thanks, Eli

[jQuery] Re: clueTip feedback and suggestions

2007-10-25 Thread Karl Swedberg
Hi again, You shouldn't have to lose that ability just because you're not including a title attribute. By default, the closePosition option of a sticky tooltip is top, which means the top of the tooltip's body, not it's heading. You can also set it to bottom or title, but in your case,

[jQuery] Re: XHTML snippets in responseXML

2007-10-25 Thread Gordon
When I need to include HTML fragments in a XML file I tend to use the CDATA construct to wrap the HTML markup so it gets treated as plain text, then inject it into the DOM as yo uwould any string with HTML markup in it, using either the html (markup) or $(markup) approaches as appropriate. On

[jQuery] Re: Datepicker bug in latest Opera

2007-10-25 Thread Kelvin Luck
Hi Klaus, Thanks for the detailed report and fix! I've rolled this into the date picker and made a new release (2.1.1) with the fixed code: http://jquery.com/plugins/project/datePicker Thanks again, Kelvin :) Klaus Hartl wrote: Hi, I just came across a hard to find bug in Opera 9.23

[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread R. Rajesh Jeba Anbiah
On Oct 24, 9:28 pm, Eric Martin [EMAIL PROTECTED] wrote: I've been using jQuery for a couple months and recently had the need for a modal dialog. I tried other existing modal plugins, but decided to take a shot at creating my own plugin. SimpleModal is a lightweight jQuery plugin that

[jQuery] is it possible to call jqModal after the page has loaded?

2007-10-25 Thread vanwil
Hi. I would like to call jqm on an element's onclick event. It does not work. Why is that? Is it MANDATORY to make these calls inside the $().ready function? Is it impossible to do something like this $('#myDiv').jqm({ajax: '@href', trigger: 'a.ex2trigger'}); inside a button's onclick event?

[jQuery] Re: Filter doubles from selection

2007-10-25 Thread Wizzud
Umm Be very, very careful with that last modification, because if you select options in one or more of your addFrom selects without actually adding them to the target select, then select and remove something from the target select, you will probably find that the selected options in the

[jQuery] Re: Assign a confirmation box when clicking inside of a bound event

2007-10-25 Thread Wizzud
Use a confirm() if(confirm('text of question?')){ ... // do it }else{ ... // don't do it } On Oct 25, 7:40 am, paulp75 [EMAIL PROTECTED] wrote: When i do a search it comes up with the results with this method $(function() { var options = { target:'#searchresults'

[jQuery] Show/Hide divs depending on choice made in a select box

2007-10-25 Thread ioor
I have a select box with this structure: select name=taxonomy[3] class=form-select required id=edit- taxonomy-3 option value=4OPTION1/option option value=5.OPTION2/option option value=984.-OPTION3/option option value=983-OPTION4/option option value=35OPTION5/option option

[jQuery] fade png24 images in IE7

2007-10-25 Thread Melzmann
Hi there, at first I must to excuse for my bad english... I come from Germany. I have Problems with fading png24 images in IE7 with the methods fadeIn() and fadeOut(). The scopes where the image is transparency are black in IE7 during the fade process. Can you help me ? thank´s a lot! Melzmann

[jQuery] Re: Displaying Additional Information

2007-10-25 Thread Snooze
Thanks for all the help. I got it to work. I tried the $(this).next trick before but for some reason it didn't work (I had the hidden text in a separate td). Now it works how I want it except for one small problem. I decided to change the click to a hover so I now have:

[jQuery] Re: clueTip feedback and suggestions

2007-10-25 Thread chrisandy
Sorry Karl, I'm not explaining my self very well. I want the close link to appear in the body of the page that is called. The reason being that I don't want to have to set the width of the cluetip as I have pages of different width that I want to call. I don't want to see any background or band

[jQuery] Re: [bug] Slight jump of elements when using height() in FF

2007-10-25 Thread [EMAIL PROTECTED]
Hey, JK. Thanks for the response! I'm using the latest version of Dimensions/ jQuery on my site, and I'm having the same problem. I'd let you see the issue if I could, I'm developing on an internal dev server. It's the same problem as what's displayed on the above site, though. -Mist On Oct

[jQuery] Re: jQuery.ScrollTo

2007-10-25 Thread Flesler
Ok I checked the site now... First of all, you are adding both the minified version, and the regular version. Choose one and remove the other. I tried to debug but the minified one prevailed so I couldn't see. You are binding 3 times to the click of the same element ('#nextProperty') so all 3

[jQuery] Re: Checkbox hide/show

2007-10-25 Thread blg002
Thanks, That works fine, although the check not displaying is an annoyance and I haven't tried to figure that one out. After posting I found this and it works well for me $(document).ready(function(){ $('#content div').hide(); $(#showAll).click(function(){ if

[jQuery] Delaying the Hide Effect

2007-10-25 Thread Snooze
Hi, I have hidden text that appears whenever someone hovers over an image in my table. And I want it to disappear 5 seconds after they stop hovering over the image. Right now I have: $(document).ready(function(){ $('div.hidden').hide(); $('img.hidden').mouseover(function() {

[jQuery] Re: jQuery.ScrollTo

2007-10-25 Thread Flesler
Ok, but I need to see the call to the plugin, maybe your target selector doesn't match any element. Also, I added a new release, it doesn't rely on dimensions anymore and I hope it can stay that way. I advice you to upgrade. If you are using links(a) to manage the navigation, you could check

[jQuery] newbie php .get question

2007-10-25 Thread jsnewbie
Newbie here. Thanks for any help. Serving php 4.4.7 locally from Apache / mac 10.3.9 jQuery1.2.1 - php's running so I don't *think* it's an Apache/php issue. I'm trying to load dynamic variables from php but so far I get the whole script: $(document).ready(function(){

[jQuery] jCarousel - does this work with jQuery 1.2.1

2007-10-25 Thread Josh V
hi, does it? of course the a href=http://sorgalla.com/ jcarousel/jCarousel/a mentions nothing about which jQuery version it is compatible with.

[jQuery] Looking for code snippet to premark input fields

2007-10-25 Thread Samuel Vogel
Hey guys, I'm on the search for an small code snippet, that does change the value of an input field to lets say put username here and clears the field, as soon as the user clicks into the field and writes to it. Does somebody have this lieing arround? so long, Samy

[jQuery] Re: Looking for code snippet to premark input fields

2007-10-25 Thread Smith, Allex
Try this one... it works very well. http://scott.sauyet.com/Javascript/Demo/Overlabel/ -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel Vogel Sent: Thursday, October 25, 2007 6:35 AM To:

[jQuery] ie and firefox browser test

2007-10-25 Thread cfdvlpr
I want to test if the browser is ie or firefox and then set the width and height of a thickbox differently depending on this. Is this considered bad practice and if so how might you do it better?

[jQuery] Re: [bug] Slight jump of elements when using height() in FF

2007-10-25 Thread Jeffrey Kretz
Are you able to step through the code with Firebug? I'd be curious how dimensions handles the width() that is different from the way that the core 1.2.1 does. I'm not sure which features of dimensions you need for your project, but once offset() appeared in the core, I was able to make a few

[jQuery] pulling my hair out with validation plugin and radio/checkboxes

2007-10-25 Thread Priest, James (NIH/NIEHS) [C]
I'm using Jorn's validate plugin and have everything working great except for the 'required' error messages for radio and checkboxes. I've dug through the comments, API and examples but am stuck... What I want: o Item 1 o Item 2 Error message goes here... What I'm getting: o Error message

[jQuery] Multiple reply fields

2007-10-25 Thread Merlin
Hi there, I am trying to add a comment functionality to my webapp that includes a reply possibility on each comment. Like on digg for example. I am new to AJAX, but would like to take this oportunity and to jump into cold water with that task now. My goal is to use JQuery to show and hide a

[jQuery] Code in loop

2007-10-25 Thread [EMAIL PROTECTED]
Hi there friends!!! I'm having problems with a code here using AJAX on Jquery. When I do only one click in my object, it works fine, but, when I click again in other object the previous result of id continue stored. What I have to do to solve this problem??

[jQuery] Re: newbie php .get question

2007-10-25 Thread Michael Geary
That doesn't sound like something jQuery would have any control over. What do you get if you open print.php directly in a browser? From: jsnewbie Newbie here. Thanks for any help. Serving php 4.4.7 locally from Apache / mac 10.3.9 jQuery1.2.1 - php's running so I don't *think* it's an

[jQuery] Re: Code in loop

2007-10-25 Thread Glen Lipka
Can you post a simple page that demonstrates the problem? It's easier to debug that way. Glen On 10/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there friends!!! I'm having problems with a code here using AJAX on Jquery. When I do only one click in my object, it works fine, but,

[jQuery] Re: pulling my hair out with validation plugin and radio/checkboxes

2007-10-25 Thread Priest, James (NIH/NIEHS) [C]
-Original Message- From: Priest, James (NIH/NIEHS) [C] I'm using Jorn's validate plugin and have everything working great except for the 'required' error messages for radio and checkboxes. I've dug through the comments, API and examples but am stuck... Arg - nevermind!!

[jQuery] Re: fade png24 images in IE7

2007-10-25 Thread Glen Lipka
I have had the same problem. :( On 10/25/07, Melzmann [EMAIL PROTECTED] wrote: Hi there, at first I must to excuse for my bad english... I come from Germany. I have Problems with fading png24 images in IE7 with the methods fadeIn() and fadeOut(). The scopes where the image is transparency

[jQuery] Re: each loop selects to much

2007-10-25 Thread Glen Lipka
I whipped up a demo. http://www.commadot.com/jquery/nestedTables.php In the code comments is an each version that does the same thing. Glen On 10/25/07, hans [EMAIL PROTECTED] wrote: Hello, I am trying to loop through all rows of a table that has a table inside. I expected jquery to only

[jQuery] Re: ie and firefox browser test

2007-10-25 Thread cfdvlpr
Maybe this is best done with server side code such as this in Coldfusion? cfif CGI.HTTP_USER_AGENT contains 'msie' On Oct 25, 10:48 am, cfdvlpr [EMAIL PROTECTED] wrote: I want to test if the browser is ie or firefox and then set the width and height of a thickbox differently depending on

[jQuery] Re: pulling my hair out with validation plugin and radio/checkboxes

2007-10-25 Thread Tane Piper
Hey, don't worry I think we all do it from time to time, I know I have :) at least your not the kind that fires off an email, resolves it and then never replies to say you have, wasting someone elses time! On 25/10/2007, Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] wrote: -Original

[jQuery] Validating checkboxes

2007-10-25 Thread wattaka
Hi all, how does one validate that a user checks at least one checkbox from a group of checkboxes. I have seen the example on Jörns site, but the example has the same names for all checkboxes, I cant have the same name for all checkboxes due to the backend code. Thanks

[jQuery] Re: Validation triggering based on radio button value

2007-10-25 Thread wattaka
I´ll take a look , thanks Marco On Oct 25, 1:27 pm, Web Specialist [EMAIL PROTECTED] wrote: Jorn's Form Validation could be this job with related option. Please look example page: http://jquery.bassistance.de/validate/demo-test/ and you could see relation between I'd like to receive... and

[jQuery] Re: newbie php .get question

2007-10-25 Thread jsnewbie
I have to call it with an http call and full path 127.0.0.1/js/print.php then it works fine If I call it from a static link http://127.0.0.1/js/print.php it's fine. but from same directory print.php it doesn't If there's no basic mistake in the code I guessing it's my environment == nightmare.

[jQuery] Checkboxes and radios

2007-10-25 Thread Alessandro Feijó
I'm trying to control N checkboxes, when one is selected or unselected, I need to enable/disable a radio next to the checkbox something like this: ( ) [ ] (o) [x] the marked one, turn the radio clickable I start this code $('.form-checkbox').each( function() {

[jQuery] Re: Looking for code snippet to premark input fields

2007-10-25 Thread Samuel Vogel
Thanks, That is exactly what I was looking for ;) Regards, Samy 2007/10/25, Smith, Allex [EMAIL PROTECTED]: Try this one... it works very well. http://scott.sauyet.com/Javascript/Demo/Overlabel/ -Original Message- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On

[jQuery] Re: Code in loop

2007-10-25 Thread Jimmy Neph
This is the code: $(.delete).click(function(e){ var id = $(this).attr(id_delete) $(#confirm_box).css({left: e.pageX-453, top: e.pageY}) $(#confirm_box).fadeIn(300); $(#del_nao).click(function(){ $(#confirm_box).fadeOut(300);

[jQuery] Help with dynamically loading and running Javascript

2007-10-25 Thread [EMAIL PROTECTED]
Hi, I'm trying to add some HTML to a DIV (the HTML is contained in the var data) $(#+p_id).empty().append(div class=\itemWrapper\ + data + / div); but when that HTML contains Javascript, PC IE 7 gives me syntax errors after the above call, even when the JS contains none. Here is an example of

[jQuery] Cycle Plugin Pager Bug Fix

2007-10-25 Thread Marshall Salinger
Hi Mike, While experimenting with the pager functionality of the cycle plugin, I noticed that the first anchor wasn't getting the activeSlide class on initial load. I did some testing and fixed it by modifying the function to this: function buildPager(els, opts) { var $p =

[jQuery] jqModal and the ESC key?

2007-10-25 Thread will
Is there a way to get jqModal dialogs to hide when you hit the escape key? Thanks, Will

[jQuery] Re: Cycle Plugin Pager Bug Fix

2007-10-25 Thread Mike Alsup
Thanks Marshall! I'll be uploading a new release tonight and will include this fix. Cheers! Mike On 10/25/07, Marshall Salinger [EMAIL PROTECTED] wrote: Hi Mike, While experimenting with the pager functionality of the cycle plugin, I noticed that the first anchor wasn't getting the

[jQuery] Re: [NEWS:] Learning jQuery on Slashdot!

2007-10-25 Thread John Resig
Yeah, both of these posts are really excellent - quite exciting! --John On 10/24/07, polyrhythmic [EMAIL PROTECTED] wrote: Get ready for the onslaught... There's a quality (especially for /.) Learning jQuery book review on Slashdot.

[jQuery] Re: jqModal and the ESC key?

2007-10-25 Thread Tobias Parent
Don't see why not - all you have to do is, when the jqModal is displayed, bind the keypress and detect they keyCode for the esc key. Here's the code I'm using: document.onkeydown = function(e){ if (e == null) { // ie keycode = event.keyCode; } else { // mozilla keycode = e.which; }

[jQuery] Re: Validating checkboxes

2007-10-25 Thread Josh Nathanson
Can you put a class on the checkboxes? Then you can do: return $(input.myclass:checked).size(); -- Josh - Original Message - From: wattaka [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, October 25, 2007 12:34 PM Subject: [jQuery] Validating

[jQuery] Re: jqModal and the ESC key?

2007-10-25 Thread will
Toby, thanks! I thought perhaps it was built into jqModal but I suppose theres nothing like rolling your own. I couldn't get it to work on your site though. :| I'll give it a whirl locally. Thanks, Will On Oct 25, 1:36 pm, Tobias Parent [EMAIL PROTECTED] wrote: Don't see why not - all you

[jQuery] Best regex for this, getting software version numbers

2007-10-25 Thread Andy Matthews
I have these strings: Firefox 2.0.0.8 (Firefox 2.0) Internet Explorer 7.0 (Internet Explorer 7.0) Googlebot 2.1 (Googlebot 2.1) Yahoo! Slurp (Yahoo! Slurp) etc. I'd like to grab everything up to a second period (if it exists). What I want is in parens next to each string. Anyone have

[jQuery] Coming to jQuery from Prototype

2007-10-25 Thread Remy Sharp
Hi, I've recently posted a set of slides describing a process by process comparison between jQuery and Prototype to help developers move from one library to the other - and visa versa. I thought this would be helpful to developers so that's why I've posted here. The slides can be found here:

[jQuery] Re: Help: Jquery Interface Drag = Graphic Bug

2007-10-25 Thread charliend
No I haven't Thanks a lot for these very interesting links! I'm going to try it. On 25 oct, 13:52, Richard D. Worth [EMAIL PROTECTED] wrote: I think this may be due to the fact that, while dragging, the element doesn't have the .gps class (and therefore the style that you've defined in css).

[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread Eric Martin
On Oct 25, 8:05 am, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: Very nice. But, demo's responsive time is very low (click to modal appearance takes long time) Hmm...about how long of a response time are you seeing? There are effects during the opening of the dialog, but I'm assuming

[jQuery] Newbie question on hide objects

2007-10-25 Thread Merlin
Hello everybody, I am trying to add a comment functionality to my webapp that includes a reply possibility on each comment. Like on digg for example. I am new to AJAX, but would like to take this oportunity and to jump into cold water with that task now. My goal is to use JQuery to show and

[jQuery] Method addClass is not working with MS Internet Explorer (IE) 6

2007-10-25 Thread Mindjoy
I am using onclick event on input type=button to addClass, but there is no effect in IE 6, while it works fine in Mozilla and Opera browsers. I know that IE works fine with such CSS styles, since it works with my simple code without jQuery (document.getElementById('add-

[jQuery] Re: Best regex for this, getting software version numbers

2007-10-25 Thread Michael Geary
Andy, can you be more specific? I'm not certain from the description exactly what string you want to extract. If you could list examples of both the original strings and the expected result strings, that would help. Also include examples of the edge cases. (Second period? Where?) -Mike _

[jQuery] Re: Best regex for this, getting software version numbers

2007-10-25 Thread Andy Matthews
I came up with this: ([a-zA-Z0-9 !]+).?([a-zA-Z0-9]+) Is there a better way to do this? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, October 25, 2007 4:32 PM To: jquery-en@googlegroups.com Subject: [jQuery] Best regex for

[jQuery] Re: Best regex for this, getting software version numbers

2007-10-25 Thread Andy Matthews
Michael... The string I'd like to extract is in parentheses. But the parentheses (and their contents) are not in the original string. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Geary Sent: Thursday, October 25, 2007 4:39 PM To:

[jQuery] Re: Method addClass is not working with MS Internet Explorer (IE) 6

2007-10-25 Thread Dave Methvin
.addClass() doesn't replace any existing class, it just ... adds another class. So it seems like you would have two classes. Also, beware of the IE6 multi-class bug: http://www.ryanbrill.com/archives/multiple-classes-in-ie Investigation complete?

[jQuery] Re: Best regex for this, getting software version numbers

2007-10-25 Thread Michael Geary
Call me stupid. You did provide exactly the information I was asking for in my other message, I was just not paying close enough attention. D'oh! You could probably simplify the RE to this: ([^.]+).?[^.]+ -Mike _ From: Andy Matthews I came up with this: ([a-zA-Z0-9

[jQuery] Re: Method addClass is not working with MS Internet Explorer (IE) 6

2007-10-25 Thread Karl Swedberg
I'm guessing this is a weird css specificity issue for IE, but it's hard to tell without seeing your stylesheet. Also, you can use the DOM viewer with the IE developer toolbar to see if the class is actually being applied to the element (even if it might not appear to do so). That said,

[jQuery] drawing on mousemove - performance problem

2007-10-25 Thread powtac
Is there a way to reduce the cpu load when I do something like this (and move the pointer very fast on the screen): $(document).mousemove(function(e) { x = e.pageX; y = e.pageY; draw([x,y]); }); Something like, wait until the browser is ready ?

[jQuery] Re: Help with dynamically loading and running Javascript

2007-10-25 Thread Wizzud
Remove the HTML commenters from around the Javascript (the !-- and -- ). On Oct 25, 8:53 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm trying to add some HTML to a DIV (the HTML is contained in the var data) $(#+p_id).empty().append(div class=\itemWrapper\ + data + / div); but

[jQuery] Re: Checkboxes and radios

2007-10-25 Thread Wizzud
Need a bit more information! If you don't show us some HTML it's a bit difficult to second guess the relationship between checkbox and radio. On Oct 25, 8:34 pm, Alessandro Feijó [EMAIL PROTECTED] wrote: I'm trying to control N checkboxes, when one is selected or unselected, I need to

[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread bbuchs
I think he's referring to the queuing and duration of the fade effects. First the overlay fades in, the the modal fades in... start to finish it's more than a full second from the moment the trigger was clicked. Your fade durations are set to 'slow'. I haven't played with it yet, but from what I

[jQuery] Re: ie and firefox browser test

2007-10-25 Thread Wizzud
jQuery provides the following booleans jQuery.browser.msie or jQuery.browser.mozilla Is this considered bad practice and if so how might you do it better? That really depends on why you're doing it. If you want it to be different then go ahead. If you just can't get it to be the same

[jQuery] Re: jqModal and the ESC key?

2007-10-25 Thread will
document.onkeydown = function(e){ if (e == null) { // ie keycode = event.keyCode; } else { // mozilla keycode = e.which; } if(keycode == 27){ // escape, close box $(.jqmWindow).jqmHide(); } };

[jQuery] Re: Lookup doesn't work within HTML loaded with .load()

2007-10-25 Thread Danny Wachsstock
.load is asynchronous, which means that it returns (and the next statement is executed) before it finishes loading. So $(#left).load(test.html); starts loading #left with test.html but $(#left).css(border,1px solid red); executes within milliseconds, and test.html probably hasn't come

[jQuery] Re: each loop selects to much

2007-10-25 Thread Dave Methvin
$(#testtable tr).each(function(t){ That selector says to select any tr that is a descendant of #testtable. And it did! The tr in nested tables are descendants of the original table too, but they're not direct children. If you just want the tr elements in the outer table, try a selector like

[jQuery] Re: jqModal and the ESC key?

2007-10-25 Thread Michael Geary
document.onkeydown = function(e){ if (e == null) { // ie keycode = event.keyCode; } else { // mozilla keycode = e.which; } if(keycode == 27){ // escape, close box $(.jqmWindow).jqmHide(); } }; You may as well use jQuery for that. :-) $(document).keydown(

[jQuery] Re: Delaying the Hide Effect

2007-10-25 Thread Dave Methvin
On Oct 25, 10:21 am, Snooze [EMAIL PROTECTED] wrote: Hi, I have hidden text that appears whenever someone hovers over an image in my table. And I want it to disappear 5 seconds after they stop hovering over the image. Here's my untested attempt: $(document).ready(function(){

[jQuery] Re: Delaying the Hide Effect

2007-10-25 Thread Glen Lipka
There is a hoverIntent plugin that really helps with this sort of thing. Glen On 10/25/07, Dave Methvin [EMAIL PROTECTED] wrote: On Oct 25, 10:21 am, Snooze [EMAIL PROTECTED] wrote: Hi, I have hidden text that appears whenever someone hovers over an image in my table. And I want it to

[jQuery] Re: Delaying the Hide Effect

2007-10-25 Thread Dave Methvin
On Oct 25, 8:07 pm, Glen Lipka [EMAIL PROTECTED] wrote: There is a hoverIntent plugin that really helps with this sort of thing. That definitely looks schweet, Glen! I vaguely remember that plugin being announced but didn't need it at the time. It certainly looks like it could handle this

[jQuery] Google Analytics Tracking With jQuery

2007-10-25 Thread jason
I've been working on a jQuery plugin to simplify the process of adding Google Analytics tracking to a page. The bulk of the code came together pretty quickly, but I've run into a strange snag that's kept me from finishing it off. Here's what the plugin is intended to do: - Determine whether to

[jQuery] Re: Coming to jQuery from Prototype

2007-10-25 Thread Pops
Good slides, I like - but for whom? not sure. Now I have a better idea about prototype and comparible features, providing me some incentive to explore prototype. I love jQuery, but its QA, in particular consistent x-browser behavior is something to keeps bothering me. Anyway, the slides only

[jQuery] Re: Best regex for this, getting software version numbers

2007-10-25 Thread Andy Matthews
That's better than mine (or at least shorter). Thanks! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Geary Sent: Thursday, October 25, 2007 4:52 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best regex for this, getting software version

[jQuery] docs.jquery.com - display issues in Opera

2007-10-25 Thread RichUncleSkeleton
There are some display issues in the jQuery documentation with Opera. On http://docs.jquery.com/Selectors for example, below each heading there is a huge gap to the list of functions/selectors. From a quick glance at the HTML it seems there are many instances of paragraph and line break tags

[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread Pops
Nice, but it doesn't work under FireFox. Started IE and I was able to see the demo. Let me try Opera. Slow, but it worked. Good for your first plugin once you get the X-Browser issues resolved. :-) -- HLS On Oct 25, 5:14 pm, Eric Martin [EMAIL PROTECTED] wrote: On Oct 25, 8:05 am, R. Rajesh

[jQuery] Re: Google Analytics Tracking With jQuery

2007-10-25 Thread John Resig
Very cool! This seems quite useful. Do you have any examples it in action? --John On 10/25/07, jason [EMAIL PROTECTED] wrote: I've been working on a jQuery plugin to simplify the process of adding Google Analytics tracking to a page. The bulk of the code came together pretty quickly, but

[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread Pops
Ok, I checked into it and I have the FireFox NOSCRIPT plugin. Just too dangerous out there to willy nilly allow all sites use Javascript. So I turn it on on a site by site basis. NOSCRIPT puts alittle clickable icon in the status bar telling me which sites the current page is trying to reach for

  1   2   >