[jQuery] Re: Unlock Documentation

2009-09-24 Thread Scott Haneda
Wow, I thought I was the only one. Has anyone looked at the form validation docs? I thought it was a wiki style though? No one can edit? -- Scott * If you contact me off list replace talklists@ with scott@ * On Sep 23, 2009, at 9:21 PM, rickoshay wrote: The documentation is going to

[jQuery] Disabling parent link if children present

2009-09-24 Thread osu
Hi, Is it possible to 'deactivate'/nullify a top-level link in an unordered list if child links exist in that list? For example, I have the following: - Link 1 - Link 2 - Link 3 - Link 4 - Link 4a - Link 4b - Link 4c - Link 5 And I want to knock out Link 4 because it has sub-items. Is

[jQuery] Re: fadeOut callback problem - is this a bug?

2009-09-24 Thread cerberos
On Sep 24, 12:47 pm, cerberos pe...@whywouldwe.com wrote: The contents of a fadeOut callback are supposed to be executed after the fadeOut has completed but there are problems when fading out multiple selectors (the alert is used to demonstrate). $(#foo, #bar).fadeOut( function(){

[jQuery] Re: ajax returned data format

2009-09-24 Thread Flo
Thanks for your answers. I'm pretty sure my ajax call is done, thanks to firebug (which is great by the way) and a few 'alert'. I suspected extra white space (I must try a javascript trim...) at the end of my string, I'll try JSON (must learn about it before). Great idea to return an array too,

[jQuery] Re: Get rid of long-running script dialog box ?

2009-09-24 Thread Smeext
Well, first I'd like to thank you for participating in this discussion. To answer Jonathan, you may be right, I am (or was ?) doing modular exponentiations with large numbers. I found out how to slightly improve efficiency, which means my script is a bit faster, a good thing for time-based

[jQuery] Re: Unlock Documentation

2009-09-24 Thread Jörn Zaefferer
As Karl mentioned, users registered for more then 24h can edit all pages, with just a few exceptions, like the wiki homepage and the About page. So, could you guys be a bit more specific with your critique of existing documentation? Jörn On Thu, Sep 24, 2009 at 7:57 AM, Scott Haneda

[jQuery] select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
hi, i have a group of check boxes, and i want to iterator over all the checked ones. i use the following code, but without luck. $(input[type=checkbox][checked=true]).each(function()...); can someone give a better solution? -- Best Regards, David Shen http://twitter.com/davidshen84/

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Sam Doyle
$(input[type=checkbox]:checked).each(function()...); On Thu, Sep 24, 2009 at 9:59 AM, Xi Shen davidshe...@googlemail.com wrote: hi, i have a group of check boxes, and i want to iterator over all the checked ones. i use the following code, but without luck.

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Jonathan Vanherpe (T T NV)
Xi Shen wrote: hi, i have a group of check boxes, and i want to iterator over all the checked ones. i use the following code, but without luck. $(input[type=checkbox][checked=true]).each(function()...); can someone give a better solution? [checked=checked] ? -- Jonathan Vanherpe -

[jQuery] Creating a new tag

2009-09-24 Thread Coxy
How do I create a new tag with jquery? I tried something like this: link = $('a').attr({ class : 'logoLink', target : '_blank', href: 'http://www.someurl.com/' }); And then appended it to another image, but this added every link

[jQuery] animate on page load

2009-09-24 Thread craigeves
Hi all Please can you help? I want to animate the width of the 'progress_bar' div when the page loads. I'm using the code below, which works fine in Firefox... but it doesn't want to work in IE6. Where am I going wrong? Many thanks in advance $(document).ready(function(){

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
tried, not working ;( On Thu, Sep 24, 2009 at 5:03 PM, Jonathan Vanherpe (T T NV) jonat...@tnt.be wrote: Xi Shen wrote: hi, i have a group of check boxes, and i want to iterator over all the checked ones. i use the following code, but without luck.

[jQuery] Re: Creating a new tag

2009-09-24 Thread Xi Shen
$('a') means selecting all the 'a' tag element and set their attribute. if you want to create an new element and add it to your page, try var newAtag = $(document.createElement(a)).attr(...); $(select the parent element).append(newAtag); On Thu, Sep 24, 2009 at 5:06 PM, Coxy

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Jonathan Vanherpe (T T NV)
tried Sam Doyle's response yet? It looks like that might be the proper way. $(input[type=checkbox]:checked).each(function(){}); Jonathan Xi Shen wrote: tried, not working ;( On Thu, Sep 24, 2009 at 5:03 PM, Jonathan Vanherpe (T T NV) jonat...@tnt.be wrote: Xi Shen wrote: hi, i have

[jQuery] Re: Creating a new tag

2009-09-24 Thread g...@iec
var link = $('a/a').attr(attribute_name,value); $(target_element).append(link); This will work. On Sep 24, 2:06 pm, Coxy stephenbung...@yahoo.de wrote: How do I create a new tag with jquery? I tried something like this: link = $('a').attr({                 class   : 'logoLink',          

[jQuery] Re: animate on page load

2009-09-24 Thread Giovanni Battista Lenoci
craigeves ha scritto: Where am I going wrong? $(document).ready(function(){ $(#progress_bar).animate({ width: 250px, }, 1500 ); }); You have an error in your syntax that firefox ignores, after the 250px you have a comma. Bye -- gianiaz.net - web solutions via

[jQuery] Re: Creating a new tag

2009-09-24 Thread Giovanni Battista Lenoci
Coxy ha scritto: How do I create a new tag with jquery? I tried something like this: link = $('a').attr({ class : 'logoLink', target : '_blank', href: 'http://www.someurl.com/' }); And then appended it to another image, but this

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread g...@iec
$('[type=checkbox]:checked').each(function(){}) This works. On Sep 24, 2:22 pm, Jonathan Vanherpe (T T NV) jonat...@tnt.be wrote: tried Sam Doyle's response yet? It looks like that might be the proper way. $(input[type=checkbox]:checked).each(function(){}); Jonathan Xi Shen wrote:

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
yes, Jonathan's method works. thanks a lot ;) On Thu, Sep 24, 2009 at 5:28 PM, g...@iec abhi.pur...@gmail.com wrote: $('[type=checkbox]:checked').each(function(){}) This works. On Sep 24, 2:22 pm, Jonathan Vanherpe (T T NV) jonat...@tnt.be wrote: tried Sam Doyle's response yet? It

[jQuery] Re: Creating a tabbed UI

2009-09-24 Thread Richard D. Worth
On Wed, Sep 23, 2009 at 7:04 PM, Mike Alsup mal...@gmail.com wrote: Can someone post a simple example of creating a tabbed UI with JQUERY? For fully styled tabs you could use jQuery UI: http://docs.jquery.com/UI/Tabs Demos and download links here: http://jqueryui.com/demos/tabs/ -

[jQuery] Re: JQuery ui dialog issue

2009-09-24 Thread Richard D. Worth
On Wed, Sep 23, 2009 at 9:08 AM, g...@iec abhi.pur...@gmail.com wrote: Hi all, I have an issue. I am showing modal loading dialog while making ajax call. My dialog config is shown below : $('#loadingSearch').dialog({ autoOpen: false, modal:

[jQuery] Re: Single page application and jQuery

2009-09-24 Thread Phaedra
I've some news. The nightly of jquery is not changed in this part (.html()) In the trunk, some changes are done by resig, that resolve the problem for the .html method, using innerhtml. So, the clock example is now not leaking at all. But the .remove methond continue with this:

Unnecessary comments (was: Re: [jQuery] Re: jQuery(window).width() not registering sizes lower than 497 in Firefox.)

2009-09-24 Thread Bertilo Wennergren
Sam Doyle wrote: I just ran this: script type=text/javascript !-- $('body').css('width','100px'); $('body').append('br /'+$('body').width()); -- /script [...] Those fake HTML comment lines (!--, --) are completely superfluous. They haven't been needed for about 10 years or

[jQuery] document.body is null or not an object

2009-09-24 Thread mshaver
There is a ticket with JQuery,Ticket #5032, which describes a problem where JQuery fails during start-up with the message document.body is null or not an object. So far the bug is only reproducable in IE6. It seems that a fix is not imminent for this issue, so I may need to patch JQuery. I am

[jQuery] Want the submitted data from page loaded in iframe in parent page.

2009-09-24 Thread Nils
Hi all, I am relatively starter in php, javascript jquery. I have a web page that loads a signup page from other site. What i want to do is get the signup information entered by user in the page inside iframe on my current page so that i can store the data in my db. The signup form that

[jQuery] Re: Tablesorter is not sorting numbers correct

2009-09-24 Thread Fons
Ok thanks for that advise, the link is broken on that website, but found an updated version on http://plugins.jquery.com/project/metadata Works like a charm now! thanks a lot /Fons On Sep 22, 10:23 pm, jlcox jl...@goodyear.com wrote: You'll need to include the metadata plugin if you want to

[jQuery] Jquery and Pop up blockers

2009-09-24 Thread SEMMatt2
Does Jquery perform better or worse than other Java library with regard to not triggering pop up blockers? Thank you.

[jQuery] Re: Want the submitted data from page loaded in iframe in parent page.

2009-09-24 Thread Xi Shen
so where is your js reside? in the iframe or out side? i think the best way is put your js in the iframe, so your parent frame does not need to operate your iframe at all. On Thu, Sep 24, 2009 at 12:44 PM, Nils nils.niran...@gmail.com wrote: Hi all,         I am relatively starter in php,

[jQuery] .click() fires my callback more than once

2009-09-24 Thread Fabdrol
Hi guys, I'm facing this little problem, I've got a button toolbar, and users can select rows in a table. When they have selected some row's, they can click one of the buttons, and it invokes a callback. Problem is, when I click the first time, there's nothing wrong. But when I click the second

[jQuery] [blockUI] IE: Cursor still displays hourglass symbol after unblocking

2009-09-24 Thread Franz Buchinger
I encountered a possible blockUI bug in IE7 and IE8: If you block the ui and don't move your mouse after that, the cursor displays the hourglass symbol UNTIL you move your mouse again. Thus, the .unblock() method doesn't have the desired effect on the mouse cursor. You can easily reproduce the

[jQuery] Each function gives errors in IE6

2009-09-24 Thread Shane Riley
I've got a simple each function that finds every subnav and assigns it a vertical position equal to half of the subnav's height. This works great in all modern browsers, but in IE6 I get errors from each of the two lines within the function. Here's the problem function:

[jQuery] Each function gives errors in IE6

2009-09-24 Thread Shane Riley
I've got a simple each function that finds every subnav and assigns it a vertical position equal to half of the subnav's height. This works great in all modern browsers, but in IE6 I get errors from each of the two lines within the function. Here's the problem function:

[jQuery] Re: Each function gives errors in IE6

2009-09-24 Thread Shane Riley
Weird double post. Found the issue. For some reason declaring the variable worked. So I changed it to: var top = (parseInt($(this).height()) / 2) - 6; On Sep 24, 7:31 am, Shane Riley shanerileydoti...@gmail.com wrote: I've got a simple each function that finds every subnav and assigns it a

[jQuery] jQuery crashing the page

2009-09-24 Thread Sam Doyle
I've got 2 pages: a current events page and a past events page the current events page loads fine as there is only about 10 events the past events page takes about 30 seconds to load and will crash if u click your mouse in the loading time The pages are near identical the only difference is

[jQuery] Re: Parse encoded HTML in XML content node

2009-09-24 Thread Fabdrol
Hi Jeff, Could you post your JS code and your XML? I'd like to play around with it for you, but things aren't really clear right now ;-) Fabian On 23 sep, 21:36, Jeff jpellet...@nesn.com wrote: Hi, I'm using $.ajax with a dataType of xml.  The XML document I'm getting has a content node

[jQuery] validate date regexp

2009-09-24 Thread adexcube
Hi, I'm using the jQuery validation plugin + masked Input 1.2.2 and both works very well. I'd like to add a validation function for dates with the format dd/mm/ I took the regexp from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ specifically from Marco Antonio's post but

[jQuery] Re: Each function gives errors in IE6

2009-09-24 Thread Nick Fitzsimons
2009/9/24 Shane Riley shanerileydoti...@gmail.com: Weird double post. Found the issue. For some reason declaring the variable worked. So I changed it to: var  top = (parseInt($(this).height()) / 2) - 6; That's because top is already defined as a synonym for the top-level window object, and

[jQuery] Find top-level elements

2009-09-24 Thread Grimace of Despair
Working on WinXP in FireFox 3.0.14 with JQuery 1.3.2, I'm trying the following code: $.ajax({ url: http://foo.bar/document; data: 'r=' + Math.random(), success: function(value) { var body = $(value).find('body'); // Always empty var form = $(value).find('form'); // Always empty

[jQuery] Refresh only a section of the page

2009-09-24 Thread Macovei Catalin
Hello, i am trying to use ajax for my site and i have a problem. I have a live radio running on my home page and the rest, and i want to navigate through the website without having to make the buffering again. I've searched multiple forums but no solutions. Can you help me?

[jQuery] Re: fadeOut callback problem - is this a bug?

2009-09-24 Thread Mike McNally
Are you forgetting that fadeOut takes *two* parameters? The first should be the speed of the effect, and the second is your callback function. On Thu, Sep 24, 2009 at 12:47 AM, cerberos pe...@whywouldwe.com wrote: The contents of a fadeOut callback are supposed to be executed after the

[jQuery] Re: Jquery and Pop up blockers

2009-09-24 Thread Mike McNally
If you're not popping up new browser windows then you shouldn't have to worry about popup blockers, and it has nothing to do with what Javascript library you're using. On Wed, Sep 23, 2009 at 8:40 PM, SEMMatt2 mattluk...@gmail.com wrote: Does Jquery perform better or worse than other Java

[jQuery] complicated form with 'child objects'

2009-09-24 Thread csetzkorn
Hi, I try to implement a form for an item that can have several ‘child objects’ - addresses (let us say with 3 strings: postcode, country, city to keep things simple). The addresses will be send as a stringified JSON array together with the remaining form elements to the server (using the forms

[jQuery] Re: .click() fires my callback more than once

2009-09-24 Thread Liam Potter
probably because you have click handlers inside the confirmAction function, which is run on click itself. Fabdrol wrote: Hi guys, I'm facing this little problem, I've got a button toolbar, and users can select rows in a table. When they have selected some row's, they can click one of the

[jQuery] Re: jQuery in loaded content doesn't work

2009-09-24 Thread mstone42
Thanks, Chris! I'll give livequery a try.

[jQuery] Re: jQuery in loaded content doesn't work

2009-09-24 Thread Dave Maharaj :: WidePixels.com
I ran into the same thing. I have the apple style slider that is on a page that gets loaded into a div as content. And it no longer works. I would be interested in following this post to see if any headway is made in this particular topic. Dave -Original Message- From: mstone42

[jQuery] XHTML or HTML when creating elements?

2009-09-24 Thread Bertilo Wennergren
According to the jQuery documentation we're supposed to write like this: $(span/) and not like this: $(span) http://docs.jquery.com/Core/jQuery#htmlownerDocument That means using XHTML style code for the elements created. Are we supposed to do that even when we are using HTML style

[jQuery] Deactivating parent link with JQuery

2009-09-24 Thread osu
I wrote this message earlier, but it got unpublished for some reason...? Is there a way of 'knocking out' i.e. removing the link from a parent item in a list of links IF it has children links? For example, 'deactivate' Link 3 only: - Link 1 - Link 2 - Link 3 - Link 3a - Link 3b - Link 3c -

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread Andi23
First of all, let's clarify the actual HTML. I assume this is what you have: ul lia href=#Link 1/a/li lia href=#Link 2/a/li lia href=#Link 3/a ul lia href=#Link 3a/a/li lia href=#Link 3b/a/li lia href=#Link 3c/a/li /ul /li

[jQuery] Re: Way to convert DOM event to jQuery event?

2009-09-24 Thread Kevin Dalman
If you need data for multiple fields, then a 3rd option is to create a single hash/data object for the page and writing all your data into that. This makes your data easy to read and debug, and is highly efficient because you don't have to 'parse' anything... var Record = { foo: db-value-1

[jQuery] Load quicktime as needed

2009-09-24 Thread RealMason
I'm a total jquery newbie and I'm just trying to find out if something is possible. If I have a full album worth of songs that I want to list on a web page, can I use jquery to only embed the quicktime file after the user clicks on a play button for that track. Similar to Amazon's or iTunes

[jQuery] jQuery plugin help

2009-09-24 Thread Nalum
Hello All, I'm trying to create a plugin that I want to be able to call like $.pluginname(...) where currently I have to call the plugin like this $ (...).pluginname. Any help would be greatly appreciated. Nalum

[jQuery] append and selector problem;

2009-09-24 Thread dattu
Hi, I am facing one problem In jquery. For easy understanding, below html code created. Before clicking on CHANGE label if click on 12345, I am getting hiii alert message. After clicking on CHANGE I am not getting alert message.(I am experting hii should come on click of 67890 also).

[jQuery] (treeview)

2009-09-24 Thread Michiel
I'm very new a jQuery, and still just learning. I've succesfully implented the treeview plugin on my html list. Only, I don't want it to collapse when I click on a expanded folder. I do want it to collapse when I click on a other folder that's not a child. So that you only have one branch

[jQuery] (autocomplete)

2009-09-24 Thread Ordos
I am using the jQuery plugin autocomplete on an country input field: I got this php array with countries in dutch: $global_countries = array(); $global_countries['AF'] = 'Afghanistan'; $global_countries['AX'] = 'Ålandseilanden'; $global_countries['AL'] = 'Albanië'; ... Then php implodes the

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-24 Thread Richard D. Worth
I won't speak to the jQuery documentation, nor jQuery's internal implementation for $(html), only your questions about HTML and XHTML, based on my own knowledge and best practices: *Non-void elements (sometimes called non-empty elements, meaning they can contain text and child nodes)* For an

[jQuery] Re: Disabling parent link if children present

2009-09-24 Thread Giovanni Battista Lenoci
osu ha scritto: - Link 1 - Link 2 - Link 3 - Link 4 - Link 4a - Link 4b - Link 4c - Link 5 I suppose you have a similar markup: ul id=mymenu lia href=http://www.jquery.com;Jquery/ali lia href=#Search Engines/a ul lia href=http://www.google.com;Google/a/li lia

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread osu
Thanks Andi, Yes, I meant an unordered list as you showed. Rather than remove the a tag, is it possible to just 'deactivate' it? i.e. when you click it, nothing happens, but the a tag stays in place? I ask, because I'd like to keep the CSS as simple as possible. Thanks, osu On Sep 24, 6:05 

[jQuery] Changing a class name without clicking

2009-09-24 Thread Lleoun
Hi all, I have the following: div class=unselected content/div I want to change unselected into selected when calling a function. The ways I'm finding to do a class name change is using a clicking: $('.unselected').click(function(){ $('.selected').attr('class','unselected');

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-24 Thread Bertilo Wennergren
Richard D. Worth wrote: I won't speak to the jQuery documentation, nor jQuery's internal implementation for $(html), only your questions about HTML and XHTML, based on my own knowledge and best practices: [...] Thanks! So if I understand your points, the following examples can be called

[jQuery] Re: Changing a class name without clicking

2009-09-24 Thread Jon Banner
you'll need an event to attach your function call to, whether that's document ready or click or... you might also find toggleClass http://docs.jquery.com/Attributesto be useful here Jon 2009/9/24 Lleoun adoming...@vivocom.es Hi all, I have the following: div class=unselected

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-24 Thread Richard D. Worth
Best practice, valid HTML, and compatible with XHTML would be $('#whatever').html('div/div'); $('#whatever').html('br /'); $('#whatever').html('img alt= src=... /'); - Richard On Thu, Sep 24, 2009 at 12:33 PM, Bertilo Wennergren berti...@gmail.comwrote: Richard D. Worth wrote: I won't

[jQuery] Re: How can i add Buttons?

2009-09-24 Thread Jon Banner
jCarousel ?? did you try this? http://sorgalla.com/projects/jcarousel/examples/static_controls.html 2009/9/21 Pesimist pckopat.fene...@gmail.com hello everyone. i have a problem. i wanna add left and right buttons but i couldn't i have tried long time so really i need. i am looking for

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-24 Thread Bertilo Wennergren
Richard D. Worth wrote: Best practice, valid HTML, and compatible with XHTML would be $('#whatever').html('div/div'); $('#whatever').html('br /'); $('#whatever').html('img alt= src=... /'); Well, not quite valid HTML... If you use br / in an HTML 4.01 page, the validator at w3.org gives a

[jQuery] Re: Way to convert DOM event to jQuery event?

2009-09-24 Thread Brett Ritter
On Thu, Sep 24, 2009 at 12:10 PM, Kevin Dalman kevin.dal...@gmail.com wrote: If you need data for multiple fields, then a 3rd option is to create a single hash/data object for the page and writing all your data into that. This makes your data easy to read and debug, and is highly efficient

[jQuery] Re: Changing a class name without clicking

2009-09-24 Thread Lleoun
Thanks for answering Jon. I'm a newbie I'm afraid .. so you mean something like this: $('.unselected').ready(function(){ $('.selected').attr('class','unselected'); $(this).attr('class','selected'); }); Thanks again

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread Andi23
In that case, you can just remove the href attribute of the link(s): $(li ul).siblings(a).removeAttr(href); or, if you want to leave in the href attribute for future use?, you can do this: $(li ul).siblings(a).click(function(){ return false; }); good luck-

[jQuery] Re: Changing a class name without clicking

2009-09-24 Thread Andi23
Hi there, You say you want to do this by calling a function, not by clicking. But let me ask you something: How are you going to call the function? In other words, when do you want this class change to happen? Do you want it to happen as soon as the page loads? Do you want it to happen 10

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-24 Thread Richard D. Worth
On Thu, Sep 24, 2009 at 12:53 PM, Bertilo Wennergren berti...@gmail.comwrote: Richard D. Worth wrote: Best practice, valid HTML, and compatible with XHTML would be $('#whatever').html('div/div'); $('#whatever').html('br /'); $('#whatever').html('img alt= src=... /'); Well, not quite

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-24 Thread Bertilo Wennergren
Richard D. Worth wrote: On Thu, Sep 24, 2009 at 12:53 PM, Bertilo Wennergren berti...@gmail.comwrote: Richard D. Worth wrote: Best practice, valid HTML, and compatible with XHTML would be $('#whatever').html('div/div'); $('#whatever').html('br /'); $('#whatever').html('img alt= src=...

[jQuery] Re: Execute jQuery from links

2009-09-24 Thread Andi23
That should work in theory, but your structure is wrong. If you do something like this: a href=# onclick=$(this).text('yes');Will this work?/a you will see that it works when you click it. The javascript: protocol is not necessary, but it won't break anything if you leave it in.

[jQuery] Trouble with backgroundPosition Plugin

2009-09-24 Thread rob
Having some trouble with this plugin. I've tried in both IE8 and FF3, but it doesn't seem to work. Basically the background position isn't moving... the function toArray(strg) is suppose to return the following return [parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]]; this is

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread osu
That's perfect, thanks for that - the second example works a treat. osu On Sep 24, 7:10 pm, Andi23 dowhatyouw...@gmail.com wrote: In that case, you can just remove the href attribute of the link(s): $(li ul).siblings(a).removeAttr(href); or, if you want to leave in the href attribute for

[jQuery] Re: IE: Cursor still displays hourglass symbol after unblocking

2009-09-24 Thread elubin
Yes, same problem I posted yesterday... funny we both hit it this week. hopefully someone can help?? I know the author of blockUI says he monitors this forum...

[jQuery] Multiple Links, Find which one was clicked?

2009-09-24 Thread Steven
I have a table that looks something like this: tr id=1 tdName/td tdE-Mail/td tda href=# class=acceptAccept/a - a href=# class=denyDeny/a/td /tr With multiple rows. Each row has a unique ID (numerical). I need to be able to click on an a.accept, find WHICH one was clicked (which

[jQuery] Re: XHTML or HTML when creating elements?

2009-09-24 Thread Richard D. Worth
On Thu, Sep 24, 2009 at 1:36 PM, Bertilo Wennergren berti...@gmail.comwrote: The question about br / arose when I was demonstrating how the same inline JS example is supposed to look like in HTML and in XHTML. When I was changing one version from it's XHTML incarnation into an HTML

[jQuery] Re: Multiple Links, Find which one was clicked?

2009-09-24 Thread Charlie Griefer
$('a.accept').click(function() { alert($(this).closest('tr').attr('id')); }); On Thu, Sep 24, 2009 at 11:22 AM, Steven html...@gmail.com wrote: I have a table that looks something like this: tr id=1 tdName/td tdE-Mail/td tda href=# class=acceptAccept/a - a href=#

[jQuery] $(':target') and $(location.hash)

2009-09-24 Thread Jack Bates
$(':target') works in Firefox 3.5, but not Firefox 3.0 and some other browsers, http://www.sfu.ca/~jdbates/tmp/qubit/200909231/#aaa ^ in Firefox 3.5, $(':target') selects just the element with id=aaa, so this element appears blue while the other appears red In Firefox 3.0 and some other

[jQuery] Re: Multiple Links, Find which one was clicked?

2009-09-24 Thread Steven
I cannot seem to get that to work, although it does make sense. I'm using Ajax to load the tables in; I don't know if that is the cause. I did try it on a static page and it still did nothing though. On Sep 24, 12:36 pm, Charlie Griefer charlie.grie...@gmail.com wrote:

[jQuery] Re: Multiple Links, Find which one was clicked?

2009-09-24 Thread Charlie Griefer
Steven: It seems to be working here (quick sample thrown together): http://charlie.griefer.com/getRowID.html ? On Thu, Sep 24, 2009 at 11:55 AM, Steven html...@gmail.com wrote: I cannot seem to get that to work, although it does make sense. I'm using Ajax to load the tables in; I don't

[jQuery] Re: $(':target') and $(location.hash)

2009-09-24 Thread John Resig
jQuery does not support :target. The only reason why it works in Firefox 3.5 is that it provides a native querySelectorAll method. We would have to have an implementation that works in other browser (FF 3.0, IE 8, etc.) and we don't have that right now. You're welcome to file a ticket asking for

[jQuery] Re: Multiple Links, Find which one was clicked?

2009-09-24 Thread Steven
I was running on 1.2 for some reason. :( Anyway, it works perfectly on static pages, but when I load the table in via Ajax none of the links are bound. I'm doing: // Click events to load requests $('#pending').click(function(){

[jQuery] Re: Multiple Links, Find which one was clicked?

2009-09-24 Thread Charlie Griefer
Ah, yeah. I should have checked to see if you were on 1.3. Assuming you can move up to 1.3, you can use the live() method (now built-in). I think you'd be able to get by changing your first line to: $('#pending').live('click', function({ On Thu, Sep 24, 2009 at 12:05 PM, Steven

[jQuery] Using addClass to Highlight Errors

2009-09-24 Thread s.ross
I have what I'm certain amounts to a CSS misunderstanding on my part. Here's the reduced problem: CSS input[type='text'], textarea { background-color: #2c2c2c; color: white; } .warning { background-color: #851728; } .error { background-color: #8D580F; } HTML body input

[jQuery] Re: Multiple Links, Find which one was clicked?

2009-09-24 Thread Steven
Awesome, I've never heard of or used live() before. Seems handy! Thanks! On Sep 24, 1:07 pm, Charlie Griefer charlie.grie...@gmail.com wrote: Ah, yeah.  I should have checked to see if you were on 1.3. Assuming you can move up to 1.3, you can use the live() method (now built-in). I think

[jQuery] Re: Deactivating parent link with JQuery

2009-09-24 Thread osu
Ok, I have another question that's related to the first. I need to highlight *only* the top-parent item (the same one I just ran 'return false;' on) with the class 'nav-selected'. This is the code that's being generated by the CMS I'm working with when I click on Link 3a: ul li

[jQuery] Re: Using addClass to Highlight Errors

2009-09-24 Thread Bertilo Wennergren
s.ross wrote: I have what I'm certain amounts to a CSS misunderstanding on my part. Here's the reduced problem: CSS input[type='text'], textarea { background-color: #2c2c2c; color: white; } .warning { background-color: #851728; } .error { background-color: #8D580F; } HTML body

[jQuery] Re: Using addClass to Highlight Errors

2009-09-24 Thread s.ross
On Sep 24, 12:26 pm, Bertilo Wennergren berti...@gmail.com wrote: s.ross wrote: I have what I'm certain amounts to a CSS misunderstanding on my part. Here's the reduced problem: CSS input[type='text'], textarea {   background-color: #2c2c2c;   color: white; } .warning {  

[jQuery] Re: IE: Cursor still displays hourglass symbol after unblocking

2009-09-24 Thread Mike Alsup
Yes, same problem I posted yesterday... funny we both hit it this week.   hopefully someone can help??  I know the author of blockUI says he monitors this forum... Will take a look at this tonight. Thanks for the reminder. Mike

[jQuery] Add content

2009-09-24 Thread a1anm
Hi, I have an unordered list and I would like to use Jquery to add some li's to it. How do I do this? Thanks!

[jQuery] Re: Add content

2009-09-24 Thread Charlie Griefer
On Thu, Sep 24, 2009 at 2:03 PM, a1anm alanmoor...@gmail.com wrote: Hi, I have an unordered list and I would like to use Jquery to add some li's to it. How do I do this? Thanks! http://docs.jquery.com/Manipulation/append -- Charlie Griefer http://charlie.griefer.com/ I have failed

[jQuery] Auto close dialog after 5 seconds ?

2009-09-24 Thread spstieng
Hi. I'm using jQuery.dialog and I'm wondering if it's possible to auto close it after e.g. 5 seconds.

[jQuery] tab load and dequeue

2009-09-24 Thread richajax
Hi guys, I am relatively new to jquery and using jquery tab to one of the page. The tab contains 3 tab, and each tab contains pretty heavy dom instead. When I toggle the tab, I noticed about a 2 second delay, and wondered why there is such a delay. so.. run the profiler in the IE developer

[jQuery] Re: Auto close dialog after 5 seconds ?

2009-09-24 Thread Charlie
within the event that opens the dialog you could include a timeout for close : setTimeout($('dialog').dialog("close"),5000); spstieng wrote: Hi. I'm using jQuery.dialog and I'm wondering if it's possible to auto close it after e.g. 5 seconds.

[jQuery] Re: Unlock Documentation

2009-09-24 Thread Scott Haneda
Sure. I am totally new to jQ, so probably a food candidate to answer some of these. http://docs.jquery.com/Plugins/Validation/validate That through me for a loop, is this an internal feature built into jQ, or something I need to reference as a plugin? I can not find an official answer

[jQuery] creating parameters dynamically

2009-09-24 Thread macsig
I know this is not strictly related to jquery but I don't know how to make it works. I'm working on a function that has as variable an array and for each element I need to create a piece of code for an other function. For instance when the array contains [0,1,2] I need to call

[jQuery] Re: Jquery and Pop up blockers

2009-09-24 Thread SEMMatt2
What do they call those windows that open up without any browser controls? Thanks On Sep 24, 8:33 am, Mike McNally emmecin...@gmail.com wrote: If you're not popping up new browser windows then you shouldn't have to worry about popup blockers, and it has nothing to do with what Javascript

[jQuery] ultimate submenu(please help me)

2009-09-24 Thread hamed7
hi i want create ultimate submenu and support multilevel for example like this: -- 1: 1-1 2: 2-1 2-2-1 2-3-1-1 2-3-2-1 2-4-1-1-1 2-5-1-1 3: 3-1-1-1 4 --- i need some idea or some sourcecode(ajax sourcecode is better than none ajax) *please help me this is important for me very

[jQuery] Prev and next navigation

2009-09-24 Thread Anush Shetty
I am trying to a setup a jquery based navigation for my photo gallery i.e something like facebook using hash url technique. I am using php and mysql in the backend. Is there any example I could look at for implementing it. The reason for using hash urls is that I would like to have an unique url

[jQuery] Re: ultimate submenu(please help me)

2009-09-24 Thread Shawn
Superfish doesn't do the trick? http://users.tpg.com.au/j_birch/plugins/superfish/#examples They show the JS code to make that work. View Source on the page and you find the menus are just lists (ul's). So if you need more complex, just build the nested lists as needed. If you need

[jQuery] Re: Validate Text Field onblur (Bassistance Validation Plugin)

2009-09-24 Thread Loony2nz
do you have an example of this somehwere? I think I could use this for upcoming forms I have in my pipeline. Thanks! On Sep 1, 10:33 am, Dave Buchholz - I-CRE8 off...@i-cre8.com wrote: Got it, this code onfocusout: function(element) { this.element (element); }, gives me what I am looking for

  1   2   >