[jQuery] How to know if a string is simply text or a good jQuery expression?

2010-07-09 Thread Luca
Hi all. I need some suggestion for performing this task: a user using a function common provide to the function a string, however sometimes he must be able to provide a jQuery selector expression and I need to perform different action is this case. How can I do this? -- -- luca

Re: [jQuery] How to add a button

2010-03-03 Thread Cesar Sanz
what??? - Original Message - From: "podeig" To: "jQuery (English)" Sent: Wednesday, March 03, 2010 8:22 AM Subject: [jQuery] How to add a button Hello! Is it possible to add a button (like standard drop down list has) to open the list with all the results

[jQuery] How to add a button for opening the list? [autocomplete]

2010-03-03 Thread podeig
Hello! Is it possible to add a button (like standard drop down list has) to open the list with all the results? I need two ways to select item by typing and selection from the list. If not, may be you can add this functionality to this plug-in? Thank you! :)

[jQuery] How to add a button

2010-03-03 Thread podeig
Hello! Is it possible to add a button (like standard drop down list has) to open the list with all the results? I need two ways to select item by typing and selection from the list. If not, may be you can add this functionality to this plug-in? Thank you! :)

[jQuery] How to check TD background image has been loaded.

2010-02-25 Thread ace jquery
Hi there, I am trying to update the attr of background in . ==>> is that possibly to use jQuery to check if the background image has been loaded? something like this.. $('#mytd background').load(function(){ alert('the background image has been loaded'); }); Thank you for you help! -Ace

[jQuery] How to reset default value of a form input text fields

2010-02-18 Thread Vikas Patidar
Hi, Everyone I want to reset the default hint text of form input text field when someone focus or blur using jQuery. Anyone has any idea will be appreciated.

Re: [jQuery] How to select every checkbox on my page inside a fieldset

2010-02-15 Thread ReynierPM
On 2/15/2010 8:54 AM, Peter Edwards wrote: 2. a checkbox which uses a descendant selector $('#fieldset1 input:checkbox') to explicitly target a given fieldset by ID, and Thx a lot Peter, you and jQuery rocks. It works perfectly for descendant selector #fieldset1 ;) -- Cheers ReynierPM

Re: [jQuery] How to select every checkbox on my page inside a fieldset

2010-02-15 Thread Peter Edwards
You can use selectors to do this quite easily - I've posted an example at: http://jsbin.com/uwaxo/ This has: 1. a checkbox which will select/deselect all others in the page (no matter whether they are in different forms/fieldsets, 2. a checkbox which uses a descendant selector $('#fieldset1 in

[jQuery] How to select every checkbox on my page inside a fieldset

2010-02-15 Thread ReynierPM
Hi: I have a fieldset and a set of check boxes inside. I want when I pick one, for example: value='picked_all' /> Pick all check boxes all the check boxes will be checked. How? -- Cheers ReynierPM

Re: [jQuery] how to make this really beautifull pattern

2010-02-10 Thread Nathan Klatt
On Wed, Feb 10, 2010 at 12:27 AM, hno wrote: > I have seen this pattern in http://www.altsoftware.com/index.php . > there are news menu in the left side . Please visit this site . The > news will be change with a really beautiful pattern in every 5 > seconds Just animate the position and opacity

[jQuery] how to make this really beautifull pattern

2010-02-09 Thread hno
HI I have seen this pattern in http://www.altsoftware.com/index.php . there are news menu in the left side . Please visit this site . The news will be change with a really beautiful pattern in every 5 seconds I think it has been written with jquery but I don't know how can I make something like th

[jQuery] How to add 'selected' to option of dynamically set Select input?

2010-01-31 Thread KansasCoder
I've been using the following to display the statename in my dropdown: $('#State option[value="' + LocationObject.State + '"]').attr('selected', 'selected'); LocationObject is a json object that I am using. The problem with this is that it does not add 'selected' to the opt

[jQuery] How to scrollup one image at a time using jquery cylcle plugin?

