Re: [jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-05 Thread amircx
how ok :) but when you think its gonna happen? Jörn Zaefferer wrote: > > amircx schrieb: >> hey, i got the following code (i fixed the ie6 bugs and stuff) >> >> >> now i need to figure out how can i assign the div the shows errors in >> each >> input? i saw the demos but the problem is that i wa

Re: [jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-05 Thread amircx
oh ok :) but when you think its gonna happen? by the way, i didnt realise how can i put the list of parameters inside my code, like instad of now : $(document).ready(function() { // bind form using 'ajaxForm' $("#amir").validate({ submitHandler: fu

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-05 Thread Mattias Hising
Hi, We are doing just that on PokerRoom.com for messages and gift-vouchers (previewing a message/gift-voucher before sending). What we actually do is the following (not my code, just a schematic of how it is solved on PokerRoom.com): //Serialize the form using the form-plugin and populate

Re: [jQuery] New Plugin: clickMenu

2007-03-05 Thread agent2026
Heya! Just checked out the demo, but it looks good. Think clicking the top level (item 1, item 2) should toggle the menu visibility, rather than having to click off the menu to make it go away. Adam -- View this message in context: http://www.nabble.com/New-Plugin%3A-clickMenu-tf3342867.html#

Re: [jQuery] Charting or plotting coming?

2007-03-05 Thread ashutosh bijoor
Hi We're working on a charting plugin based on the original by Emil A Eklund that you can find at http://webfx.eae.net/dhtml/chart/chart.html We have significantly modified the code, with all classes being re-organized, making the code smaller and cleaner. We shd have an early version ready this

Re: [jQuery] onClickOut?

2007-03-05 Thread Klaus Hartl
Karl Swedberg schrieb: > Hey Yehuda, > > .one('event',fn) has not been deprecated, as far as I know. Only the > individual .oneEvent(fn) methods have. > > > --Karl Yes, this is what I thought as well... I'm confused. -- Klaus ___ jQuery mailing l

Re: [jQuery] $(node).hasClass(...) function

2007-03-05 Thread Dominik Hahn
That'd be the best solution! Thanks for the code, I was using if($(this).attr('class').search('selected') != -1) { // code } before. :-) 2007/3/5, John Resig <[EMAIL PROTECTED]>: .hasClass() would just use .is() (or jQuery.filter) internally. Right now we're quickly gaining filesize without ev

[jQuery] prependTo element's own parent

2007-03-05 Thread Seb Duggan
I want to take an element, and prepend it to its own parent element. How would I do this? Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] $(node).hasClass(...) function

2007-03-05 Thread Klaus Hartl
John Resig schrieb: > .hasClass() would just use .is() (or jQuery.filter) internally. Right > now we're quickly gaining filesize without even adding new features > (only dealing with bug fixes). For now, .is() will have to suit. > > Another option would be to add an entry for .hasClass() in the >

[jQuery] onclick functionality

2007-03-05 Thread Stella Power
Hi, I'm new to jQuery so please bear with me if this is a stupid question. I have gone through the tutorials on the site by the way, I just haven't found a solution to it yet. I have a page that is created on the fly using php. On the page there are a variable number of question-answer pairs.

Re: [jQuery] Need some guidance...

2007-03-05 Thread Rick Faircloth
Thanks, Daemach...I'll have a look at it! Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daemach Sent: Sunday, March 04, 2007 11:09 PM To: discuss@jquery.com Subject: Re: [jQuery] Need some guidance... http://bassistance.de/jquery-plugins/jquery-p

Re: [jQuery] onclick functionality

2007-03-05 Thread Karl Swedberg
Hi Stella, One of the beautiful things about jQuery is that you don't need to put IDs everywhere in your markup just to do simple show/hide effects. My most recent blog entry, Accordion Madness, shows a couple ways you can achieve the showing and hiding effect, and it links to previous en

[jQuery] onclick functionality

2007-03-05 Thread Stella Power
Thanks Karl, that worked perfectly! Cheers, Stella ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
How could I get the ID from a parent div of my element? I think that will be the shortest path to do what i need, as described bellow: Example: Some Company Something about the company Other Company Something about the other company I'm trying to do a company list of my city.

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Leonardo K
$("div.name").click(function(){ $(this).next().toogle( function(){ $(this).show(); }, function(){ $(this).hide(); } ); }); On 3/5/07, JQuery - SimDigital <[EMAIL PROTECTED]> wrote: How could I get the ID from a parent div of my element? I think that will be the shortest path to do what i need,

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Hi Gustavo, this would be more semantic: Some Company Something about the company Other Company Something about the other company Also, ids shouldn't start with a number. I'd use this function, but I'm sure other people could do better - I'm more of a CS

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Oh, I forgot - remove the toggleClass call. I used it to change the formatting of my 'company names' when they were open or closed. You could write your own function to do that, of course! On 3/5/07, Dan Eastwell <[EMAIL PROTECTED]> wrote: > Hi Gustavo, > > this would be more semantic: > > >S

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
Thanks for reply Dan and Leonardo! I will try your suggestions! Brazilian Huges for you! Villa, Gustavo. -- SimDigital Visite nosso site: www.simdigital.com.br (15) 3012.7200 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
Dan, another question: Why did you typed: "Also, ids shouldn't start with a number." What is the right standard? Gustavo Villa. Dan Eastwell escreveu: Hi Gustavo, this would be more semantic: Some Company Something about the company Other Company Somet

[jQuery] iterating over child elements

2007-03-05 Thread dalvarado
Hi, If I find a DIV, through a call var parentDiv = $(this).parents("div:first"); How do I iterate over the child elements of what I found? Better yet, is there a way to print out the child elements and their ID's in one fell swoop? Thanks, - Dave

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Don't thank us until it works! Let me know how you go, I'd be interested. IDs should just start with a letter - given that you can only have one id on any page, it would make sense to name your IDs so they are useful to you in the future, such as You might not need an id at all, unless it's com

Re: [jQuery] Best practices for reattaching behaviours to dynamically loaded content?

2007-03-05 Thread Nicolas Hoizey
> I keep all my behaviours in separate functions. For instance if I > had a fancy table widget I'd have a function called initTable() > that contained the behaviour code. I'd call it initially upon page > load, then call it again when necessary if content has been updated > via ajax. > [...

Re: [jQuery] iterating over child elements

2007-03-05 Thread Christof Donat
Hi, > If I find a DIV, through a call > > var parentDiv = $(this).parents("div:first"); > > How do I iterate over the child elements of what I found? Better yet, is > there a way to print out the child elements and their ID's in one fell > swoop? parentDiv.children().each(function() { va

Re: [jQuery] iterating over child elements

2007-03-05 Thread John Resig
$(this).parents("div:first").children(); If you want to print out the IDs and elements, for debugging purposes, try using Firebug (http://getfirebug.com/) - then you can do something like this: console.log( $(this).parents("div:first").children() ); and it'll print out all the elements matched -

[jQuery] Animated More Info.

2007-03-05 Thread JQuery - SimDigital
Take a look how i solve the problem: $(".name").click(function(){ theParent = this.parentNode; $(".moreinfo", theParent).animate({ height:'toggle'}, "fast"); $(".moreinfo", theParent).load('moreinfo.html'); }); Some Company Something

Re: [jQuery] onClickOut?

2007-03-05 Thread John Resig
.one() is not deprecated. With 1.1 we simply have an alternative to .one() using the .unbind() function (allowing the event to be triggered only a specific number of times). --John On 3/5/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Karl Swedberg schrieb: > > Hey Yehuda, > > > > .one('event',fn)

[jQuery] Conditional validation - validator plugin.

2007-03-05 Thread Daemach
I need a way to make a field required based on some other condition. Consider the case of a multi-select for "Job Type": Baker Janitor Fisherman ... Other (please describe) If someone selects "other" the description field should be required, otherwise it's hidden. {required:function(){return

[jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
I, like probably everyone else on this list, is anxiously awaiting the port of EXT to jQuery. Is there a timeline for this? I am about ready to rebuild one of my clients sites and would very much like to use the ext components as a base. -- View this message in context: http://www.nabble.com/W

Re: [jQuery] onClickOut?

2007-03-05 Thread Karl Swedberg
Thanks for the clarification, John! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 5, 2007, at 10:55 AM, John Resig wrote: .one() is not deprecated. With 1.1 we simply have an alternative to .one() using the .unbind() function (allowing the event t

Re: [jQuery] Conditional validation - validator plugin.

2007-03-05 Thread Web Specialist
Daemach, Wait for the next release for Jorn's Form Validation plugin. Could be a conditional validation to help us, yeahhh Jorn??? ;-) Cheers 2007/3/5, Daemach <[EMAIL PROTECTED]>: I need a way to make a field required based on some other condition. Consider the case of a multi-select for "J

Re: [jQuery] Animated More Info.

2007-03-05 Thread Schnuck
do you have a demonstration site up? On 05/03/07, JQuery - SimDigital <[EMAIL PROTECTED]> wrote: > Take a look how i solve the problem: > > > > $(".name").click(function(){ > theParent = this.parentNode; > $(".moreinfo", theParent).animate({ height:'toggle'}, "fas

Re: [jQuery] jquery flash sIFR fla file

2007-03-05 Thread Schnuck
i was about to resave this in flash 7 for you but it gives me a warning that "filters" will get lost by doing so - i take that as the whole thing will be nonfunctional afterwards. sorry. On 04/03/07, Sam Sherlock <[EMAIL PROTECTED]> wrote: > I am playing around with the flash plugin for jquery t

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread John Resig
Ext 1.0 Alpha 2 is already running on jQuery: http://www.yui-ext.com/forum/viewtopic.php?t=3084 We're working to make some improvements to jQuery to better handle the demanding animations that Ext requires. But yeah, you can begin using it now! We were waiting for Jack to make an official announce

Re: [jQuery] jquery flash sIFR fla file

2007-03-05 Thread Luke Lutman
I should've replied earlier ... I've sent Sam a Flash 7 version of the fla. The filters are just to make the text look better (adding an invisible drop shadow gets rid of the colour artifacts produced by 'anti-alias for readability' in Flash 8). Everything should work fine without the filters

Re: [jQuery] jquery flash sIFR fla file

2007-03-05 Thread Sam Sherlock
yep its working fine. thanks On 05/03/07, Luke Lutman <[EMAIL PROTECTED]> wrote: I should've replied earlier ... I've sent Sam a Flash 7 version of the fla. The filters are just to make the text look better (adding an invisible drop shadow gets rid of the colour artifacts produced by 'anti-ali

Re: [jQuery] ISO docs for $.fn ?

2007-03-05 Thread Kynn Jones
Thanks, John. And thanks for jQuery. Beautiful piece of work. kj On 3/4/07, John Resig <[EMAIL PROTECTED]> wrote: Hi Kynn - Documentation on $.extend can be found here: http://docs.jquery.com/JavaScript and information on using $.fn.extend can be found here: http://docs.jquery.com/Plugins

[jQuery] Slideup/Slidedown issues in IE7

2007-03-05 Thread Richard Thomas
Working on a json/jqpie auto complete sample http://projects.cyberlot.net/jqpie/examples/new.html jQuery 1.1.2 line 2206 Could not get the display property If I change from using Slideup/Slidedown as effect to just hide everything works fine. ___ jQue

[jQuery] get class name

2007-03-05 Thread dalvarado
Hi, What is the jQuery syntax to ge the class name of an item with a known id? Thanks, - Dave ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Safari Crashing

2007-03-05 Thread Brad Perkins
Are there any known issues where jQuery would crash Safari? I'm testing using jQuery 1.1.2. With Safari 2.0.4, the browser window disappears as soon as I make an AJAX call. I've observed this on two different Macs? I also note that a recent WebKit build on the same machine doesn't crash. Firefox

[jQuery] [jQuery date picker]How to keep the input's original length

2007-03-05 Thread weide
.data-picker{width:100%;} the input.data-picker will be 100%, when I use the jQuery date picker plugin,how to keep the (input.data-picker+a.data-picker) still 100%? ps:I don't want set start date and end date,I want have the "next" and "prev" always,How to do it ?

[jQuery] Parent and Single Parent Element Selection

2007-03-05 Thread Kevin Fricovsky
Morning, I have a question for the jquery group. My question is - what's the best way to get a single parent element of the current object. Right now I have an html table with multiple rows. In the first TD of each row I have a select list (a dropdown). I have a select() event attached to the

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
That rules - thanks John ;) It would be most helpful if there was some location, either in this list or on the main site, that listed timelines for all of these major releases - 1.1.3, ext, form validation, etc. so we could plan better. The rewrite I'm doing is a 6-9 month project and knowing wh

Re: [jQuery] get class name

2007-03-05 Thread Aaron Heimlich
On 3/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: What is the jQuery syntax to ge the class name of an item with a known id? var myClassAttr = $("#myId").attr("class"); Will store the entire contents of #myId's "class" attribute in the variable "myClassAttr" If you want to determine w

Re: [jQuery] Safari Crashing

2007-03-05 Thread Seb Duggan
I've had similar problems with 1.1.2 on Safari, not just with AJAX calls. I've reverted to a recent nightly build of jQuery, and it's behaving itself... Seb On 5 Mar 2007, at 17:02, Brad Perkins wrote: > Are there any known issues where jQuery would crash Safari? > > I'm testing using jQue

Re: [jQuery] Dynamically modifying the content of the carousel

2007-03-05 Thread phplord
I have the similar problem, jCarousel loads full list generated by a php files via DB with same format as TXT file, I try to modify the content of carousel by some links which sends parameters to PHP file... any improvement in this? tHanks.. hxela wrote: > > Initially my carousel loads /foo

Re: [jQuery] Parent and Single Parent Element Selection

2007-03-05 Thread Choan C. Gálvez
On 3/5/07, Kevin Fricovsky <[EMAIL PROTECTED]> wrote: > > Morning, Evening ;) > I have a question for the jquery group. > > My question is - what's the best way to get a single parent element of > the current object. > > Right now I have an html table with multiple rows. In the first TD of > each

Re: [jQuery] Parent and Single Parent Element Selection

2007-03-05 Thread Seb Duggan
Maybe something like: $('.colorPick').change(function() { $(this).parent().parent().addClass('assigned'); }); where colorPick is the class assigned to your select menu. You could also use: $('.colorPick').change(function() { $(this).parents('tr').addClass('assigned'); }); b

Re: [jQuery] Safari Crashing

2007-03-05 Thread John Resig
Just after 1.1.2 was released we discovered that bug in jQuery and merged its fix back in. Could you try re-downloading the latest 1.1.2 to see if it solves your problem? http://jquery.com/src/jquery-1.1.2.js --John On 3/5/07, Brad Perkins <[EMAIL PROTECTED]> wrote: > Are there any known issues w

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
I'm having trouble finding some examples on how this library works - in the documentation he has function/object references and demos but no examples/tutorials. I hate to be the one that asks this, but can you point us to a few get-started quickly areas? I learned jQuery in about a week with all

Re: [jQuery] Dynamically modifying the content of the carousel

2007-03-05 Thread phplord
anyone can have an idea about this, I need this urgently... phplord wrote: > > I have the similar problem, jCarousel loads full list generated by a php > files via DB with same format as TXT file, I try to modify the content of > carousel by some links which sends parameters to PHP file... > >

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Glen Lipka
Daemach*,* Me too. The EXT project is very much in "Technical Preview" mode. They made it clear to me, after some squeaky wheeling on my part, that they *are* in progress building out documentation, tutorials, etc. They asked that I(We) be patient. Nothing is there now, but they said alot will

Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-05 Thread Jörn Zaefferer
Daemach schrieb: > Thanks for the info on the metadata plugin. > > "Make sure to avoid any spaces..." is exactly the kind of "gotcha" that > makes using classes as a data repository so troublesome. While it is > technically possible, mixing data types inside an attribute just feels like > a bad pr

[jQuery] How to access contents of frames/iframes with jQuery?

2007-03-05 Thread Kynn Jones
Hi again! (Second question in as many days... I guess I'm the overeager noob. :) ) Last night I watched John Resig's screencast "Hacking Digg with Firebug and jQuery" ( highly recommended, BTW: http://ejohn.org/blog/hacking-digg-with-firebug-and-jquery/ ) and I immediately went to one of my fa

Re: [jQuery] Safari Crashing

2007-03-05 Thread Brad Perkins
John, Yes, installing the latest build fixes the problem. Thanks for the speedy reply and for such an awesome library! best, Brad Perkins On 3/5/07, John Resig <[EMAIL PROTECTED]> wrote: > Just after 1.1.2 was released we discovered that bug in jQuery and > merged its fix back in. Could you tr

Re: [jQuery] get class name

2007-03-05 Thread Glen Lipka
If the ID only has one class you can also say: $("#myID[class=foo]").fadeOut(); or var theNode = $("#myID[class=foo]") Also, wouldn't your example work without the IF? $("#myId).is("myClass").fadeOut(); or var theNode = $("#myId).is("myClass") Glen If you want to determine whether #myId has

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
Last question - it looks like the ext port is just using jQuery for the mechanics of ext itself. Are there plans to port the ext functions to jQuery syntax? John Resig wrote: > > Ext 1.0 Alpha 2 is already running on jQuery: > http://www.yui-ext.com/forum/viewtopic.php?t=3084 > > We're worki

[jQuery] loading animation for imagebox

2007-03-05 Thread Janet Weber
Hi The loading animation for imagebox doesn't display properly. The animation has a white box behind the loading.gif animation and I would like to know how to change that white box to black or transparent? Also if anyone is interested there is a website that will generate loading animations fo

Re: [jQuery] get class name

2007-03-05 Thread Sam Collett
On 05/03/07, Glen Lipka <[EMAIL PROTECTED]> wrote: > If the ID only has one class you can also say: > $("#myID[class=foo]").fadeOut(); > or > var theNode = $("#myID[class=foo]") > > Also, wouldn't your example work without the IF? > $("#myId).is("myClass").fadeOut(); > or > var theNode = $("#myId).

[jQuery] finding closest ancestor matching a pattern

2007-03-05 Thread dalvarado
Hi, I am trying to find the closest ancestor whose id begins with "childrenTOC". I am invoking the function within the onclick handler of the element with class "toggleStrike". Previously, I was given this code $(this).parents("[EMAIL PROTECTED]"); but that seems to return an arrray of ele

[jQuery] Newbie Q: Slow steady loop in one direction only?

2007-03-05 Thread swortis
Hello there Can jCarousel be configured to slowly scroll the list in one direction only, in an endless loop? Thanks much, SWW -- View this message in context: http://www.nabble.com/Newbie-Q%3A-Slow-steady-loop-in-one-direction-only--tf3334750.html#a9273486 Sent from the jCarousel mailing list

Re: [jQuery] get class name

2007-03-05 Thread Aaron Heimlich
On 3/5/07, Glen Lipka <[EMAIL PROTECTED]> wrote: Also, wouldn't your example work without the IF? $("#myId).is("myClass").fadeOut(); or var theNode = $("#myId).is("myClass") Neither of those would work because is() returns true/false. [1] http://docs.jquery.com/DOM/Traversing#is.28_expr_

Re: [jQuery] Safari Crashing

2007-03-05 Thread Seb Duggan
Yes, fixes my problem too... Seb On 5 Mar 2007, at 17:42, Brad Perkins wrote: > John, > > Yes, installing the latest build fixes the problem. > > Thanks for the speedy reply and for such an awesome library! > > best, > > Brad Perkins ___ jQuery ma

Re: [jQuery] finding closest ancestor matching a pattern

2007-03-05 Thread John Resig
One simple addition: $(this).parents("[EMAIL PROTECTED]:first"); That'll give you the "closest" one. --John On 3/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to find the closest ancestor whose id begins with "childrenTOC". > I am invoking the function within the on

Re: [jQuery] How to access contents of frames/iframes with jQuery?

2007-03-05 Thread Daemach
I'm somewhat noobish, but perhaps you could use a selector with a context? $("#some div", #frameID)... Kynn Jones wrote: > > Hi again! > > (Second question in as many days... I guess I'm the overeager noob. :) ) > > Last night I watched John Resig's screencast "Hacking Digg with Firebug

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Brian Miller
Given that it would be Jack's call, I'd say no. Ext has a very Java-like OO design. It would be hard work to squeeze what he's doing into jQuery calling conventions. That doesn't rule out Jack surprising us and doing all that work anyway. But, that's not where I'd put my money if I were a betti

Re: [jQuery] jqUploader updated

2007-03-05 Thread Alexandre Plennevaux
HYPERLINK "http://www.pixeline.be/experiments/jqUploader/"http://www.pixeline.be/experiments/jqUploader/ _ From: Felix Geisendörfer [mailto:[EMAIL PROTECTED] Sent: lundi 5 mars 2007 18:50 To: [EMAIL PROTECTED]; jQuery Discussion. Subject: Re: [jQuery] jqUploader updated HYPERLINK "

Re: [jQuery] New Plugin: clickMenu

2007-03-05 Thread Roman Weich
agent2026 schrieb: > Just checked out the demo, but it looks good. Think clicking the top level > (item 1, item 2) should toggle the menu visibility, rather than having to > click off the menu to make it go away. You're right of course, haven't even thought of this. ;O I'll add this. Thanks! /rw

Re: [jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-05 Thread Jörn Zaefferer
amircx schrieb: > i tried hours to figure out what i did worng... i didnt find out how to do > it > is that possible? > ill be glad if you tell me how to do it > Take the parameters out of the submitHandler. Just look at the example where you copied it from. It should be something like this: $

Re: [jQuery] jqUploader updated

2007-03-05 Thread Sam Sherlock
guess its been changed. this works http://www.pixeline.be/test/jquery/jqUploader/ On 05/03/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote: http://www.pixeline.be/experiments/jqUploader/ -- *From:* Felix Geisendörfer [mailto:[EMAIL PROTECTED] *Sent:* lundi 5

Re: [jQuery] Safari Crashing

2007-03-05 Thread Seb Duggan
Is there any way you could re-release this as 1.1.3? The people who use jQuery are very likely to update their websites with any new point release, but maybe not with a re-release of the same version. I've already come across a number of sites (mostly demos of plugins) that crash Safari bec

Re: [jQuery] confirm link

2007-03-05 Thread James Thomas
You need to return false if you don't want something to happen. so if (confirm('whatever')) { do_whatever(); } else return false; smeranda wrote: > > When a user clicks a link and a form field currently has data, a > confirmation box appears. This is close to working, but if a user clicks > 'can

Re: [jQuery] Safari Crashing

2007-03-05 Thread John Resig
We (the dev team) talked it over and since we released the fix (and replaced 1.1.2 so quickly) we opted to leave it as 1.1.2 instead of bumping it up to 1.1.3. We had the fix in place within hours of the original blog post. It's a tricky line to balance. We either get to replace 1.1.2 and cause so

Re: [jQuery] confirm link

2007-03-05 Thread smeranda
Still no luck, this is what I have: $("a").click(function(){alertSave($(this).attr("href"));}); function alertSave(url) { var dataControl = $('#changedAppointments').attr("value"); if (dataControl.length > 0) { if (confirm("You have made changes to this date which

[jQuery] Help with ".each"

2007-03-05 Thread Yansky
I'm trying to insert a div after all < a > elements that don't link to my site. My script is currently working like this: var getLinks = $("a").not($("[EMAIL PROTECTED]")); for(i=0;iLorem Ipsum").insertAfter(getLinks[i]);} but I'm having trouble converting it all to jQuery using ".each": $("a")

Re: [jQuery] confirm link

2007-03-05 Thread Indigo
On Monday 05 March 2007 13:56, smeranda wrote: > Still no luck, this is what I have: > > $("a").click(function(){alertSave($(this).attr("href"));}); > > function alertSave(url) { > var dataControl = $('#changedAppointments').attr("value"); > if (dataControl.length > 0) { > if (confirm("You have

[jQuery] jcarousel issue

2007-03-05 Thread Indigo
I am trying to implement a jcarousel element on a page that is not yet public. The example I'm using is the one with dynamic content loading via ajax - http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html . My example_dynamic_ajax.txt file looks like this: http://www.liniverse.co

Re: [jQuery] Help with ".each"

2007-03-05 Thread Daemach
You might try: $("a").not($("[EMAIL PROTECTED]")).each(function() {$(this).after("Lorem Ipsum");}); Yansky wrote: > > I'm trying to insert a div after all < a > elements that don't link to my > site. My script is currently working like this: > > var getLinks = $("a").not($("[EMAIL PROTECTED

Re: [jQuery] Need some guidance...

2007-03-05 Thread Rick Faircloth
First question I have is about which type of validation I need: Ajax or non-Ajax? Here's my current jQuery code... I believe it would be classified as "Ajax", however, it doesn't mention "Ajax" anywhere, so I'm unsure... function CalculateMortgage(){ var Params = {}; // selec

Re: [jQuery] Help with ".each"

2007-03-05 Thread John Resig
I think something like this will get you your desired result: $("a:not([EMAIL PROTECTED])").after("Lorem Ipsum"); .after() inserts the HTML after each link, whereas .insertAfter() inserts the link after each block of HTML. (An important distinction.) More information can be found here: http://doc

Re: [jQuery] jcarousel issue

2007-03-05 Thread Marshall Salinger
Can you post some sample code? It sounds like the paths to your images is wrong. -Marshall -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Indigo Sent: Monday, March 05, 2007 12:23 PM To: discuss@jquery.com Subject: [jQuery] jcarousel issue I am trying

Re: [jQuery] jcarousel issue

2007-03-05 Thread Abel Tamayo
So your problem comes from using jCarousel or another plugin to get the lightbox effect? If it's jCarousel maybe the routes to each image is not included correctly. If the problem comes from using thickbox, for example, maybe the path to the images isn't being processed correctly for some incompat

Re: [jQuery] confirm link

2007-03-05 Thread James Thomas
Close ... try this: $("a").click(function(){return alertSave($(this).attr("href"));}); function alertSave(url) { var dataControl = $('#changedAppointments').attr("value"); if (dataControl.length > 0) { if (confirm("You have made changes to this date which have not

Re: [jQuery] New Plugin: clickMenu

2007-03-05 Thread Abel Tamayo
Looks good! On 3/5/07, Roman Weich <[EMAIL PROTECTED]> wrote: agent2026 schrieb: > Just checked out the demo, but it looks good. Think clicking the top level > (item 1, item 2) should toggle the menu visibility, rather than having to > click off the menu to make it go away. You're right of co

Re: [jQuery] confirm link

2007-03-05 Thread smeranda
That's perfect! Thanks James. James Thomas wrote: > > Close ... try this: > > $("a").click(function(){return alertSave($(this).attr("href"));}); > > function alertSave(url) { > var dataControl = $('#changedAppointments').attr("value"); > if (dataControl.length > 0) { >

Re: [jQuery] Conditional validation - validator plugin.

2007-03-05 Thread Jörn Zaefferer
Web Specialist schrieb: > Daemach, > > Wait for the next release for Jorn's Form Validation plugin. Could be > a conditional validation to help us, yeahhh Jorn??? ;-) That is already implemented, and will be available as soon as I release beta 1. And that should be the case in a few days at most.

Re: [jQuery] Help with ".each"

2007-03-05 Thread Yansky
Thanks Daemach & John. Both examples work fine. :) Just one last thing, I'm still a bit fuzzy on the difference between .after() and insertAfter(). I've gone through the documentation a number of times, but they still seem to do the same thing (albeit in reverse). > .after() inserts the HTML

Re: [jQuery] Bug when overriding links within specific context, using jQuery 1.1.*?

2007-03-05 Thread Søren Haagerup
John Resig wrote: > > I think this is due to the fact that no context is passed in to the > .load() callback, in that manner. I think doing something like this > would work: > [...] > That way, only the links directly within the paragraph will be overridden. > Great! Your solution seems to sol

Re: [jQuery] Safari Crashing

2007-03-05 Thread Nicolas Hoizey
> It's a tricky line to balance. We either get to replace 1.1.2 and > cause some possible confusion with Safari issues (for users who > upgraded very quickly) or push out 1.1.3 and cause more confusion > having two releases occur in just a couple hours. Where would be the confusion if the changelo

Re: [jQuery] Dynamically modifying the content of the carousel

2007-03-05 Thread phplord
I have been trying to modify the code of http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html ajax based jCarousel Your can see my modified version in http://pastebin.ca/382683 here There are some texts within spans like link 1 the aim is to moid

[jQuery] rewriting generic ajax jQuery style

2007-03-05 Thread Jim Wharton
Hi, I'm trying to change a bunch of handwritten Ajax stuff to use jQuery's methods. (I figure, if I'm already including the jquery.js file, I may as well use the heck out of it.) My current code sends a request to a php page and gets back an xml result I do the standard way of creating a reques

Re: [jQuery] New Plugin: clickMenu

2007-03-05 Thread Roman Weich
Abel Tamayo schrieb: > Looks good! > Thanks! I've just put out an update, adressing some problems and implementing Adams suggestion. /rw ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Help with ".each"

2007-03-05 Thread Daemach
>From the insertAfter docs: http://jquery.bassistance.de/api-browser/#insertAfterContent $("p").insertAfter("#foo"); (Same as $("#foo").after("p")) Instead of inserting content, such as your div tags, after the selected element, it inserts all of the matched elements after the given element,

Re: [jQuery] Need some guidance...

2007-03-05 Thread Christopher Jordan
Rick, You could use Ajax, but it might be simpler to use JavaScript validation. The jQuery validation plugin that Daemach pointed you to would be an example of that. I wrote a validation plug-in myself that I use for a client, and it works pretty well. I think the other plug-in is maybe more

Re: [jQuery] Need some guidance...

2007-03-05 Thread Jörn Zaefferer
Rick Faircloth schrieb: > Principal: Validate for entry / Validate that entry is numerical after $ , > . are all stripped from entry. > Interest: Validate for entry / Validate that entry is numerical > Years: Validate for entry / Validate that entry is numerical > > There are so many examples on

Re: [jQuery] Iterating over Arrays and $(this)

2007-03-05 Thread Daemach
Use the each function to apply the click handler to each element in the selector's array. $("p").each(function(){ click function goes here }); diddymao wrote: > > Hi all. I'm just starting out on JQuery and I've it hit a minor > confusion. I have the following HTML: > > > > > > > And

Re: [jQuery] jqModal r7 release!

2007-03-05 Thread Dmitry Rudakov
Brice, Could you help me? I regularly get an error in IE when my dialog (JQM) is showing: "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus." In Firefox and Safari everything works without problems. And IE works as well... but this

Re: [jQuery] rewriting generic ajax jQuery style

2007-03-05 Thread Jake McGraw
Jim, could you post a version of the XML data you'd expect? - jake On 3/5/07, Jim Wharton <[EMAIL PROTECTED]> wrote: Hi, I'm trying to change a bunch of handwritten Ajax stuff to use jQuery's methods. (I figure, if I'm already including the jquery.js file, I may as well use the heck out of it

[jQuery] How to find a div with a class ending with a string?

2007-03-05 Thread dalvarado
Hi, This mailing list has been great and helped me figure out how to find elements starting with a pattern ... $(this).find("[EMAIL PROTECTED]"); My question now is how to find elements ending with a pattern. Specifically, I'm trying to find all DIVs that are within "$(this)" whose class ends

[jQuery] Using datePicker as a calendar

2007-03-05 Thread Bruce McKenzie
Hello, I'd like to use the excellent datePicker plugin to make a bigger calendar that displays summary data from a database for each day in the month. I've got it working for the first month that displays, but I don't know how to display new data when the user clicks on the previous month or n

Re: [jQuery] jcarousel issue

2007-03-05 Thread Indigo
The code is exactly what you'll find by viewing the source at http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html . I only changed the image and ajax.txt file paths. If you, however, look at the content of example_dynamic_ajax.html, you'll find lines like these (pay attention to

  1   2   >