[jQuery] Re: Init datepicker in dynamically inserted input

2009-01-05 Thread Ca-Phun Ung
Hi, After inserting the clone to DOM you should apply datepicker to the DOM rather than the copy variable. Something like this: $('#newDraftLine').click(function(){ var row = $('#draft tr:last'); var copy = row.clone(); copy.insertAfter(row); $('#draft tr:last').find('.datepicker').attr('

[jQuery] Re: custom function call from document.ready

2009-01-05 Thread adeveloper
Rephrasing the question, which function executes last in jQuery plugins? Is that specified? If not, how can I find out which function is called last? So that I could call from their a simple alternate(tableID) method. On Jan 4, 2:50 am, adeveloper wrote: > I have replaced alternate with an al

[jQuery] Re: Combo box problem

2009-01-05 Thread Vijendra
Thanks mike... its working now... :) :) but i am unable to understand this line of code var id = x == 'hi' ? '#list' : '#list1'; can u explane me??? On Jan 5, 6:45 pm, Mike Alsup wrote: > > ya i know mike ... but i have to hide another list when you select > > next like if you select "hi" it

[jQuery] Re: Accessing items inside of (this)

2009-01-05 Thread EricC
Thank you, worked well.

[jQuery] Re: jquery Validate on page load

2009-01-05 Thread nate
I am using the jQuery validate plugin.

[jQuery] jquery Validate on page load

2009-01-05 Thread nate
Is it possible to validate a form that is populated with data from a database on page load before the user clicks on anything? thanks

[jQuery] Re: iterate over json

2009-01-05 Thread Michael Geary
That's an unusual JSON object. Does it really have to be structured that way, or do you have some choice about it? It's going to be pretty awkward to work with as it is. You can do it, but it involves a lot of code that wouldn't be necessary if the JSON object were structured in a more conventiona

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread Ricardo Tomasi
You're welcome, I'm glad I could help. Try $('ul.first a, ul.second a, ul.third a').click(function(){ cheers, - ricardo On Jan 6, 1:58 am, yvonney wrote: > I got 2 of the 3 menusections to work simply by duplicating the code 2 > more times and changing the ULs to second and third. The last one

[jQuery] Re: using a variable within .css()

2009-01-05 Thread xiaohouzi79
Hi Chris, It looks like you are placing the variable inside '' I think you are wanting to concatenate the value of the variable as such: var color1 = '255'; alert('My color is: ' + color1); // My color is: 255 The problem is it seems like you are doing it this way: var color1 = '255'; alert(

[jQuery] Re: jQuery is not working in Wordpress but ONLY for IE

2009-01-05 Thread Travis Tingey
It seems there was a rogue comma, although now Superfish menus are not dropping down over the Cycle banner.. It never ends with IE I guess.

[jQuery] Re: Media Plugin (malsup site) "REPLACE" code uses OLD metadata.js - ALSO: nothing works in IE6/IE7

2009-01-05 Thread yvonney
Hi MIKE I did my thorough testing and found that it's now working here on my windows virtual machine (ie6 and 7) and my linux localhost server. Turns out that the slight differences '.data' and '.metadata' between version 1 and version 2 of the metadata plugin I think it is... are reflecte

[jQuery] iterate over json

2009-01-05 Thread bob
How do I dynamically access json values? var myJSONObject = {"formValues": [ {'name': 'Frank'}, {'city': 'London'}, {'age': 25} ] }; The following gives me undefined. $.each(myJSONObject.formVals, function(i,item){ alert('i = ' + i + '

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread yvonney
I got 2 of the 3 menusections to work simply by duplicating the code 2 more times and changing the ULs to second and third. The last one (3rd section) only has one menu item in it and doesn't seem to change. I'll play with that. I kept all the additions in the same script of course. There may be

[jQuery] jQuery is not working in Wordpress but ONLY for IE

2009-01-05 Thread YeOleSquid
Hello everyone, I'm at my wits end with this one. I feel like I have over looked some mundane detail or improperly closed a tag but I can't figure this one out for the life of me. I have a site built from Wordpress 2.7 and use jQuery in a variety of ways (cycle plugin, superfish plugin and a sc

[jQuery] Re: Accessing items inside of (this)

2009-01-05 Thread Richard D. Worth
They're basically equivalent, though not quite identical. The first creates a jQuery object containing 'this' and calls the find method on it, finding elements that match the selector. The second searches for elements that match the selector, within a non-default context provided (the default conte

[jQuery] Re: Accessing items inside of (this)

2009-01-05 Thread MorningZ
Richard Is either of those those methods "recommended" over the other? I always wondered if those two are basically equivalent On Jan 5, 8:50 pm, "Richard D. Worth" wrote: > Either of these should work > > var selector = ".pNumber, .pCondition, .pPictureStrip, .pNotes, .pLocation"; > > $(th

[jQuery] Re: Accessing items inside of (this)

2009-01-05 Thread Richard D. Worth
Either of these should work var selector = ".pNumber, .pCondition, .pPictureStrip, .pNotes, .pLocation"; $(this).find(selector).hide(); $(selector, this).hide(); - Richard On Mon, Jan 5, 2009 at 7:22 PM, EricC wrote: > > I am not sure if I am going about this is the best way but I have a > d

[jQuery] Re: Declare a variable and use it with .css()

2009-01-05 Thread MorningZ
There's no reason why $('#menu li.parent').css({'border-right':'3px solid rgb(' + color1 + ', 0,0)'}) shouldn't work... realize that the values in ".css" are just strings so treat them as such, you can concat and piece together as need be On Jan 5, 7:55 pm, ctruett wrote: > Hey everyon

[jQuery] Re: Cycle 2.32 Height/Width bug? Caching?

2009-01-05 Thread Mike Alsup
> Awesome! > Not sure if that is documented, but it should be. > Thanks again for the great plugin. All the options are documented in the source file, although not very verbosely. Glad that fixed it for you. Mike

[jQuery] using a variable within .css()

2009-01-05 Thread ctruett
Hey everyone. I'm having some trouble with a menu system wip. I'm trying to declare a variable for a css property's value, and then be able to preform mathematical operations on that value for other objects. (Does that make sense?) For instance: var color1 = '255'; function() { //math to edit

[jQuery] Accessing items inside of (this)

2009-01-05 Thread EricC
I am not sure if I am going about this is the best way but I have a div with 8 divs inside of it. 2 always show and I would like the other 6 to come on only when the parent div is rolled over. Here is what I a have so far: $(function() { /* hide items to be shown only when hovered over */

[jQuery] Re: attaching hide() to delete confirmation

2009-01-05 Thread steve
thanks, Hector, your answer helped with what I'm trying to do now. On Nov 17 2008, 1:49 pm, "Hector Virgen" wrote: > If the link is within the row, you can use jQuery#parents to find the row, > without using the ID. > $('a.delete').click(function() > { >     $(this).parents('tr').hide(); > > });

[jQuery] Accessing items inside of (this)

2009-01-05 Thread EricC
I am not sure if I am going about this is the best way but I have a div with 8 divs inside of it. 2 always show and I would like the other 6 to come on only when the parent div is rolled over. Here is what I a have so far: $(function() { /* hide items to be shown only when hovered over */

[jQuery] Declare a variable and use it with .css()

2009-01-05 Thread ctruett
Hey everyone. I'm having some trouble with a menu system wip. I'm trying to declare a variable for a css property's value, and then be able to preform mathematical operations on that value for other objects. (Does that make sense?) For instance: var color1 = '255'; $('#menu li.parent').css({'b

[jQuery] ajax submit val() not submitting updated data

2009-01-05 Thread pedalpete
Hi all, I've been working with this page for a while, and I can't seem to figure out the problem (it's running locally as it is just a tool for me to try to fix up some data). Basically what I have is a page that looks at the user submitted data. The data is in a input box - but for simplicity i

[jQuery] Re: IE Problem

2009-01-05 Thread MorningZ
I'd suggest downloading and installing "Fiddler" (http:// www.fiddlertool.com) and seeing what the client side request looks like On Jan 5, 7:22 pm, jhm wrote: > The following code works in Firefox and Opera, but does nothing in IE. > The problem is the loading of the json file. Am I missing s

[jQuery] Re: How to bind ajaxForm & Vaildate via livequery on Form which was loaded via load() ??

2009-01-05 Thread dedian
Hi You can see the page here: http://www.trendcar.at/index.php Just click on "Preis berechnen" Then on one of the categories --> "Anfrage senden" The form will show up. After filling in the required fields, and click on "Anfage senden" you will see that the page reloads instead of doing a

[jQuery] IE Problem

2009-01-05 Thread jhm
The following code works in Firefox and Opera, but does nothing in IE. The problem is the loading of the json file. Am I missing something? $(document).ready(function() { alert('two'); $.getJSON('./files/v-winter.json', function(data){ alert('three'); $('tbody.schedule').e

[jQuery] Re: dialog drag problem with iframe

2009-01-05 Thread Richard D. Worth
On Mon, Jan 5, 2009 at 6:49 PM, Hamilton Lima (athanazio) < hamilton.l...@gmail.com> wrote: > > Thanks Richard ! > > I will open a ticket, and the issue is what I was suspecting. > lets see if its possible to let the inner iframe know that somebody is > already doing a drag =) I think we'll just

[jQuery] Re: dialog drag problem with iframe

2009-01-05 Thread Hamilton Lima (athanazio)
Thanks Richard ! I will open a ticket, and the issue is what I was suspecting. lets see if its possible to let the inner iframe know that somebody is already doing a drag =) cheers Hamilton On Jan 5, 6:08 pm, "Richard D. Worth" wrote: > On Mon, Jan 5, 2009 at 12:03 PM, Hamilton Lima (athanazi

[jQuery] Help Test jQuery 1.3 Beta 2

2009-01-05 Thread John Resig
Beta 2 is now out - and we need help testing it! More information here: http://blog.jquery.com/2009/01/05/help-test-jquery-13-beta-2/ --John

[jQuery] Re: Cycle 2.32 Height/Width bug? Caching?

2009-01-05 Thread Andrej
Awesome! Not sure if that is documented, but it should be. Thanks again for the great plugin. A. On Jan 5, 3:12 pm, Mike Alsup wrote: > > I just updated to 2.32 and the image container no longer gets a height/ > > width from the image size as it used to in older versions of Cycle. > > > When yo

[jQuery] Re: Cycle 2.32 Height/Width bug? Caching?

2009-01-05 Thread Mike Alsup
> I just updated to 2.32 and the image container no longer gets a height/ > width from the image size as it used to in older versions of Cycle. > > When you load this page: > > http://letterfive.com/as_Brushed_Monkey > > The size of the image container '#slideshow' from the css, is replaced > inli

[jQuery] XML in IE not reporting size or length correctly

2009-01-05 Thread maytr...@gmail.com
XML in IE not reporting size or length correctly var strTest = "123"; var $xmlTest = $((strTest), "xml"); var $xmlNode = $xmlTest.find("element"); var nCount = $xmlNode.length; var nSize = $xmlTest.size(); alert("Count: " + nCount + "\nSize: " + nSize);

[jQuery] Re: How to get parts of URL after domain

2009-01-05 Thread Cerebral
If you prefer to handle it with jQuery, you could also use the URL parser plugin: http://projects.allmarkedup.com/jquery_url_parser/ . Though, Michael solution is quite elegant.

[jQuery] Re: hyphen breaking "starts with" selector

2009-01-05 Thread Dave Methvin
Just a guess...does $('span[className^="err"]') work the way you expected? The Javascript property for class is className since "class" is a reserved word.

[jQuery] jquery hover() mystery

2009-01-05 Thread JJon
Dear all, I've got two images absolutely positioned via css to overlap. I'm trying to set a function that will show a caption for each image while the mouse hovers over the image. The following code works in safari and FF; however, if the images are given a title attribute, FF shows and hides the

[jQuery] Cycle 2.32 Height/Width bug? Caching?

2009-01-05 Thread Andrej
I just updated to 2.32 and the image container no longer gets a height/ width from the image size as it used to in older versions of Cycle. When you load this page: http://letterfive.com/as_Brushed_Monkey The size of the image container '#slideshow' from the css, is replaced inline by cycle to

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread Ariel Flesler
There're different ways: obj instanceof jQuery obj && obj.constructor == jQuery obj && obj.jquery And any other possible attribute sniffing, 'jquery' is obviously the safest. -- Ariel Flesler http://flesler.blogspot.com On Jan 5, 7:08 pm, Eric Garside wrote: > This sort of thing can happen a

[jQuery] Re: [validate] Attaching events to dynamically added fields

2009-01-05 Thread Rob
Thanks Brian, At the moment I'm using basically the simplest implementation of the plugin. I'm using inline rules, so I don't have to worry about the brackets yet. I do understand the event delegation, I had thought that calling $("#form").validate() again after inserting the elements would do

[jQuery] Re: Anyway to highlight words accents-insensitive?

2009-01-05 Thread Eric Garside
They're different letters, so you wouldn't be able to achieve this afaik unless you create a list of the possible options. So for that kind of task, without telling the computer differently, "Jose" is different from "José" in the same way "Cars" is different from "Card". The only two real option

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread yvonney
yes, that works...! And great to know the whyfore about the extra }); . cool! Ricardo... I am fine with leaving this subject now, and yet, while we are on this subject I am thinking about how you have thought this one through. Initially you posted two situations: 1st: where the videos are e

[jQuery] hyphen breaking "starts with" selector

2009-01-05 Thread Geuis
I'm wondering if this is a bug or if I'm missing something. The selector $('span[class^="err"]') matches but *not* . $('span[class^="err-"]') does *not* match or What's the deal with the hyphen? Is it a special character?

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread Andy Matthews
I am, but I'm using a function containing some jQuery code in conjunction with a few existing Dreamweaver methods. My code passes in a pure jQ object, whereas the jQuery code passes in a string. Inside the method I was going to text for which was which then take some additional action for the str

[jQuery] validation plugin: how to add custom messages for groups

2009-01-05 Thread claudes
i have a group that contains both first and last name. i'm wondering if it is possible to have custom messages for groups. i'm trying to achieve something to the following: a. if both first and last name are not filled in: First and Last name are Required b. if only first is filled in: last name

[jQuery] Proper way of binding/unbinding event in plug-ins

2009-01-05 Thread Eridius
Is the following syntax the proper way to bind and unbind event in plugin so that you minimize the chance you will unbind and event that you did not set? $(selector).bind('event.custom_tag', function); so if you take the following: $('#binding_test').bind('click.part1', function() { al

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread Eric Garside
This sort of thing can happen a lot if you're writing functions which take multiple inputs, based on convenience. Being "in control" of your code shouldn't be a fascist thing like you're describing, where there's only one way in which everything can or should happen. Having openness in parameters

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread yvonney
yes yes yes!!! thank you RICARDO um, so yes, I wasn't sure if the script was there or what... I guess my jsbin newbie status caused that. I DID view source after posting and saw no script there... Didn't know what to do, or what I did wrong at the time. I'm now going to have a thrilling ti

[jQuery] Re: Test if a variable is a jQuery object?

2009-01-05 Thread MorningZ
I'm trying to grasp the concept of need for this check What's a situation where you would wonder what it is? Are you not in control of your own code or something? On Jan 5, 3:53 pm, "Andy Matthews" wrote: > How can I test to see if something is a jQuery object, or a normal > JavaScript obj

[jQuery] Re: Dynamic form validation on different names possible?

2009-01-05 Thread dfiguero
Jörn thanks for all your help, I read some more of your comments on the plugin page and I finally solved my problem with the code below (just in case anyone runs into the same issue): $.validator.addMethod("start", function(value, element, param){ Date.format = 'mmm. dd, '; tod

[jQuery] Test if a variable is a jQuery object?

2009-01-05 Thread Andy Matthews
How can I test to see if something is a jQuery object, or a normal JavaScript object? andy

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread Ricardo Tomasi
The "extra })" at the bottom are the closing for $(document).ready (function(){ the ready() function waits until all the page structure is loaded before executing the scripts, it's needed if you're putting your code in the . (at jsbin.com the code is at the bottom of the as you can see, so it's

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread Ricardo Tomasi
I think Eric Hobo's piece is probably faster for any collection regardless of size, since it's essentialy just document.getElementById ('toto').childNodes On Jan 5, 2:02 pm, Will Anderson wrote: > I think comparing two strings would be faster than deciding whether a > string begins with another

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread Ricardo Tomasi
doesn't make any sense, there must be something else interfering with your code. BTW, you can make that way more readable: $(".showEvents").click(function(e) { var Calendar = $(this).parent().parent(), ID = Calendar.attr('id').substr(4), data = $('#data_+ID); if (data.l

[jQuery] Re: [validate] Attaching events to dynamically added fields

2009-01-05 Thread brian
On Mon, Jan 5, 2009 at 2:40 PM, Rob wrote: > > Hi Jörn or anyone else familiar with this plugin, > > First off, thanks for the great validation plugin. I hope I do not > impose too much with this question. > > I have a dynamic form with fields named using brackets ([]). See this note: http://doc

[jQuery] Re: dialog drag problem with iframe

2009-01-05 Thread Richard D. Worth
On Mon, Jan 5, 2009 at 12:03 PM, Hamilton Lima (athanazio) < hamilton.l...@gmail.com> wrote: > > hi, > > I´m trying to use an iframe inside a dialog div, and the behavior of > the dragging is making me, and the end user crazy =). > > When we drag in a vertical direction everything works fine, but

[jQuery] Re: Newbie question

2009-01-05 Thread Richard D. Worth
See http://docs.jquery.com/CSS Specifically http://docs.jquery.com/CSS/offset http://docs.jquery.com/CSS/position http://docs.jquery.com/CSS/scrollTop http://docs.jquery.com/CSS/scrollLeft - Richard On Mon, Jan 5, 2009 at 2:11 PM, saiful.ha...@gmail.com < saiful.ha...@gmail.com> wrote: > > hi

[jQuery] [autocomplete] Anyway to highlight words accents-insensitive?

2009-01-05 Thread Alex Tercete
Autocomplete plugin: http://docs.jquery.com/Plugins/Autocomplete As in the subject, I want to be able to highlight the words accents- insensitivily. Example: if I type "Jose", "José" would be highlighted and vice-versa ("José" would highlight "Jose"). Is there anyway to do it? I'm willing to make

[jQuery] SVN for SuperFish?

2009-01-05 Thread Mike Walsh
I have started using SuperFish for a new project and I'd like to create an external SVN reference to SuperFish for the project but I couldn't find a repository. Is there one? Thanks, Mike

[jQuery] Use mouseover when use a Draggable()

2009-01-05 Thread Alex Medeiros
Hi, I want use a mouseover and mouseout event when I Drag some object, but when I use drag in some object the mouse events in other object dont start. Exemple I have a table and its cells have a mouseover and mouseout to change your background. When I move the mouse curso on the cell mouseover an

[jQuery] [validate] Attaching events to dynamically added fields

2009-01-05 Thread Rob
Hi Jörn or anyone else familiar with this plugin, First off, thanks for the great validation plugin. I hope I do not impose too much with this question. I have a dynamic form with fields named using brackets ([]). Validation is working for fields that existed on the initial page load, but when

[jQuery] dialog drag problem with iframe

2009-01-05 Thread Hamilton Lima (athanazio)
hi, I´m trying to use an iframe inside a dialog div, and the behavior of the dragging is making me, and the end user crazy =). When we drag in a vertical direction everything works fine, but if the drag is vertical, for any reason the dragging stops and the cursor moves free inside the dialog, n

[jQuery] Newbie question

2009-01-05 Thread saiful.ha...@gmail.com
hi all, is jquery have function like findXY(element) or scroll position? sorry not finish read all document about jquery ~ saiful haqqi ~

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread Will Anderson
I think comparing two strings would be faster than deciding whether a string begins with another string. Also, doing one selection would almost always be faster than doing 3, so I'd say that the first piece of code from the OP would be faster. It should only require one loop through the DOM tree.

[jQuery] [validate] Attaching events to dynamically added fields

2009-01-05 Thread Rob
Hi Jörn or anyone else familiar with this plugin, First off, thanks for the great validation plugin. I hope I do not impose too much with this question. I have a dynamic form with fields named using brackets ([]). Validation is working for fields that existed on the initial page load, but when

[jQuery] Horizontal scrolling does not render correctly in IE or Safari

2009-01-05 Thread djai
I implemented a jquery effect to a design project at work. All looks great in Mozilla, but it renders horribly in IE. Does any of the jQuery guru know how this problem can be solved? Here's the link - http://www.carlsonschool.umn.edu/Page9350.aspx Please view in IE. Thanks! djai

[jQuery] Horizontal scrolling does not render correctly in IE or Safari

2009-01-05 Thread djai
I implemented a jquery effect to a design project at work. All looks great in Mozilla, but it renders horribly in IE and Safari. Does any of the jQuery guru know how this problem can be solved? Here's the link - http://www.carlsonschool.umn.edu/Page9350.aspx Please view in IE or Safari. Thanks!

[jQuery] Re: $(document).keydown only works in FireFox?

2009-01-05 Thread Dan G. Switzer, II
The enter key is only registered on a keypress event in IE and Webkit--so use keypress instead. -Dan On Mon, Jan 5, 2009 at 6:20 AM, s0h0 wrote: > > > Hello, > > i tried to use jQuery for cross browser compatibility...I want to execute a > click on a Button when Enter got pressed on page... > >

[jQuery] Re: row highlite in jquery

2009-01-05 Thread Karl Swedberg
Hi Vicky, You could try this: $('tr:has(td)') ... --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 5, 2009, at 7:17 AM, Vicky am wrote: Hello Billy, Thanks for the replying. I cannot change html whcih is to be inside . I cannot use as i get html fr

[jQuery] Re: how to get form data

2009-01-05 Thread Charlie Griefer
'name' is a valid attribute for the form tag. you can access a specific form on a page via document.forms['formName'] (pre-jQuery, of course) :) your point remains, however, an id attribute would indeed make referencing it easier ('#myFormID'). On Mon, Jan 5, 2009 at 11:18 AM, brian wrote: > >

[jQuery] Re: how to get form data

2009-01-05 Thread brian
It might help if you give your elements IDs and use those as selectors. I'm not even certain that the form tag can have a "name" attribute. On Mon, Jan 5, 2009 at 1:43 PM, bob wrote: > > Hi, > I would like to keep jQuery('fo...@name=myform1]') in variable so that > I can utilize it > later on. >

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread yvonney
Hi Ricardo... http://jsbin.com/ahuce Here's the jsbin attempt I did I made a simple basic example using latest code etc. clicking on the video links get :: This URL does not have any code saved to it. THOUGH clicking on either of the actual links gets nothing... I think I have learned a lo

[jQuery] new york city js & jquery tutor wanted for few months (paid)

2009-01-05 Thread claudes
I'm a front-end web developer specializing in css/html. I would like to boost my js knowledge asap. I'm looking for an advanced js/jquery person (who is also adamant! about web standards and accessibility) in New York City metro area that is willing to tutor me for a couple hours on a weekly or

[jQuery] Re: http://dev.jquery.com/view/trunk disappeared

2009-01-05 Thread Eduardo Lundgren
What was the problem Joern, svk was not synchronizing? On Mon, Jan 5, 2009 at 10:14 AM, Jörn Zaefferer < joern.zaeffe...@googlemail.com> wrote: > Fixed! Thanks for the notification. > > Jörn > > > On Mon, Jan 5, 2009 at 3:56 PM, Mafi Osori wrote: > >> >> In my project, I was linking to some of t

[jQuery] how to get form data

2009-01-05 Thread bob
Hi, I would like to keep jQuery('fo...@name=myform1]') in variable so that I can utilize it later on. var myForm = jQuery('fo...@name=myform1]'); Is there a way I can access checkbox state and check the size? The following does not work. It gives me 0 even when I some checkboxes are selected. a

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread yvonney
Great Ricardo! Couple of things to limit my possibility of making an error or needing to try/remember unnecessary variables: Q1: Does the doc type are at the top of the page matter much strict? transitional? xmlns line? Q2: Do I need an EXTRA }); at the bottom of the script just before

[jQuery] how to validate multipart form?

2009-01-05 Thread claudes
i'm using jcarousel lite plugin to house a multi part form. i generate the next and back buttons dynamically with this code: function create_navigation(){ if ($(ol).size() > 0) { // build links

[jQuery] How to create a shoutbox using PHP and AJAX with jQuery

2009-01-05 Thread AdrianMG
Hi there guys! It's me one more time... In this tutorial I try to show you how to create a shoutbox for your sites from scratch using PHP and AJAX (with jQuery). We will save all info in a mysql table, I hope you find it useful! http://yensdesign.com/2009/01/create-a-shoutbox-using-php-and-ajax-j

[jQuery] Re: http://dev.jquery.com/view/trunk disappeared

2009-01-05 Thread Jörn Zaefferer
Fixed! Thanks for the notification. Jörn On Mon, Jan 5, 2009 at 3:56 PM, Mafi Osori wrote: > > In my project, I was linking to some of the files under > http://dev.jquery.com/view/trunk, which has recently disappeared. > > So now I'm linking directly to a specific version under > http://dev.jqu

[jQuery] Re: Best way to Toggle

2009-01-05 Thread daweb
Oh God, it runs. Thank you!! On 5 Gen, 16:35, "Eric \"Hobo\" Garside" wrote: > Try: > > $(':checkbox').click(function(){ >     $(this).parents('fieldset').next('fieldset').slideToggle(); > > }); > > .parent() has a limited scope and will return only the "parent" > elements. In the example you g

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread Eric "Hobo" Garside
Yea, seeing how the parse does have to construct your list based on classes, it will probably be faster to give it a scope limiter as mentioned (like all .toto in "container"). The fastest possible way to build the list would be, I think, to make all of your toto divs live inside one container, th

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread Andy Matthews
How about copying and pasting the code in question. andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of revivedk Sent: Monday, January 05, 2009 11:06 AM To: jQuery (English) Subject: [jQuery] Re: $.click stops working after 2 clicks

[jQuery] Re: unset an array element? (returned via json)

2009-01-05 Thread Ricardo Tomasi
delete response.content['header']; On Jan 5, 12:06 am, yellow1912 wrote: > First I have to admit I haven't got a clear understand of js object, > array and associative array yet. > > I'm using jquery form to post a form, and I get back some data in json > form, which is an array containing sever

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread revivedk
Unfortunately, no. On 5 Jan., 17:57, Liam Potter wrote: > can we see a live example? > > revivedk wrote: > > Hi. > > I'm having a problem, where > > >    $(".showEvents").click(function(e) { > >            var CalendarID = $($(e.target).parent()).parent(); > >            if ( $('#data_'+CalendarI

[jQuery] Re: How to force a child page to open in iframe using jquery

2009-01-05 Thread Ricardo Tomasi
There is no way out! Actually, there is one: load the remote page via a proxy of your own, where you can parse it and remove the script... websites are not meant to be "captured" by others. On Jan 5, 6:39 am, AbhishEk wrote: > But , i have such a scenario in my website Sir. and i am not doing i

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-05 Thread Ricardo Tomasi
Hi yvonney, Try jsbin.com, it's very useful. You just paste your html/javascript in there and it can be edited and shared. For the HTML you posted, this would work: $('ul.first a').click(function(){ var n = this.id.substring(3); //get the numbers only $('#vid'+n).click(); // same as

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread Liam Potter
can we see a live example? revivedk wrote: Hi. I'm having a problem, where $(".showEvents").click(function(e) { var CalendarID = $($(e.target).parent()).parent(); if ( $('#data_'+CalendarID.attr('id').substr(4)).length > 0 ) { $(e

[jQuery] Re: Dateformat problem

2009-01-05 Thread Ca-Phun Ung
Try: $("#sd,#ed").datepicker({dateFormat: '-mm-dd'}); On Mon, Jan 5, 2009 at 1:10 PM, Praveen wrote: > > Hi all, > i have tried my best and googled like anything but could not get the > solution > when i use datepicker (all are in small letters) > > > function customRange(input) { >re

[jQuery] $.click stops working after 2 clicks

2009-01-05 Thread revivedk
Hi. I'm having a problem, where $(".showEvents").click(function(e) { var CalendarID = $($(e.target).parent()).parent(); if ( $('#data_'+CalendarID.attr('id').substr(4)).length > 0 ) { $(e.target).attr({src : "images/down.png"});

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread Christof Donat
Hi, > although i couldn't see one or the other or even the other being much > faster considering that the selector would have to go through all the > elements to see if *any* element on the page either (1) has the > specified class or (2) has the specified id There is document.getElementById() w

[jQuery] loading inbox using jquery imap combination

2009-01-05 Thread bharani kumar
Hello every one ,,, I have already asked about imap, but no reply may u people not understand my question, so sorry i again i ask that question now, I want to load the inbox mail using the imap and jquery combination ,, And another is, please refer some good example's links for php jquery -

[jQuery] Re: How to bind ajaxForm & Vaildate via livequery on Form which was loaded via load() ??

2009-01-05 Thread Jörn Zaefferer
I'd need to see a complete testpage for further debugging. Jörn On Mon, Jan 5, 2009 at 3:43 PM, dedian wrote: > > > Hi > > THX for ur fast reply. > > Tried to use the debug, like that: > > $("#detailform").livequery(function() { >$("#detailform").validate({ >

[jQuery] Re: How can I replace some text to another fragment? Wrappers don't support it

2009-01-05 Thread Joe
There is no "ReplaceTo" method in jQuery. You will need to create your own method. Appears some simple regex replace would work. Joe On Jan 5, 6:20 am, ranium wrote: > Hello. How can I replace some text to another fragment? For example, > if I want to highlight all words ‘the’ with red color,

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread Klaus Hartl
In any event, using the element's type together with a class selector will improve performance (otherwise every single element in the current context is checked for that class): $('div.toto').hide(); With a single element (or very few) using an id will probably be faster, but with 50+ elements,

[jQuery] Re: jQuery way

2009-01-05 Thread Ricardo Tomasi
>From the link you posted you have a library clash going on. Scriptaculous 1.5.1 conflicts with jQuery, even a basic ID query is not working correctly. prototype which is also included also seems to be broken. On Jan 5, 1:21 pm, Ricardo Tomasi wrote: > For some reason I was sure you were French!

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread MorningZ
And another way: $("div[id^='toto']").hide(); although i couldn't see one or the other or even the other being much faster considering that the selector would have to go through all the elements to see if *any* element on the page either (1) has the specified class or (2) has the specified id

[jQuery] Re: is accessing element by a class faster than accessing X element by ID

2009-01-05 Thread Christof Donat
Hi, > And try something like: > > var toto = []; > $('.toto').each(function(){ > var elem = $(this); > toto[elem.attr('ref')] = elem; > } > > Then, to hide the "toto" div with ref="1" or ref="2", just call: > > toto[1].hide(); toto[2].hide(); Why not use this: var toto = $('.toto'); tot

[jQuery] Re: Check both fields together with ajax

2009-01-05 Thread neo
Ok, cache cleared :-) But is there, it's not necessary for me since I can do it (as I wrote) using custom method attached to the second field which uses ajax and custom method connected with the first one which clears cache and fires validation of the second. But is there an automatic way of doin

[jQuery] Re: Best way to Toggle

2009-01-05 Thread Eric "Hobo" Garside
Try: $(':checkbox').click(function(){ $(this).parents('fieldset').next('fieldset').slideToggle(); }); .parent() has a limited scope and will return only the "parent" elements. In the example you gave, fieldset is not a parent of , but an "ancestor". .parents() with the "s" at the end will do

[jQuery] Re: Combo box problem

2009-01-05 Thread Nikola
I learned a lot from that bit of code, great example.

  1   2   >