[jQuery] Re: Wildcard selector AND pass the selector to a sub-function?

2008-12-13 Thread Daniel L
CSS 3 selectors seem to be my solution: $('inp...@id^="foo"]...@id$="bar"]').change(function(){ alert(this.id); } This will be attached to all input fields that have an ID starting with 'foo' and ending with 'bar' (e.g. 'foo123bar', 'foobar', 'foo456bar'). Then within the function I can

[jQuery] Re: Retrieve webmethod from webservice

2008-12-13 Thread Sara
I already had saw some posts which are in your search url result and my code includes ones but I found a post in that search which help me and solved my problem Thanks a lot On Dec 12, 5:12 pm, MorningZ wrote: > I'm not sure where you got your code examples from, but there's lots > of blog pos

[jQuery] Re: Problems selecting elements...

2008-12-13 Thread Karl Swedberg
On Dec 13, 2008, at 3:19 AM, SLR wrote: I ended up fixing the issue myself. For those that want to know, it was type-casting issue. I change the following line: var pageIndex = $("body").attr("id");// Pulls ID value from body tag pageIndex = pageIndex.substring(4); to var pageIn

[jQuery] Re: Konqueror problems?

2008-12-13 Thread Karl Swedberg
On Dec 12, 2008, at 5:20 PM, John Moore wrote: Thanks, I hadn't spotted that. I can live with it, as the number of Konqueror users is (unfortunately) very small and they're likely going to be used to having certain pages not work for them. I'd just prefer my stuff to work with all modern bro

[jQuery] Re: Wildcard selector AND pass the selector to a sub-function?

2008-12-13 Thread Dan Switzer
The easiest way to do this would be to give each div a specific class: Now you could just do: $("div.foo").change(); I like this method, since usually this divs have related visuals, so you may already have a constant class defined for the elements. An alternative would be to do something

[jQuery] Re: BlockUI unchecks checkboxes

2008-12-13 Thread Mike Alsup
> Ah, thanks for clarifying, Steve.  I'll get that fixed. It's fixed now. http://www.malsup.com/jquery/block/#download

[jQuery] Re: Odd issues passing JSON to server

2008-12-13 Thread talent
maybe you should show us your JSON code On Dec 13, 5:27 pm, Shawn Grover wrote: > I'm not sure if I have a server side issue or a client side issue.  The > problem is that I am generating a JSON string in my plugin, and passing > it to a php page (though the back end shouldn't matter in the long

[jQuery] [VALIDATION] Fields not updating numberOfInvalids count

2008-12-13 Thread Jet
Hi, It's kind of difficult for me to explain for English is not my native language. I'll explain it briefly and refer you to the actual page. If the 'Rule' for a field has a "Required" attribute and with or without any other attributes, then it works fine. But when a field has any other 'Rules

[jQuery] Wildcard selector AND pass the selector to a sub-function?

2008-12-13 Thread Daniel L
Hi, I have a situation where the same javascript is repeated about 50 times - just with a differnt ID. Example: $('#mydiv1').change(function() { doStuff('#mydiv1'); }); $('#mydiv2').change(function() { doStuff('#mydiv2'); }); ... $('#mydiv50').change(function() { doStuff('#mydiv50'); });

[jQuery] Re: validation plugin question

2008-12-13 Thread Sean Allen
I copied it straight from the demo with just a couple minor changes... going to remove the code that I don't need once I work this out... $(document).ready(function(){ $.validator.messages.required = ""; $("#lf").bind("invalid-form.validate", function(e, validator) {

[jQuery] Re: passing args to a delegate

2008-12-13 Thread Jeffrey Kretz
Mike's suggestion involves creating a javascript "closure". There are a number of good articles on closues. http://www.google.com/search?hl=en&q=javascript+closures&rlz=1W1GGLL_en But essentially, when you create a function that has a reference to a value outside of its scope, that function is

[jQuery] Re: passing args to a delegate

2008-12-13 Thread Jan Limpens
while this might keep the browser from crashing, I wonder what values these parameters will have, when the event finally occurs. The ones I have passed the very first time? I thought they would have been destroyed by then, as we left this scope long ago ... But I'll try it out :), thanks! On Sat,

[jQuery] Re: Add a class to an accordion

2008-12-13 Thread paul
I made a mistake on : $(document).ready(function(){ $(".accordion .foo h3").eq(0).addClass("active"); $(".accordion .foo p").eq(0).show(); $(".accordion2 .foo h3").click(function(){ $(this).next("p").slideToggle("fast") .siblings("p:visi

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-13 Thread ray
It appears that the .children portion of the code either isn't getting the .ajax_link classes, or the click handler isn't getting correctly applied. Is there a way to determine what the actual results returned are by the following: $(this).children('.ajax_link') i tried something like: v

[jQuery] Re: Multiple plugins in same namespace?

2008-12-13 Thread Marion
Hi Mike, Thanks! all good suggestions. I went with $('#someid').myPlugin({ doThis: ..., doThat: ... }); One entry point, and lets me doThis and doThat both, which turned out to be useful. I'm still curious whether my original syntax could be made to work. I suspect the answer is "not

[jQuery] Re: mod'ing pseudo-classes...possible?

2008-12-13 Thread Dave Methvin
> $(".detailsPaneToggle").children("a").css('background-position','0px -35px'); > $(".detailsPaneToggle").children("a:hover").css('background-position','0px > -80px'); I think you can do this without script, except for IE6. .detailsPaneToggle > a { background-position: 0px -35px; } .detailsPa

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-13 Thread hotdog...@gmail.com
On Dec 13, 11:05 am, George wrote: > It has nothing to so with AJAX. > You did not say what you using on your server side so i can not tell. > > But a lot of frameworks like ASP or ASP.NET will serialize requests > made from the same Sesssion (browser). To avoid programmers having to > manage con

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-13 Thread George
It has nothing to so with AJAX. You did not say what you using on your server side so i can not tell. But a lot of frameworks like ASP or ASP.NET will serialize requests made from the same Sesssion (browser). To avoid programmers having to manage concurent access to resources in Session object.

[jQuery] Re: BlockUI unchecks checkboxes

2008-12-13 Thread Mike Alsup
> "Why can't I duplicate this behavior? " > > Because you're not using the checkbox itself to fire off the > block   his code and my quick example do Ah, thanks for clarifying, Steve. I'll get that fixed. Mike

[jQuery] Does jQuery do the encode thing

2008-12-13 Thread David .Wu
My default character set is utf8, should I use encodeURI when use ajax sending the data to server? for example $username = $('#username').val() $.ajax( { url:'xxx.php', data:{username:encodeURI($username)} .. ... ... });

[jQuery] Re: validation plugin question

2008-12-13 Thread Jörn Zaefferer
No idea, I'd need to see some code, a testpage is prefered. Jörn On Sat, Dec 13, 2008 at 4:03 PM, Sean Allen wrote: > > I already have that in place. > > How do I get the autogenerated label to not do style="display:inline" ? > In that demo there is no such element styling on the label created f

[jQuery] Add a class to an accordion

2008-12-13 Thread paul
Hello, I want to custom this jQuery script : $(document).ready(function(){ $(".accordion h3").eq(0).addClass("active"); $(".accordion p").eq(0).show(); $(".accordion h3").click(function(){ $(this).next("p").slideToggle("fast") .siblings("

[jQuery] Re: creating unique IDs

2008-12-13 Thread brian
I just came across a *much* better way to do this in Andris Valums' ajax_upload plugin: var get_uid = function(){ var uid = 0; return function(){ return uid++; } }(); That's what's called a "closure", btw. http://valums.com/

[jQuery] Re: jQuery Plugin --> DOMisBetter

2008-12-13 Thread Klaus Hartl
is valid XHTML. --Klaus On 11 Dez., 03:59, RobG wrote: > On Dec 11, 7:45 am, KillIEbrowser wrote: > > > DOMisBetter is different from jQuery( html, [ownerDocument] ) > > >http://docs.jquery.com/Core/jQuery#htmlownerDocument > > That part of the documentation needs to be updated. Where it say

[jQuery] Re: Separate Functions for Events

2008-12-13 Thread DAZ
Just to say a belated thanks to both of you for this help - it is very useful and helped me lots in learning how to use jQuery. I still have lots left to learn, but I'm finding it a great library. cheers, DAZ On Dec 8, 8:35 pm, "Richard D. Worth" wrote: > But also this is a jQuery UI callback,

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-13 Thread brian
On Fri, Dec 12, 2008 at 4:30 PM, ray wrote: > > I've implemented the changes you've suggested, but I'm seeing the same > issue (clicks are not being intercepted by JQuery). :-/ I do > understand what you suggested, but I'm now very confused as to why it > isn't working. Post some code? > Is t

[jQuery] Re: validation plugin question

2008-12-13 Thread Sean Allen
I already have that in place. How do I get the autogenerated label to not do style="display:inline" ? In that demo there is no such element styling on the label created for errors. On Dec 12, 2008, at 4:37 PM, Jörn Zaefferer wrote: In that demo this line hides the default messages for the

[jQuery] Re: serialScroll Plugin - Problems with lazy loading of items (dynamically updating item list)

2008-12-13 Thread Ariel Flesler
The demo is not too functional. Elements don't scroll (at least in FF). Elements here do rearrange when adding/removing. The option lazy should do. Could you fix w/e needs to be fixed so that the problem does arise ? Note that you don't need line #34 of the pastie. That could actually mess it all

[jQuery] Re: jqModal Onload

2008-12-13 Thread MorningZ
It's easy when you read the documentation http://dev.iceburg.net/jquery/jqModal/README You can manually show or hide a dialog with $.jqmShow() and $.jqmHide (). e.g. $(e).jqm().jqmShow(); $('#window2').jqmHide();

[jQuery] jqModal Onload

2008-12-13 Thread webnot
Hi everyone I want to load this window on page load can you plz let me know how to do this. $().ready(function() { $('#tallContent2').jqm(); setTimeout($('#tallContent2').jqm(),2000); }); -- View this message in context: http://www.nabble.com/jqModal-Onload-tp20990657s27240p20990657.htm

[jQuery] Re: Please help me improve my glassbox plugin

2008-12-13 Thread ShiwawaRaider
ok I have load my example to geocities, please take a look there also I found problem with the top-padding of top right icons that I don't found on my machine.. -_-' http://www.geocities.com/blackzabaha/ sorry for very big blackground image, it may take so long time to load, but I like it :) On

[jQuery] Re: BlockUI unchecks checkboxes

2008-12-13 Thread MorningZ
"Why can't I duplicate this behavior? " Because you're not using the checkbox itself to fire off the block his code and my quick example do On Dec 12, 5:17 pm, Mike Alsup wrote: > > " Could you possibly post a demo page somewhere?" > > > Mike, this code:http://paste.pocoo.org/show/9507

[jQuery] Re: jQuery Plugin --> DOMisBetter

2008-12-13 Thread KillIEbrowser
Yes, but the way is long: "IE share slips under 70%; Firefox surges past 20%" "The more home users who are online, using Firefox and Safari at home rather than IE, the more those browsers' shares go up," he said. With November including the Thanksgiving holiday in the U.S. and more weekend days t

[jQuery] Re: jQuery Cycle Plugin: 1 pager to control 2 slideshows

2008-12-13 Thread Mike Alsup
> I have been searching for a way to have 1 pager to control 2 > slideshows with the same number of slides. Where one slideshow can > have a scrollLeft and another just with a fade. Is this possible with > the current plugin? Here's a demo: http://jquery.malsup.com/cycle/pagers.html

[jQuery] Re: Another date picker

2008-12-13 Thread Jorge Godoy
Is there I18N support? I missed a "today" button... -- Jorge Godoy On Thu, Dec 11, 2008 at 12:40 AM, Alex Kroman wrote: > > Hi -- > > We just released another date picker using jQuery that we've been > using internally at OpenSourcery for a while now and are really > liking. > > The main

[jQuery] Re: Submit a form automatically

2008-12-13 Thread Mike Alsup
> I have a dynamically created form that I'd like to submit > automatically after it loads.  It doesn't look like forms have an > onload event.  I would use the window onload, but the form isn't > necessarily around when the window loads - it is created later in a > jquery popup. > > Any suggestio

[jQuery] Re: Multiple plugins in same namespace?

2008-12-13 Thread Mike Alsup
> I'm trying to create a plugin with two entry points. You would use it > like this: > > $('#someid').myPlugin.doThis(options); > $('#anotherid').myPlugin.doThat(options); How about one of these approaches instead: $('#someid').myPluginDoThis(options); $('#anotherid').myPluginDoThat(options); o

[jQuery] Re: How to avoid the "required" on a credit card field using validate extension? [validate]

2008-12-13 Thread Dirceu Barquette
Hi, Idea: assign itemField class to credit card block "onchanging" select input, or something like this. Dirceu Barquette 2008/12/12 ekilater > > Hi all, > > I've a form that validates using jQuery. > > In that form we use a small credit card validation with an extension > that you can find he

[jQuery] Re: how to write selector of Id contains some text

2008-12-13 Thread Mike Alsup
> How can i write selector to retrieve elements (span)  that contains > 'PB' as part of id. > My ids are dynamically generated as PB1 PB2 etc. spans that have an ID that starts with PB: $("span[id^='PB']") http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue

[jQuery] Re: Please help me improve my glassbox plugin

2008-12-13 Thread Mike Alsup
> Please a look at simple example > herehttp://www.2shared.com/file/4448827/d6437194/web.html > if it cool enough to be qualified as a plugin, I will contributed the > finished source. You'll have better luck with feedback if you post a link to a demo page.

[jQuery] Thumbnail-Gallery - previous/next link

2008-12-13 Thread sharkbait
Hi there! i try to create a previous/next-link in my thumbnail gallery. the gallery is created by an cms, and provides a certain amount of thumbnails which link to a big image, which will then be shown when the thumb is clicked. i got it working so far that the big image fades in, a fade effect

[jQuery] Treeview : how to add selected class to clicked item.

2008-12-13 Thread Pankaj
I would like to highlight current selected node to the user, making current selection more visually clear using CSS If we use persist:"Location", node is hightlighted [adds the "selected" class], but only when u refresh the page. Can some one guide me how to implement it on per click basis ? R

[jQuery] Please help me improve my glassbox plugin

2008-12-13 Thread ShiwawaRaider
Hi all, By inspiration of glassbox effect here http://www.glassbox-js.com/ and css button here http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html I have try to enhance its feature to suite my need in jQuery way. then by now I have done far but need more improvement.

[jQuery] Re: how to write selector of Id contains some text

2008-12-13 Thread Paul Mills
Hi, Try $('#PB'+n) where n is a variable set to 1,2,3,etc. Paul On Dec 12, 11:55 pm, Ashish wrote: > How can i write selector to retrieve elements (span)  that contains > 'PB' as part of id. > My ids are dynamically generated as PB1 PB2 etc.

[jQuery] Re: JQuery is really a nice tool

2008-12-13 Thread Sid
hi Please help me out as i am a new fresher learning HTML how to remove all the html and css bugs from this site http://googlelance Thanks On Dec 13, 1:31 am, "Andy Matthews" wrote: > No jQuery on that page. It's just using a collection of dHTML scripts found > online. > > -Original Messag

[jQuery] Re: JQuery is really a nice tool

2008-12-13 Thread Sid
hi Please help me out as i am a new fresher learning HTML how to remove all the html and css bugs from this site http://googlelance Thanks On Dec 12, 11:30 pm, Sid wrote: > Just look at this URLhttp://googlelance.com > > You see the login and button click on it then you find that > > a pop up

[jQuery] Odd issues passing JSON to server

2008-12-13 Thread Shawn Grover
I'm not sure if I have a server side issue or a client side issue. The problem is that I am generating a JSON string in my plugin, and passing it to a php page (though the back end shouldn't matter in the long run). I can see that a parameter is infact passed, but trying to decode that stri

[jQuery] Re: Problems selecting elements...

2008-12-13 Thread SLR
I ended up fixing the issue myself. For those that want to know, it was type-casting issue. I change the following line: >var pageIndex = $("body").attr("id");// Pulls ID value from body tag >pageIndex = pageIndex.substring(4); to var pageIndex = $("body").attr("id");// Pulls I

[jQuery] Re: Problems selecting elements...

2008-12-13 Thread Richard D. Worth
Have you tried breaking apart your chain? At least to debug. Might help to do a console.log step (in Firebug) at each function call to ensure your selectors are returning what you expect, your slice etc. This would allow you to see if for example addClass is being called on 1 element, or many eleme