2010-01-28 Thread jabarquez
Hi I have 8 images but before the cycle(scrollUp) start, the first 4 images will display and then it move up one image at a time, and cycle through to the next image Like this: (img1-img2-img3-img4) then (img2-img3-img4-img5) then (img3-img4- img5- img6) then (img4-img5-img6-img7) then (img

[jQuery] How to show one image at a time using jquery cycle plugin?

2010-01-28 Thread jabarquez
Hi I have 8 images but before the cycle(scrollUp) start, the first 4 images will display and then it move up one image at a time, and cycle through to the next image Like this: (img1-img2-img3-img4) then (img2-img3-img4-img5) then (img3-img4-img5- img6) then (img4-img5-img6-img7) then (img5

Re: [jQuery] how to get href value

2010-01-23 Thread Andrei Eftimie
>> $(document).ready(function() { >>        $("a").click(function(event) { >>                alert( "You clicked a link to " + this.href ); >>                return false; >>        }); >> }); This method is very slow. Try using event delegation: $(document).ready(function() { $(document).cl

Re: [jQuery] How to insert HTML in an iframe

2010-01-20 Thread Jimmy Brodd
This should do the trick: $('#iframeId').contents().find('body').append('stuff'); On Tue, Jan 19, 2010 at 10:31 PM, pablo wrote: > Hi, > > I need to insert HTML in an iframe. This works in IE but not in > Firefox: > > $(this.iframe).append("hello"); > > What is the problem in Firefox? > > Thank

Re: [jQuery] how to get href value

2010-01-19 Thread adi sembiring
Got it ..., thanks all On Wed, Jan 20, 2010 at 1:22 PM, Michael Geary wrote: > But that would give you the href for the first A element in the document, > not necessarily the one you clicked. > > Going back to the OP's code, this.href would be the easiest way to get it: > > > $(document).ready(f

Re: [jQuery] how to get href value

2010-01-19 Thread Michael Geary
But that would give you the href for the first A element in the document, not necessarily the one you clicked. Going back to the OP's code, this.href would be the easiest way to get it: $(document).ready(function() { $("a").click(function(event) { alert( "You clicked

Re: [jQuery] how to get href value

2010-01-19 Thread Matt Quackenbush
$("a").attr("href");

[jQuery] how to get href value

2010-01-19 Thread adi sembiring
I'm trying to get href value from anchor tag. $(document).ready(function() { $("a").click(function(event) { alert("As you can see, the link no longer took you to jquery.com"); //$("a").html.href; event.preventDefault(); }); }); ht

[jQuery] How to insert HTML in an iframe

2010-01-19 Thread pablo
Hi, I need to insert HTML in an iframe. This works in IE but not in Firefox: $(this.iframe).append("hello"); What is the problem in Firefox? Thank you very much.

[jQuery] How to change the text appearing blockOverlay

2010-01-19 Thread Sullan
Hi All, I'm using this block UI to show loading screenwhen navigating between pages.. the problem i face is, the message 'Please wait' is coming from "jquery.blockUI.js". Is there any way that i can pass this message from the HTML file to blockUI function or some other way to directly get the m

[jQuery] How to pass in data

2010-01-17 Thread Patrick
What is the best way to get data into jQuery? Obviously, jQuery separates data and presentation. How can I pass in a parameter? Below, you can see how I called a method with a hardcoded value, but I want to dynamically pass in a value from web page. $(document).ready(function() { /* tweet stat

Re: [jQuery] ^=, $=: how to use?

2010-01-16 Thread brian
Like this, for example: $('input[id$=3]').change(function() { alert('foo'); }); But it really depends on what you want to do. With the above, you'd need to specify as many change() handlers as you have inputs. Another way would be to have a generic handler and, inside that function, have

[jQuery] ^=, $=: how to use?

2010-01-16 Thread Andre Polykanine
Hello everyone, I need to get a number which is the last char of a radiobutton id. Say, the IDs are "utype1, utype2, utype3...". I need to say "if the last char of the Id is 3, then do something". How do I use $= here? Couldn't find that in the docs. Thanks! -- With best regards from Ukraine, A

[jQuery] How to set errorContainer in jQuery validation dynamically?

2010-01-12 Thread John
Can I dynamically set errorContainer in jQuery validation, which means showing different error container base on the button clicked. I have posted question on stackoverflow http://stackoverflow.com/questions/2052200/how-to-set-errorcontainer-in-jquery-validation-dynamically

Re: [jQuery] How to apply limits to an animation

2010-01-11 Thread Jon Banner
have a look at the jCarousel plugin - i think that should do what you need. http://sorgalla.com/jcarousel/ Jon 2010/1/9 JQNovice > I am very new to JQuery but so far very happy with ease of use. > > I have created a series of thumbnails that slide as the left, right > buttons are clicked: > ht

Re: [jQuery] How to be able to preload jquery contents into hidden tabs for ie browser

2010-01-11 Thread samara
I have found the solution to this and this may come in handy for anyone who wants to use tabs (with display: none property) where the content requires initialization at page load. Simply change your hidden tab style in the css as follows: .tabhide { position: absolute; top: -5000px; } I ha

[jQuery] How to be able to preload jquery contents into hidden tabs for ie browser

2010-01-11 Thread samara
The problems im facing is when I use something like jcarousellite inside tabs. It works fine in browsers other than ie. In ie, the carousel loads fine in the active tab, but in the inactive ones it doesnt preload. Basically when you click on a previously inactive tab, it displays nothing until you

[jQuery] how to do some animation when the page loads?

2010-01-09 Thread Oliur
when the DOM is ready you can write $(document).ready(function(){ $("#divname").hide(); }); Say now, you want to try and do some animation done by default, (in the below example I have done some animation only when the user do mouse over, how can i do that by default as in when the page loads) $

[jQuery] How to apply limits to an animation

2010-01-09 Thread JQNovice
I am very new to JQuery but so far very happy with ease of use. I have created a series of thumbnails that slide as the left, right buttons are clicked: http://www.lisaauer.com/jquery_imageslide/ I want the images to slide left or right only so far that there are always images filling the slide d

Re: [jQuery] How to gain reference to hyperlink that is clicked

2010-01-06 Thread CoffeeAddict
Ah, (this), I'm a newbie to that in jQuery. Thanks. Charlie Griefer wrote: > > > > > > $(document).ready(function() { > $('.myButton').click(function() { >alert($(this).attr('id')); >// alert(this.id) <-- should also work > } >

Re: [jQuery] How to unsubscribe from this group?

2010-01-06 Thread Karl Swedberg
On Jan 5, 2010, at 7:47 PM, Chikkis Corner wrote: Please unsubscribe me from this group. Hi, The following instructions are paraphrased from: http://groups.google.com/support/bin/answer.py?hl=en&answer=46608 You can unsubscribe from a group through the web interface or via email. To unsu

Re: [jQuery] How to unsubscribe from this group?

2010-01-05 Thread Charlie Griefer
Oooh... once you're in, well, we can't just let you walk away. O_o On Tue, Jan 5, 2010 at 4:47 PM, Chikkis Corner wrote: > Please unsubscribe me from this group. > -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. A

[jQuery] How to unsubscribe from this group?

2010-01-05 Thread Chikkis Corner
Please unsubscribe me from this group.

Re: [jQuery] How to gain reference to hyperlink that is clicked

2010-01-05 Thread Charlie Griefer
$(document).ready(function() { $('.myButton').click(function() { alert($(this).attr('id')); // alert(this.id) <-- should also work } }); Notice that I added a class="myButton" to each button element, and set the listener for $('.myBu

[jQuery] How to gain reference to hyperlink that is clicked

2010-01-05 Thread CoffeeAddict
I understand that I can use the .click() method on a hyperlink element. But how do I know which element was clicked? First I have to gain reference to the hyperlink's ID. So lets say I have a page of hyperlinks like this in view source: ...someurl somebutton ...someurl somebutton ...some

Re: [jQuery] How to append a to line of orphan text?

2010-01-05 Thread brian
On Tue, Jan 5, 2010 at 1:01 AM, Tong wrote: > Hi, > > I have the following HTML: > > >  Some Text Here: More Text Here >  Some Text Here: More Text Here >  Some Text Here: More Text Here > > > How could I use jQuery to wrap each line of text in a and remove > all the and finally wrap all the

[jQuery] How to append a to line of orphan text?

2010-01-05 Thread Tong
Hi, I have the following HTML: Some Text Here: More Text Here Some Text Here: More Text Here Some Text Here: More Text Here How could I use jQuery to wrap each line of text in a and remove all the and finally wrap all the in a ? Example: Some Text Here: More Text Here So

[jQuery] How to retrieve the selected cells

2010-01-04 Thread MT
Hi all, I am new to jQuery and I would like to process a matrix operation using PHP. The front-end code is done bellow, its a 3x3 table. the user could select/deselect individual cells of the table and click the button that calls a PHP script that will run some function. 1) How do I know if a cel

[jQuery] How to define/access public functions for a plugin?

2010-01-04 Thread mehdi
Hi, I've just developed a plugin that mimics the combo box control, albeit it's a special one. That's being defined as follows: (function($) { $.fn.extend({ smartList: function(settings) { //prepare settings, blah blah blah... return this.each(function() {

Re: [jQuery] How to check whether an element is bound to an event or not?

2010-01-02 Thread Md. Ali Ahsan Rana
hi, thanks. But, what is happening here is: There is an DOM element, which is reloading(replaced by ajax response with same id/tag), then the event isn't no more bounded. I want it to be bounded all the time. Do you think, here unbound will work? Or Is there any way to keep the binding whenev

Re: [jQuery] How to check whether an element is bound to an event or not?

2010-01-02 Thread waseem sabjee
usually when I bind a click event I do this. unbind before bind $(elm).unbind('click'); $(elm).bind("click", function() { }); may be a modification like this if(!$(elm).unbind('click')) { $(elm).bind("click", function() { alert("This element was only bound if it was not bound"); });

[jQuery] How to check whether an element is bound to an event or not?

2010-01-02 Thread ranacseruet
I need to check whether an element is bound to an event or not. How to achieve this?

[jQuery] How to change a form action?

2009-12-30 Thread Thai Dang Vu
I have a form like this ... I want to change the action of that form. So I use $('#form').attr('action', 'http:/'); but there's an error saying something like 'this element property cannot be changed'. Is it possible to change a form action?

[jQuery] How to call a jquery/javascript var in a WP template

2009-12-29 Thread Steve Pierce
Here is the web page I am working on http://bivenshouse.com/?page_id=16 I have setup a jquery that I think (I hope) works to define divHeight. Code: http://bivenshouse.com/wp-content/themes/glossyblue/js/ jquery-1.3.2.min.js" type="text/javascript">