[jQuery] Re: Selecting disparate elements in unobtrusive javascript without parameters?

2008-12-26 Thread spud
@Klaus Hartl -- Actually, the code I displayed was simply dummy code as an example; the real code either links to real URIs or isn't an A tag at all. Your usage of the hash property, however, does not really provide any more information than the same text used as an ID. So it's an alternative sol

[jQuery] Re: .animate and border sides

2008-12-26 Thread Nikola
You can play around with it more here: http://jsbin.com/anala/edit

[jQuery] .animate and border sides

2008-12-26 Thread Nikola
Hello, I am trying to animate a color change for the top and right borders of an element. A) In Firefox the border size is animated but the color change is not on the first hover only. After that the border color changes as though you were affecting it via a pseudo class in CSS. B) Behavior in

[jQuery] Re: Undocumented move/copy behavior of append() et al.

2008-12-26 Thread Dave Methvin
> For generated pages where the target count is not known, this > behavior seems to be a source of troubles. Well, like I said back then, jQuery *must* append clones of the nodes in the case where you are appending to multiple targets. That only leaves a question about the one-target-node case. I

[jQuery] Re: More About jQuery's Web Browser Compatibility

2008-12-26 Thread tallvanilla
I'm still very interested in knowing the answer to the original question. Does anyone else care to weigh in? To recap, I just want to know... 1) minimum version of Camino that is jQuery-compatible 2) whether Safari for Windows is fully jQuery-compatible 3) whether Google Chrome (Windows) is jQuer

[jQuery] Re: Resolving MasterPage ClientId Issue in jQuery

2008-12-26 Thread Jeffrey
Yeah, ClientId Issue can be handled with "ClientIDMode" in ASP.NET 4.0. Some information can be found in Rick's post: http://www.west-wind.com/WebLog/posts/529598.aspx On 12月27日, 上午1時20分, MorningZ wrote: > I never would have seen that except i caught it mentioned in a > presentation at DevConn

[jQuery] Re: :contains working with text, but not with variable

2008-12-26 Thread Michael Geary
Is this JavaScript code or PHP code? The use of $category as a variable name, along with the attempt to interpolate the variable directly in the string in the first example, makes me wonder if you're actually talking about PHP code here. You can use $ as part of a variable in JavaScript, but it's

[jQuery] Re: Selecting disparate elements in unobtrusive javascript without parameters?

2008-12-26 Thread Klaus Hartl
You said you don't want to litter your code with bogus classes, but - speaking of unobtrusive - you do litter it with bogus anchors (href="#"). That said, the most obvious solution to me is to give these anchors a little more meaning by letting them point to the div they seem to be connected to an

[jQuery] Re: script behaves different in IE than in Firefox

2008-12-26 Thread donb
The .get() is asynchronous. By adding the alert() you pause the script long enough for each get to complete. I'm sure click-count.php is losing data when it comes in too quickly It probably reads a database value, increments it, and writes it back. If not a query like 'update sometable set some

[jQuery] Undocumented move/copy behavior of append() et al.

2008-12-26 Thread Markus Gritsch
Hi, At [1] and [2] I read about the different behavior of append() (and similar functions) depending on whether there are many targets (-> copy) or there is just one target (-> move). For generated pages where the target count is not known, this behavior seems to be a source of troubles. Maybe

[jQuery] Re: Validate Plugin: Alpha Only

2008-12-26 Thread Alexsandro_xpt
Good, but in this demo, Can I do this in inline rules like that above? Eg.: Text Thanks On 24 dez, 11:35, "Jörn Zaefferer" wrote: > Take a look at this > demo:http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/demo/tinymc... > Will be included in 1.5.1, probably with a few more t

[jQuery] script behaves different in IE than in Firefox

