[jQuery] Re: Question about event.StopPropagation()

2007-08-18 Thread Richard D. Worth
Here's a tip for using firebug to debug your issue: try console.log( event.target) instead of alert(). When debugging events (especially focus), an alert pop-up can interfere a lot. Besides, console.log will give you all sorts of details that alert() won't give you. Try console.log(event) even, the

[jQuery] Re: [PLUGIN] Templater

2007-08-18 Thread Yehuda Katz
I've modified the plugin slightly. http://www.w3.org/TR/html4/loose.dtd";> Templating jQuery(function ($) { $("a.updateTemplate").click(function() { $(this.rel).loadTemplate(this.href); return false; }); $("._t

[jQuery] Re: Round button... ?!

2007-08-18 Thread [EMAIL PROTECTED]
try this... http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html On Aug 17, 5:20 pm, Tobias Parent <[EMAIL PROTECTED]> wrote: > Hey, all - > > I'm trying to create an UNOBTRUSIVE JAVASCRIPT routine to replace links > in a navigation menu with button graphics. All good,

[jQuery] Re: stop animation

2007-08-18 Thread Ganeshji Marwaha
John, i now completely get what u mean... This is actually not stopping animation ;-). :-( we will wait for jquery 1.2 in the meantime... Thanks for letting us know. -GTG On 8/18/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote: > > Ok, there is no way i can oppose that. You are an authority in w

[jQuery] Re: Avoiding invalid markup

2007-08-18 Thread Kyle
Code should read: $(this).hide().parent().prepend("");

[jQuery] Re: ASP.NET IDs

2007-08-18 Thread Josh Bush
The easiest way around the asp.net control id rewriting is something like this: var $myControl=$("#<%=MyControl.ClientID%>"); When that page is generated, the server will substitute in the real ID of the control it has generated. On Aug 18, 3:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote

[jQuery] Avoiding invalid markup

2007-08-18 Thread Kyle
$(this).hide().parent().prepend(""); This, obviously, is in the head tag. However, when I run it through the validator, it is returning an error: document type does not allow element "img" here . The element named above was found in a context where it is not allowed. This could mean that you ha

[jQuery] Re: .blur() not doing it's job

2007-08-18 Thread Angelo Gladding
Thanks Brandon that fixed it for the temporary. I had a feeling it was something like that from the docs. On 8/18/07, Brandon Aaron <[EMAIL PROTECTED]> wrote: > > I believe this is fixed in SVN (Revision 2529). > > While you are waiting for 1.1.4, you can do it this way: > $('#tags_clear')[0].blur

[jQuery] Re: .blur() not doing it's job

2007-08-18 Thread Brandon Aaron
I believe this is fixed in SVN (Revision 2529). While you are waiting for 1.1.4, you can do it this way: $('#tags_clear')[0].blur(); -- Brandon Aaron On 8/18/07, John Resig <[EMAIL PROTECTED]> wrote: > > > Nope, that should work - do you have a page with this code on it? > > --John > > On 8/18/0

[jQuery] Re: .blur() not doing it's job

2007-08-18 Thread John Resig
Nope, that should work - do you have a page with this code on it? --John On 8/18/07, Angelo Gladding <[EMAIL PROTECTED]> wrote: > Hey all, I'm trying to blur (remove focus from) a link. > > Non-working code: > $('#tags_clear').blur(); > > Working code: > document.getElementById('tags_clear').blu

[jQuery] .blur() not doing it's job

2007-08-18 Thread Angelo Gladding
Hey all, I'm trying to blur (remove focus from) a link. Non-working code: $('#tags_clear').blur(); Working code: document.getElementById('tags_clear').blur(); Is there something glaringly obvious I'm missing here? Thanks, Angelo -- Angelo Gladding [EMAIL PROTECTED] http://angelogladding.com (

[jQuery] Re: [PLUGIN] Templater

2007-08-18 Thread Sean Catchpole
Pretty cool Yehuda, I'll have to give it a shot so I can give ya some feedback. ~Sean

[jQuery] AJAX and jQuery-Partail Data retrieval

2007-08-18 Thread Outlines
Hey everyone, I have successfully integrated jquery(AJAX) into an mmorpg website, i am facing one problem that i cannot understand. Whenever in chat/message boards, i use a filter file to create image smilies, and filter words. Now when i dont include this file, everything works ok, but whenever

[jQuery] ASP.NET IDs

2007-08-18 Thread [EMAIL PROTECTED]
I have two small questions, if anybody can help: 1. This was recently published concerning .NET: "if you have an element that has runat="server" attribute you cannot call it directly as #loginForm because asp.net rewrites the id to something different just doa view source on your aspx page and

[jQuery] [jqModal] - r11 release, improvements.

2007-08-18 Thread Brice Burgess
Ladies and Gentleman, A few hundred bytes were added to the jqModal plugin to aid those struggling with z-Index container stacking issues. Namely; there's now a shortcut** to overcome "the overlay covers everything, including the dialog!" issues. Other improvements include a fault-tolerant focu

[jQuery] Proper use of the hoverIntent plug-in?

2007-08-18 Thread Spencer
I'm trying to use the hoverIntent plugin with jQuery, but I don't fully understand how it works and was hoping someone could help me out with a few issues I'm having. The page I'm working on is at http://schollsferryauto.com , the two buttons in the upper right corner of the page which are "Hours

[jQuery] File upload plugin available?

2007-08-18 Thread Steve Finkelstein
Hi all, I'm looking for an elegant and visual appealing file upload plugin. I don't need any stunning effects, just something appealing to the eye, and can allow a user to upload an image or directory on their local system. Can anyone recommend such a utility with jquery? Thank you all! - sf

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-18 Thread Kyle
I just wanted to comment on something that seemed really out of place, though the openness of the community has already been addressed. "People who are unwilling to become comfortable with the language they're working in (e.g., by using its available features, such as anonymous functions) shouldn

[jQuery] .load path problems

2007-08-18 Thread shakerman
Hi folks This is the basic loadContent function function loadContent() { $("#myContent").load("mypage.php"); } This works fine if I'm in the root of my website: domain.com/page.php however I have several rewritten urls (mod rewrite) on the site with paths such as: domain.com/folder1/page.php

[jQuery] Plugin for uploading multiple files/directories?

2007-08-18 Thread Steve Finkelstein
Hi all, I'm looking to allow a user to upload mutliple files or even better, an entire directory worth of files. Adding a progress bar for the batch or single file upload would be ideal. What's my best bet for doing this? Thanks. - sf

[jQuery] [jqModal] - r11 release, improvements.

2007-08-18 Thread Brice Burgess
Ladies and Gentleman, A few hundred bytes were added to the jqModal plugin to aid those struggling with z-Index container stacking issues. Namely; there's now a shortcut** to overcome "the overlay covers everything, including the dialog!" issues. Other improvements include a fault-tolerant focu

[jQuery] scrollable html table plugin

2007-08-18 Thread David
I have a question: scrollable html table are now vertical(scrollbar); Can be horizontal (scrollbar)?

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread John Resig
Feel free to file a bug on it in the tracker, as an enhancement: http://dev.jquery.com/ --John On 8/18/07, Pops <[EMAIL PROTECTED]> wrote: > > > > On Aug 18, 7:28 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > > > http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29 > > > > .. > > >

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread Pops
On Aug 18, 7:28 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29 > > .. > > In that usage, the params object is indeed an object/map. > > The "problem" with that example is that it uses an HTML file as the > target, whereas (as ment

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Pops
On Aug 18, 7:19 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > On Aug 19, 12:55 am, Pops <[EMAIL PROTECTED]> wrote: >> What was you sending? > i wasn't sending anything - h, ok, but that should keep with GET if you are not passing parameters.? No? > Apache can be configured to allow/disal

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Pops
On Aug 18, 7:17 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > Right, that's because you're not supposed to pass in a string, you > pass in an options block. If you pass in a string it splits the string > up by character, which is not what you want. Ok. I just tried it. console.log($.param({k1:

[jQuery] Re: [PLUGIN] Templater

2007-08-18 Thread Matt Stith
Sweet, i needed something like this about a week ago, ended up writing my own :-/ Cool anyways! nice job! On 8/18/07, Yehuda Katz <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I have just committed a new plugin to the trunk. It's a simple templater > that allows you to create "templates" that get

[jQuery] Re: How to check multiple checkboxes checked at a time

2007-08-18 Thread Pops
On Aug 18, 4:28 pm, Potluri <[EMAIL PROTECTED]> wrote: > Is there a way to check like $("#id1,#id2,#id3").attr("checked"); should > return true if all of them is checked. I believe another possible idiom would be: fResult = #('[EMAIL PROTECTED]@[EMAIL PROTECTED]:checked').length == 3; > and

[jQuery] [PLUGIN] Templater

2007-08-18 Thread Yehuda Katz
Hi guys, I have just committed a new plugin to the trunk. It's a simple templater that allows you to create "templates" that get populated via JSON objects. Some examples: var tmp = $.makeTemplate("My name is {{foo}} and your name is {{bar}}"); tmp({foo: "Yehuda", bar: "jQuery"}) #=> "My name is

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread Stephan Beal
On Aug 19, 1:21 am, Stephan Beal <[EMAIL PROTECTED]> wrote: > Um... err... ??? i may be wrong on what the param object should be, > but my understanding is that it's an Object/map of key/val pairs. > > Maybe someone out there can correct or confirm that? >From the example on the docs page: http:

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread Stephan Beal
On Aug 19, 1:16 am, Pops <[EMAIL PROTECTED]> wrote: > Stephan, > > You're pulling my leg? Not as far as i know, but... > Firebug shows this when I enter the following in the console: > > console.log($.param("{k1='v1', k2='v2'}")); > > 0=%7B&1=k&2=1&3=%3D&4='&5=v&6=1&7='&8=%2C&9=%20&10=k&11=2&1

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread John Resig
You don't put the object in as a string - you put it in as an object: console.log($.param({k1:'v1', k2:'v2'})); which outputs: "k1=v1&k2=v2" --John On 8/18/07, Pops <[EMAIL PROTECTED]> wrote: > > Stephan, > > You're pulling my leg? > > Firebug shows this when I enter the following in the conso

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Stephan Beal
On Aug 19, 12:55 am, Pops <[EMAIL PROTECTED]> wrote: > What was you sending? i wasn't sending anything - i just wanted to load the contents of an HTML snippet file (not a complete/well-formed HTML document) into a DIV. > We write our own web server and as such we conform to HTTP RFC > standards,

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread John Resig
Right, that's because you're not supposed to pass in a string, you pass in an options block. If you pass in a string it splits the string up by character, which is not what you want. --John On 8/18/07, Pops <[EMAIL PROTECTED]> wrote: > > > > On Aug 18, 7:01 pm, "John Resig" <[EMAIL PROTECTED]> w

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread Pops
Stephan, You're pulling my leg? Firebug shows this when I enter the following in the console: console.log($.param("{k1='v1', k2='v2'}")); 0=%7B&1=k&2=1&3=%3D&4='&5=v&6=1&7='&8=%2C&9=%20&10=k&11=2&12= %3D&13='&14=v&15=2&16='&17=%7D This is called in params = jQuery.param(params) in th

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Pops
On Aug 18, 7:01 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > Yes, a POST will be performed instead. I updated the docs to represent > this:http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29 John, I'm sure you read my recent new post regarding the DOC nit. You need to add, corr

[jQuery] Re: stop animation

2007-08-18 Thread Ganeshji Marwaha
Ok, there is no way i can oppose that. You are an authority in what u r talking about and i comletely agree with u. I also understand exactly what u mean when u say that... That said, the interesting part is, in the case of my lavalamp plugin http://www.gmarwaha.com/jquery/lavalamp/test/test.html

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread John Resig
Yes, a POST will be performed instead. I updated the docs to represent this: http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29 --John On 8/18/07, angelogladding <[EMAIL PROTECTED]> wrote: > > > When I attempt to load into a ul (#tags) jQuery seems to be sending a `POST` > request

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Pops
On Aug 18, 6:15 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > One of the negative side-effects is, however, that POST is not > configured consistently across servers. For example, i had the example > same problem as the OP... i was trying to load() an HTML file and it > worked on my local syste

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread Stephan Beal
On Aug 19, 12:39 am, Stephan Beal <[EMAIL PROTECTED]> wrote: > $(...).load('url', {k1='v1', k2:'v2'}); s/k1=/k1:/, of course.

[jQuery] Re: Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread Stephan Beal
On Aug 19, 12:31 am, Pops <[EMAIL PROTECTED]> wrote: > In the docs for .load, it has: > > params (Object): (optional) A set of key/value pairs that will be sent > as data to the server. > > That is not what I am seeing, the following > > $('#containerId').load("url","k1=v1&k2=v2"); Hi, Pops

[jQuery] Documentation Nit: .load - Incorrect Info regarding how data is sent

2007-08-18 Thread Pops
In the docs for .load, it has: params (Object): (optional) A set of key/value pairs that will be sent as data to the server. That is not what I am seeing, the following $('#containerId').load("url","k1=v1&k2=v2"); The jQuery.js code at lin 1671: params = jQuery.param( params );

[jQuery] Re: [OT] A Good Cause: AIR (Accessibility Internet Rally)

2007-08-18 Thread Kenneth
It's actually not my group, I'm just a participant, but I'll forward that information on.however, I can't see them changing the name from AIR since they've been using it for 10 years already. On 8/17/07, Andy Matthews <[EMAIL PROTECTED]> wrote: > > You should consider a new acronym for your

[jQuery] Re: Find URLs in text?

2007-08-18 Thread Stephan Beal
On Aug 18, 9:50 pm, "Rod Begbie" <[EMAIL PROTECTED]> wrote: > Quick question to attempt to avoid reinventing the wheel. > > Is anyone aware of a Javascript library (JQuery or otherwise) which > will find URLs in a chunk of text and either turn them into links, or > make it easy for me to do so mys

[jQuery] Re: Simulate foucs on any div, really get Firebug and use it

2007-08-18 Thread Stephan Beal
On Aug 18, 9:43 pm, Mitch <[EMAIL PROTECTED]> wrote: > In fact this demo has a little bit of every thing in it. That's what impressed me. It really is a full-fledged app (or appears to be - i couldn't figure out how to get it to do anything, so i assume it's a prototype or mock-up). You did a hel

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread westamastaflash
Looks like a lot of what I've done was done before with jQuery Timers - so take a look at that as well. On Aug 18, 9:40 am, westamastaflash <[EMAIL PROTECTED]> wrote: > Sorry about not replying sooner, I was offline after I posted last > night. > > Pops: > About passing parameters: > I tried to

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Stephan Beal
On Aug 19, 12:10 am, Pops <[EMAIL PROTECTED]> wrote: > The default is GET, however, if you pass the 2nd parameter as URL data > and not a function, then jQuery assumes a POST is desired. Studying > this seems odd. I can take a swag at the reasons: > >- As a "poor's man" security consideratio

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Pops
The default is GET, however, if you pass the 2nd parameter as URL data and not a function, then jQuery assumes a POST is desired. Studying this seems odd. I can take a swag at the reasons: - As a "poor's man" security consideration against ajax injections. and - If you are sending JSON d

[jQuery] Re: hide some divs, show one

2007-08-18 Thread [EMAIL PROTECTED]
I´ve used something like this $(document).ready(function(){ $("#Fecha").click(function(){ $("#DivProduto").removeClass("DivImgVisible").addClass("DivImgNotVisible"); }); $("#carrega").click(function(){

[jQuery] Re: Simulate foucs on any div, really get Firebug and use it

2007-08-18 Thread Aaron Heimlich
On 8/18/07, Mitch <[EMAIL PROTECTED]> wrote: > > I am pretty sure I can get the outdiv to float in the center of the page, > I just > have to remember how to do it. > I believe this is what you're looking for: body { position: relative; margin-left: auto; margin-right: auto; width

[jQuery] Re: Totally new to this...

2007-08-18 Thread Shaft
I'm gonna try it tomorrow morning - Just to verify: I suppose you understood by now that I'm trying to simulate a desk with "stuff" that you can move around and have a close look at... polyrhythmic wrote: > > > Ohhh, I see, the slideDown effect doesn't work after scrolling... > I think the

[jQuery] Re: stop animation

2007-08-18 Thread John Resig
That code doesn't work - it doesn't stop any animations, it only clears the animation queue (stopping any future queued animations). You can't build a true stop animation without modifying jQuery core. Here's a page that demonstrates that code that's going into jQuery 1.2: http://dev.jquery.com/~

[jQuery] Re: fadeTo fades up in Safari and FF, down in IE

2007-08-18 Thread John Resig
I dunno, but using no jQuery at all, your alpha filter doesn't appear to be set up properly: http://dev.jquery.com/~john/ticket/fadeTo/ --John On 8/17/07, Aaron Scott <[EMAIL PROTECTED]> wrote: > > I have an element with this style associated with it: > > filter:alpha(opacity=0); >

[jQuery] Re: $.load() POSTing instead of GETing

2007-08-18 Thread Joan Piedra
Untested, but should work. $.ajax({ type: "POST", url: "/data/tags", data: "format=xhtml", success: function(data){ $('#tags').html(data); } }); On 8/18/07, angelogladding <[EMAIL PROTECTED]> wrote: > > > > When I attempt to load into a ul (#tags) jQuery seems to be sending a > `PO

[jQuery] Re: stop animation

2007-08-18 Thread Joan Piedra
Ganeshji, Maybe it's on plan to make it happen for 1.2, but It isn't in trunk just yet. Hope to see your plugin soon. On 8/18/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote: > > yehuda, i dont see it in the trunk... am i missing something... > > -GTG > > > On 8/18/07, Yehuda Katz <[EMAIL PROTECT

[jQuery] Re: stop animation

2007-08-18 Thread Ganeshji Marwaha
yehuda, i dont see it in the trunk... am i missing something... -GTG On 8/18/07, Yehuda Katz <[EMAIL PROTECTED]> wrote: > > stop() is going to be in jQuery 1.2, and I believe it is already in trunk. > > -- Yehuda > > On 8/18/07, Joan Piedra < [EMAIL PROTECTED]> wrote: > > > > Omg,is this in the

[jQuery] Re: How to check multiple checkboxes checked at a time

2007-08-18 Thread Yehuda Katz
$.fn.all = function(selector) { return foo.filter(":checked").length == foo.length; }); Kudos to John for that one ;) -- Yehuda On 8/18/07, Joan Piedra <[EMAIL PROTECTED]> wrote: > > $('a.toggleCheckbox').click(function(){ > $(':checkbox').each(function(){ > if(this.checked) { >

[jQuery] Re: store checkbox id's in array object.

2007-08-18 Thread George
I don't know about finishing in 0.0 secs but there is an attrs() method in the moreSelectors plugin that returns an array of attribute values from all matched elements. Eg: $("input:checkbox:checked").attrs("id") will return an array [id1,id2,id3 etc] It can also accept a second parameter if you

[jQuery] Re: How to check multiple checkboxes checked at a time

2007-08-18 Thread Joan Piedra
$('a.toggleCheckbox').click(function(){ $(':checkbox').each(function(){ if(this.checked) { this.checked = false; } else { this.checked = true; } }); return false; }); This should do the trick. On 8/18/07, Potluri <[EMAIL PROTECTED]> wro

[jQuery] Re: store checkbox id's in array object.

2007-08-18 Thread Klaus Hartl
Potluri wrote: Hi, I'm using this method to store id's of checked checkboxes in array object like $("[EMAIL PROTECTED]'checkbox']:checked").each( function() { arrayName.push(this.id); } ); it works but above way takes .656 secs for storing in array object with 50 checkboxes. Is there a 1 lin

[jQuery] Re: How to check multiple checkboxes checked at a time

2007-08-18 Thread George
I dare say someone can offer a better solution for your first request: To know whether all checkboxes are checked. I'd probably try !$ ("#id1,#id2,#id3").is(":not(:checked)") which returns true if all are unchecked (Note the ! at the beginning). Your second request is easy: To know whether at lea

[jQuery] $.load() POSTing instead of GETing

2007-08-18 Thread angelogladding
When I attempt to load into a ul (#tags) jQuery seems to be sending a `POST` request. Both my backend framework and Firebug seem to agree. Nowhere in the documentation does it specifically state whether it sends a GET or POST. Can anyone clarify? My code follows: $('#tags').load('/data/tags', {

[jQuery] Re: stop animation

2007-08-18 Thread Yehuda Katz
stop() is going to be in jQuery 1.2, and I believe it is already in trunk. -- Yehuda On 8/18/07, Joan Piedra <[EMAIL PROTECTED]> wrote: > > Omg,is this in the jquery-core?! O_o > If it is then I won't need to use interface iutil and ifx anymore, yay! > > > On 8/17/07, Cybolic < [EMAIL > PROTECTE

[jQuery] Re: stop animation

2007-08-18 Thread Ganeshji Marwaha
yup, and as mentioned in the prev posts, this will be packaged into a small utility plugin co-authored by myself and Christian Dannie. You can expect a packaged plugin by monday ;-) -GTG On 8/18/07, Joan Piedra <[EMAIL PROTECTED]> wrote: > > Omg,is this in the jquery-core?! O_o > If it is then I

[jQuery] Re: stop animation

2007-08-18 Thread Joan Piedra
Omg,is this in the jquery-core?! O_o If it is then I won't need to use interface iutil and ifx anymore, yay! On 8/17/07, Cybolic <[EMAIL PROTECTED]> wrote: > > > You can start and stop an animation like so: > > // start > $('#animationElement').animate({width: 50}, slow); > > // stop > $.dequeue(

[jQuery] How to check multiple checkboxes checked at a time

2007-08-18 Thread Potluri
Hi, Is there a way to check a multiple check boxes checked at a time like. Is there a way to check like $("#id1,#id2,#id3").attr("checked"); should return true if all of them is checked. and also is there a way to return true if atleast one of them is checked like $("#id1||#id2||#id3").

[jQuery] store checkbox id's in array object.

2007-08-18 Thread Potluri
Hi, I'm using this method to store id's of checked checkboxes in array object like $("[EMAIL PROTECTED]'checkbox']:checked").each( function() { arrayName.push(this.id); } ); it works but above way takes .656 secs for storing in array object with 50 checkboxes. Is there a 1 line way to store id

[jQuery] Re: problem with selector in IE

2007-08-18 Thread Potluri
Thanks a lot it works for me. I realized that IE is not recognizing child selectors. Cybolic wrote: > > > IE has problems with selectors on dynamic elements (elements created > in script), but can handle classes just fine, so if you can change > your code to hunt classes instead, that should

[jQuery] Re: Totally new to this...

2007-08-18 Thread polyrhythmic
Ohhh, I see, the slideDown effect doesn't work after scrolling... I think the position property may somehow get reset during the animations? Unfortunately we're now getting in over my head as the animation code is quite complex. I'd love to know the reason, any insight from jQuery fx code hacker

[jQuery] Re: Totally new to this...

2007-08-18 Thread polyrhythmic
No need to start a new thread, if your questions are about the same page/topic. The animated slide effect works for me in Firefox 2.0.0.6 (latest stable ver), as well as Opera 9.02. It looks like the stay-on-top will work, but you have conflicting bindings, and I think we need to add a zIndex in

[jQuery] Re: Dynamic Form Validation?

2007-08-18 Thread SeViR
ValidationAide, that I think, is in the same direction of Validation plugin or jQuery.YAV. Reading the examples, I can see some good things and some bad things (for me): * Simple class validation, this is good, I only have to set a class. In this sense, Validation and jQuery.YAV have the sa

[jQuery] Templating in attr and css?

2007-08-18 Thread Yehuda Katz
Hey guys, So I've been lobbying for syntax along the following lines: $(...).attr("foo", "{{width() > 40 ? 'bar' : 'baz'}}") or $(...).attr("target", "{{rel}}") which would basically expand to: $(...).attr("foo", function() { return this.width() > 40 ? "bar" : "baz"; }); and $(...).attr("targ

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-18 Thread Pops
+1 One thing about jQuery, atleast for me so far, it has brought back similar APL like mental translations requirements. In APL, essentially a math language of scalar, vectors and matrixes, forces or promotes you to envision all the data in your mind, thinking and soping out all your transformati

[jQuery] Find URLs in text?

2007-08-18 Thread Rod Begbie
Quick question to attempt to avoid reinventing the wheel. Is anyone aware of a Javascript library (JQuery or otherwise) which will find URLs in a chunk of text and either turn them into links, or make it easy for me to do so myself? (Something like Perl's URI::Find module, or the urlizer formatt

[jQuery] Re: Simulate foucs on any div, really get Firebug and use it

2007-08-18 Thread Mitch
Right on browthanks for your review, I love the word excellent. There is not much better, except maybe awesome. As far as being way to the right, I was trying to be clever and make the window float in the middle of the page by putting everything inside a table. That was before I really under

[jQuery] Re: fadeTo fades up in Safari and FF, down in IE

2007-08-18 Thread polyrhythmic
> > $(object).css("opacity", 0.7).fadeIn(400); > > Ha! That did the trick. Thanks. > > Aaron @Aaron: Does this accomplish your original goal, fading TO 70%, in all browsers? The code reads to me that it will fade from 70% to 100%. I have had so much trouble with the fadeTo working crossbrowser

[jQuery] Re: Creating DOM elements on the fly

2007-08-18 Thread duma
Thanks!! Yes, indentation helps make this readable ;-) AnuragMishra wrote: > > > Thanks for the sample plugin code Sean, > > This looks like a really neat plugin, I'll have to take care of the > indentation though. Can get very messy at 3 levels if not written > well. > > Anurag > --

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-18 Thread polyrhythmic
> IMO, part of good software craftmanship and being productive is being > able to recognized code in brain speed. One might called say the art > of "jQuery Theory" dissemination of information applies here. I agree! Also, something yet unaddressed in this thread is callbacks. I really enjoy the

[jQuery] Re: Simulate foucs on any div, really get Firebug and use it

2007-08-18 Thread Stephan Beal
On Aug 18, 7:13 pm, Mitch <[EMAIL PROTECTED]> wrote: > I finally figured out what was wrong with my attempt to get > stopPropation to work so I could simulate focus on any div, not just > an input element. This is the link to the demo and below is how it > works (the foucs and unfocus part). > > h

[jQuery] Re: anyone knows a jQuery based slideshow plugin like this?

2007-08-18 Thread Mitch
With the paging feature you will need more then one line of code. Cycle has exactly what you want. Its called the Pager. I am going to use that myself, its so simple. http://www.malsup.com/jquery/cycle/int2.html Mitch

[jQuery] Re: Rolling region plugin?

2007-08-18 Thread Ganeshji Marwaha
i guess u r looking for jCarouselLite - http://gmarwaha.com/jquery/jcarousellite/ -GTG On 8/18/07, howa <[EMAIL PROTECTED]> wrote: > > > Anyone know there is such as plugin, e.g. > > > desc... > > > >

[jQuery] Rolling region plugin?

2007-08-18 Thread howa
Anyone know there is such as plugin, e.g.

[jQuery] Re: stop animation

2007-08-18 Thread Ganeshji Marwaha
Cool, That seems to look like an extension of my jkwick source. Was jkwick the starting point? :-) Anyways, i guess u r facing the same problem as i am at this point. Initially i had it similar to yours, but the problem is the individual items bump left and right especially when we are hovering on

[jQuery] Re: anyone knows a jQuery based slideshow plugin like this?

2007-08-18 Thread Mitch
Interface Elments is very cool but I think its overkill. Its not that easy to use. jCarouselLite seems just the oppostie, too simple and not enough features. What you want to do doesnt need a plugin, its really easy in jQuery using show and hide or animate. I do which there was a carousel that

[jQuery] Simulate foucs on any div, really get Firebug and use it

2007-08-18 Thread Mitch
I finally figured out what was wrong with my attempt to get stopPropation to work so I could simulate focus on any div, not just an input element. This is the link to the demo and below is how it works (the foucs and unfocus part). http://www.whatbird.com/wwwroot/Components/Complete_Search_Tab.ht

[jQuery] Re: Totally new to this...

2007-08-18 Thread Shaft
WOW! Thanx! You actually got me hooked up bigtime - the visual JQuery is very helpful BUT.. I still have major problems on click/drag/drop Layers - it's as if the z-index returns to default... There are strange things happening there. Go here: http://www.qbox.gr/test_asxeto/jq_test/dragJq2.html

[jQuery] Re: stop animation

2007-08-18 Thread Cybolic
I've just added an example of how to stop an animation to the jQuery documention's Effect page. No longer will people have to scour jQuery source code to find the answer :P On Aug 18, 12:03 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > Hey Christian, > > This is either a huge co-incidence

[jQuery] Re: stop animation

2007-08-18 Thread Cybolic
Funny how things work sometimes... Sorry for not sending that message sooner, I just stumbled on yours while searching to see if anyone had done a kwick plugin. I'd be glad to be added as co-author, though you found the answer on your own, so you really don't have to, but again, I'd be glad :)

[jQuery] Re: problem with selector in IE

2007-08-18 Thread Cybolic
IE has problems with selectors on dynamic elements (elements created in script), but can handle classes just fine, so if you can change your code to hunt classes instead, that should work. ...or use Geneshjii's advice and see if you can't speed that up instead. Having class="srRow" on every tr a

[jQuery] Re: How to show Updating container

2007-08-18 Thread Potluri
Thanks a lot Ganesh, It works for me. I've beenworking a lot on this. Regards, Vijay Potluri Ganeshji Marwaha wrote: > > try something like this... > > $("#some_table_name").click(function() { >$("#rs_loading").show(function() { > someFuncTORefine(); > $("#rs_loading").hide();

[jQuery] Re: problem with selector in IE

2007-08-18 Thread Potluri
I Ganesh, The way you are suggesting to loop through is not the optimal way for tables with 500 rows but the way I'm trying to loop through results is faster and efficient even though it seems to be complicated. Do you have any idea how to make this work. Thanks. Ganeshji Marwaha wrote: > > i

[jQuery] Re: hide some divs, show one

2007-08-18 Thread [EMAIL PROTECTED]
thanks ! On Aug 17, 6:45 pm, Justin Sepulveda <[EMAIL PROTECTED]> wrote: > What you're looking for sounds a lot like tab functionality. I think > you could pull it off using Klaus's tab plugin. > > http://www.stilbuero.de/2007/05/14/tabs-plugin-more-flexibility/ > > On Aug 17, 1:21 pm, "[EMAIL P

[jQuery] Re: problem looping through table rows in IE

2007-08-18 Thread Potluri
Thats really surprising, the same code doesn't work for me but works for you. No I dont have IE in quirks mode. Does that make a difference?. Do you know any other way to make this work. Thanks. Olaf wrote: > > > Potluri schrieb: > >> Can you please help me out in how to make it work in IE. I

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread westamastaflash
Sorry about not replying sooner, I was offline after I posted last night. Pops: About passing parameters: I tried to follow the example in the jQuery docs of using jQuery.extend to handle optional parameters to functions - I think it's like using named notation for parameters in PL/SQL - i.e. foo

[jQuery] Re: Nice jQuery writeup

2007-08-18 Thread DaveG
IMO this should be prominently on the Jq site. This article explains the jQ way so well, it's invaluable. ~ ~ Dave Priest, James (NIH/NIEHS) [C] wrote: I didn't write this but saw it on Reddit while browsing at lunch: http://simonwillison.net/2007/Aug/15/jquery/ Jim

[jQuery] Re: To Obstruse or not Obstruse - Elements of jQuery

2007-08-18 Thread Pops
I fiqured this out: > $('') > .appendTo('#myFormId', 10) > .click(function() { > // do something > }); > The .appendTo overload (Erik's plugin) which is designed to clone the html does not return an array, hence chaining the .click handler does not apply.

[jQuery] Re: Optimization Help

2007-08-18 Thread Pops
How about just: $('[EMAIL PROTECTED]').click(function() { if (this.id == "categoryid0") { $('[EMAIL PROTECTED]').attr("checked",""); this.checked = true; } else { $('input#categoryid0').attr("checked",""); } }); Basically, by the time the click handler is caledl, the G

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread Pops
On Aug 18, 5:59 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > I am sure westamastaflash will reply to ur query, but in the meantime, since > i am still awake (3 PM here), i thought i will do a good deed before i goto > bed. > > try $.periodic(callback, {frequency: 5}); > > You were using q

[jQuery] Re: request for comments - a periodic execution plugin/function for jQuery

2007-08-18 Thread Pops
> I'm trying to find a solution to a bug in firefox (but NOT internet > explorer) where the parallel execution of the callback function is not > shielded by the code (prototype's PeriodicExecuter has the same > problem - their example code *does not work* in firefox (firebug & web > developer plug

[jQuery] Re: Jquery can show Images from file:///C:?

2007-08-18 Thread Mario Moura
Hi Andy I really wish but I am not JQuery Ninja, yet. ; ) Mario 2007/8/17, Andy Matthews <[EMAIL PROTECTED]>: > > Yeah...would be nice if someone took something like that and converted it > to a plugin. Mario? YOu up for it? > > :) > > -- > *From:* jquery-en@goog

  1   2   >