2008-12-26 Thread lapinkulta
Hi! I wrote a script that makes some checks and than counts the clicks via a php script. However the way it should, it only works (counting the clicks) in IE not in Firefox: $('a').click(function() { if ( this.id != '' ) { var tp = this.id.charAt(0); if(tp != 'l' && tp

[jQuery] JQuery Form Validation and Insert into Database problem

2008-12-26 Thread avances
I have two scripts, one validates the form and the other enters the data into a SQL database without a page refresh. Both scripts work fine on there own... How can I combine them so the form validates and then inserts when form is free of errors. Please see the two scripts below. I suspect it be

[jQuery] Please help with navigation script

2008-12-26 Thread precar
Hi, Can someone please help me with the following navigation script I'm trying to use on my page? I have a list of sites in the left div which I would like to be able to filter out. The issue is that it works only once. Once I filter once I can't reclick on the "Refine by category" button and

[jQuery] :contains working with text, but not with variable

2008-12-26 Thread precar
Hi guys, I've already read the other thread on this topic and tried the following versions of the statement: $sites = $(data).find('categories').filter(':contains($category)'); $sites = $(data).find('categories').filter(':contains("+ $category +")'); $sites = $(data).find('categories').filter(':

[jQuery] Selecting disparate elements in unobtrusive javascript without parameters?

2008-12-26 Thread spud
This question is partially about unobtrusive javascript in general, but with specific reference to jQuery syntax. I am a long-time javascript programmer, but a total jQuery noob. I am attempting to use jQuery to replace onclick handlers that were previously generated inline as part of a CMS. Most

[jQuery] Superfish css question

2008-12-26 Thread JP
how do I control the level-three, left offset. I've tried changing many things but it has no effect. Any clues are appreciated.

[jQuery] Re: I wrote a YUI Multi FIle Compression Utility

2008-12-26 Thread JimD
This is great. I've been looking for such a utility. Thank you. On Dec 23, 8:27 am, K-BL wrote: > Hey Guys, > I just finished writing aYUIMulti-File Compression Utility.  It's > really simple, it just runs some CLI commands, but more importantly, > it compiles entire directories and sub director

[jQuery] Re: Downloading jquery

2008-12-26 Thread ej2451
Thanks for the info, Richard. Would have gotten back to you sooner, but I've been gone for the holidays. On Dec 19, 4:19 pm, "Richard D. Worth" wrote: > On Fri, Dec 19, 2008 at 3:46 PM, ej2451 wrote: > > > I just downloaded the jquery libraries (this stuff is awesome!). > > From what I've

[jQuery] Re: Resolving MasterPage ClientId Issue in jQuery

2008-12-26 Thread MorningZ
I never would have seen that except i caught it mentioned in a presentation at DevConnections a few years back And heh, while doing a search right now for ".net client id", the first hit on google was this Rick Strahl post http://www.west-wind.com/WebLog/posts/4605.aspx (see the first comme

[jQuery] Re: Resolving MasterPage ClientId Issue in jQuery

2008-12-26 Thread Jeffrey
Thanks, MorningZ. IDOverride seems a good option. I can't find too many discussions about Wilco's IDOverride from Internet. Will the modifcation of ClientId impact the postback event raising? I find of some warning about that. (LoadPostData, RaiseChangedEvent, IPostBackDataHandler issues) On

[jQuery] Re: Resolving MasterPage ClientId Issue in jQuery

2008-12-26 Thread MorningZ
No offense.. but that doesn't seem to elegant or useful of a solution... if you have controls on a content page that are not in another container (GridView, UserControl, etc etc), then Wilco Bawer's "ID Override" is excellent one simple line of code keeps the ID of as "TextBox1" http://wi

[jQuery] ZoomThumbnails

2008-12-26 Thread firstlor
Hey, is there a plugin which works like the following script (hover over the "one"): http://www.vicsjavascripts.org.uk/ImageZoom/ImageZoom.htm thanks so far!

[jQuery] superfish

2008-12-26 Thread steve02a
I'm curious to know how to modify the Superfish Dropdown Menu to add a SECOND module in Joomla. I have the module installed already and it's powering my topmenu (user3), but I also want the module to control my main menu (left). How is this possible?

[jQuery] writting plugin

2008-12-26 Thread Saledan
Hi, i'm trying to write a jQuery plugin, i have read some posts, documents and other plugin code, but i don't understand the right standard to write a plugin. I found some patterns... == example 1== (function($) { $.fn.myPlugin = function(o) { return this.each(function() { // do somet

[jQuery] Re: How to split this?

2008-12-26 Thread George Adamson
... Or try this variation for the more jQuery obsessed...! $.each( mystring.split(";"), function(){ var values = this.split('/'); $( '#' + values[0] ).css({ top:+values[1], left:+values[2] }); }) ... Or if you like

[jQuery] Re: image tag xhtml validate

2008-12-26 Thread Saledan
Maybe i don't understand well.. but .. sure it's html anyway, and the browser render it without issue, but i mean that the tag closure in xhtml stardard is different and in this way you don't follow the standard.. thank you Max On 26 Dic, 02:55, Klaus Hartl wrote: > Well, as long as you serve

[jQuery] Re: How to split this?

2008-12-26 Thread BroOf
You're fantastic! Thank you so much it works just perfectly! Greetz: BroOf On 25 Dez., 21:10, "Michael Geary" wrote: > My take on it would be similar to Kristaps', with a couple of differences: > >     var string = '1/17/52;2/283/-2;3/475/492;4/180/625;5/272/790;' >     var groups = string.spli

[jQuery] Re: unable to access desired elements.

2008-12-26 Thread converging rails
thanks a lot Samythat worked. On Dec 25, 8:46 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > As you want insert a div element after a submit element you must use the > method after() like so: > > $(document).ready(function(){ >  jQuery("input[type='submit']").after(''); >     }); > > Maurício

[jQuery] Re: jCarousel

2008-12-26 Thread Tony
Here is more detail on the problem. I have pagination setup like: 1 | 2 | 3 | 4 and it works fine. But I want to be able to to indicate which page(image) they are currently viewing. On Dec 25, 5:17 pm, Tony wrote: > Is it possible to add active state to the pagination? If so I would I > do this