[jQuery] Re: Changing colspan with jQuery

2009-12-17 Thread davec
Sorry, I posted the wrong codemy code looked exactly like what you said but it did change the rendering of the table after I set the new value. Basically, what I have been trying to do was the following: - First I render the table and have a column heading cell that spans 4 columns - Then

[jQuery] Re: Changing background color of table cells

2009-12-05 Thread evanbu...@gmail.com
That works great, Karl. Thanks. Love the book, btw. On Dec 5, 1:54 pm, Karl Swedberg k...@englishrules.com wrote: I'd try something like this: $('#Directorships td:nth-child(1)').filter(function() {    return $(this).text() == 'D'; }).addClass('bgHighlight'); Change the 1 in

[jQuery] Re: Changing the check/uncheck of a check box

2009-11-13 Thread serhat
I didnt tried it but it will work I think. Code; -- $('#customerNumber').focus( function() { $('#newCustomer').checked='unchecked'; } );

[jQuery] Re: changing a select

2009-11-03 Thread James
Try this: var $select = $(select#foo), firstVal = $select.find('option:first').val(); $select.val(firstVal).change(); On Nov 3, 7:43 am, Mark Volkmann r.mark.volkm...@gmail.com wrote: I need to programmatically change the option that is selected within a select. I have code registered to

[jQuery] Re: Changing a text in a div

2009-10-12 Thread amuhlou
You'd probably want to use the text() or html() method for this. Assuming the h2 tags in question are inside the child-pages div, your code would be something like this: $(function(){ $('.child-pages h2').text(Sub-pages); }); On Oct 12, 9:56 am, Fynci fyncimy...@gmail.com wrote: I am

[jQuery] Re: Changing image src and css properties of new image

2009-10-05 Thread poundcommapo...@gmail.com
Hey James, Thanks for the advice. That's close, but not quite there. It does now pull the height from the correct image, but there's a noticeable delay that I've got to get around. See example here: http://wilsonmcguire.com/eebuild/index.php?/work Click on some of the options on the right, and

[jQuery] Re: Changing a class name without clicking

2009-09-25 Thread Lleoun
You're right, sorry, I didn't explain myself quite well. There's a conditional clause. If it is true the class name change has to be triggered. The class name change could go inside of a function but after a second thought there's no need for it. It would be something like: if(currentvar =

[jQuery] Re: Changing a class name without clicking

2009-09-25 Thread Liam Byrne
Your old code was : $('.unselected').click(function(){ $('.selected').attr('class','unselected'); $(this).attr('class','selected'); }); Which translates to if / when unselected is clicked. Your new code is the exact same principle, replacing the ($('.unselected').click (the trigger)

[jQuery] Re: Changing a class name without clicking

2009-09-25 Thread Lleoun
Thanks Liam, worked great! And thanks to all for the approach.

[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: 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: 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: Changing the slider value programatically

2009-09-14 Thread David Garthe
Left this out accidentally: I have this on the modal box page being called: script type=text/javascript !-- #slider({ value: 60 }); // this value is brought in from the database, but you get the idea // -- /script But this does not change the

[jQuery] Re: changing URL with slider

2009-08-30 Thread Macsig
Any ideas? Thanks On Aug 28, 7:43 am, macsig sigbac...@gmail.com wrote: Hello guys, is there a way (using a specific plugin or doing some hacking) to change the pageURLwhen I change the viewed panel within a slider? Right now I'm using tabSwitch (http://www.hieu.co.uk/blog/index.php/

[jQuery] Re: changing URL with slider

2009-08-30 Thread Macsig
Does anyone have used jquery.address (http://www.asual.com/jquery/ address/)? looks like it does exactly what I need but I have hard time to understand how it works: the docs is not so clear to me. THANKS On Aug 30, 7:07 am, Macsig sigbac...@gmail.com wrote: Any ideas? Thanks On Aug 28,

[jQuery] Re: changing style attributes.

2009-07-28 Thread Old Orange Juice
It is dynamic, yes, but on the server side (mason/perl), so the final html should have those elements when the page loads in the client. I found an easier way to do this without JQuery (there were tools already built in that were easier to use, but not as flexible [usual trade off, I think]). I

[jQuery] Re: changing style attributes.

2009-07-25 Thread Charlie
understanding how the basic animations functions in jQuery helps. $("#something").show() jQuery uses amendments to the element syle attribute to make this happen. So in your example $("#this=thingthat=morebing=bang").show() will override the display:none If as you say you are doing this

[jQuery] Re: Changing query string from ?key=value to /key/value

2009-05-07 Thread tdktan...@gmail.com
All right found all the madness! Here's where they are at and how to make it work for my needs... Would be nice to change these but I doubt jquery will do that... *with config values* there are 3 lines in the jquery script (un minified version) change: (in the file jquery.1.3.2.js) line: 3458

[jQuery] Re: Changing the Cell Colors in DatePicker

2009-04-29 Thread MOZ
Try $(this).css({'background-color':'', 'color':''}); http://docs.jquery.com/CSS/css#namevalue On Apr 29, 11:40 am, Code Daemon ryan.det...@gmail.com wrote: I've tried to two different datepicker scripts and what I'm trying to do is hilite which dates satisfy a certain condition. For

[jQuery] Re: Changing the Cell Colors in DatePicker

2009-04-29 Thread Code Daemon
Thanks, this works. Before using the attr() method, I was trying to use removeClass ().addClass(). This worked to remove the formatting the previous class had made, but the class I was trying to add had no effect. On Apr 29, 1:46 am, MOZ pbe...@gmail.com wrote: Try

[jQuery] Re: Changing the arrow color : Superfish

2009-04-24 Thread Charlie
arrows are image files, modify the image in css images folder Praveen wrote: How to change the arrow color(right and down arrows) in the superfish menu? -Praveen

[jQuery] Re: changing list image on click

2009-04-22 Thread mstone42
OK, after a bit more effort I solved my own problem. style type=text/css ul#buttons li { list-style-image: url(../images/bullet.png); } ul#buttons li.checked { list-style-image: url(../images/bullet_check.png); } /style script type=text/javascript $('a.toggleIB').click(function()

[jQuery] Re: Changing part of a URL path with JQ on hover?

2009-04-21 Thread ldexterldesign
Yo, I solved it using .attr (http://is.gd/tG1X) I should have remembered .attr to be fair. This script takes some images from a folder and displays them on a page (as greyscale), with rollover replacement images from another folder (full colour versions).: ?php

[jQuery] Re: Changing the ID of a cloned table row

2009-03-24 Thread rivkadr
The add table row is being added with: pa href=# onclick=addTableRow('#table-1'); return false;Add New/a/p No, your code does not work for me. It's exactly the same as the code I've been trying since last night, so no offense -- why would it work? ;) My problem here is that the id is not

[jQuery] Re: Changing the ID of a cloned table row

2009-03-24 Thread Karl Swedberg
On Mar 24, 2009, at 11:44 AM, rivkadr wrote: The add table row is being added with: pa href=# onclick=addTableRow('#table-1'); return false;Add New/a/p ok. No, your code does not work for me. It's exactly the same as the code I've been trying since last night, so no offense -- why would

[jQuery] Re: Changing the ID of a cloned table row

2009-03-24 Thread Eric Garside
Do you have a live example of the code? Karl's stuff works fine for me, so I suspect it has something to do with other scripts on your page. On Mar 24, 12:56 pm, Karl Swedberg k...@englishrules.com wrote: On Mar 24, 2009, at 11:44 AM, rivkadr wrote: The add table row is being added with:

[jQuery] Re: Changing the ID of a cloned table row

2009-03-23 Thread Karl Swedberg
A few things: 1. Why do you need return true in the function? 2. 13 is not a valid ID, 3. you should probably be appending the row to a tbody, not the table. Nevertheless, I just tried your first function and it seemed to work fine for me: http://jsbin.com/ideju/edit Does that work for

[jQuery] Re: Changing the ID of a cloned table row

2009-03-23 Thread rivkadr
I don't know why I need true in the function. I just copied the code from elsewhere ;) I am NOT a jquery (this is my first time using it) or JS expert, so am just trying to cobble something together for a work project, which is due by tomorrow. I'm using this:

[jQuery] Re: changing input's class upon error

2009-03-04 Thread vincent woo
this question is regarding the form Validation plugin found here: http://docs.jquery.com/Plugins/Validation On Mar 4, 12:24 pm, vincent woo vincen...@gmail.com wrote: I want to find a simple way to change a form element's class when there is an unsuccessful field.  Like I would like to change

[jQuery] Re: changing input's class upon error

2009-03-04 Thread Jörn Zaefferer
A class of error is added to any invalid element. You can customize that class using the errorClass-option. Jörn On Wed, Mar 4, 2009 at 9:15 PM, vincent woo vincen...@gmail.com wrote: this question is regarding the form Validation plugin found here: http://docs.jquery.com/Plugins/Validation

[jQuery] Re: changing value of hidden input

2009-02-26 Thread Theorix
Hi Michael, thank you very much for your solution which quite works out for me. But now I have a question: What if I want to populate my input field with more than one account or name? How do I update the code for the inputhidden in order to display both ids? Any solution would be great!

[jQuery] Re: Changing colour of table rows

2009-02-24 Thread jQuery Lover
Is there a way to count the rows of a specfic table class=resultslist or even better the TR elements of the tbody of #resultslist? And how do I know on what row I am currently are when a checkbox was clicked? Use this code to find out how many table rows are there in the table:

[jQuery] Re: Changing colour of table rows

2009-02-24 Thread heohni
Sorry, but it returns only 0...? On 24 Feb., 14:07, jQuery Lover ilovejqu...@gmail.com wrote: Is there a way to count the rows of a specfic table class=resultslist or even better the TR elements of the tbody  of #resultslist? And how do I know on what row I am currently are when a

[jQuery] Re: Changing colour of table rows

2009-02-24 Thread jQuery Lover
That is because you have table CLASS=resultslist and asked for #resultslist. This should work: $('.resultslist tbody tr').length Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Feb 24, 2009 at 6:14 PM, heohni heidi.anselstet...@consultingteam.de wrote: Sorry,

[jQuery] Re: Changing colour of table rows

2009-02-24 Thread heohni
painful! OF COURSE :-) THANKS!! On 24 Feb., 14:20, jQuery Lover ilovejqu...@gmail.com wrote: That is because you have table CLASS=resultslist and asked for #resultslist. This should work: $('.resultslist tbody tr').length Read jQuery HowTo Resource  -  

[jQuery] Re: Changing scope of a function

2009-02-14 Thread Michael Geary
JavaScript uses lexical scoping: The scope chain for a function is determined solely by the location of the function definition in the source code. Evaling the function's source code is a clever solution, and probably the only way to do this. With eval() you're creating a new function from

[jQuery] Re: Changing scope of a function

2009-02-14 Thread theallan
Hi Mike, Thanks very much for your reply and the information. What I'm hoping to be able to do is to provide a plug-in API for my jQuery plug-in which will allow the new API functions to be able to access the private methods which I use. I know you can't force something to expose private methods

[jQuery] Re: Changing scope of a function

2009-02-14 Thread Mike Alsup
Thanks very much for your reply and the information. What I'm hoping to be able to do is to provide a plug-in API for my jQuery plug-in which will allow the new API functions to be able to access the private methods which I use. I know you can't force something to expose private methods (or

[jQuery] Re: Changing Colspans with Jquery, IE6

2009-02-09 Thread charly_g
I dont know if this is what you are talking about, but i think i was having the same problem. I had problems trying to change de colspan to a table's TD in IE, after doing many tests i found the way. Here is the jquery code: $('.G_HD0').attr({colSpan:3}); searching by class

[jQuery] Re: changing value of hidden input

2009-02-05 Thread Michael
I finally figured it out. For the record... JS Data: var accounts = [ { name: Account One, id: 0001 }, { name: Account Two, id: 0002 }, { name: Account Three, id: 0003 }, { name: Account Four, id: 0004 }, {

[jQuery] Re: Changing Tooltip style

2009-02-01 Thread Matt
Your tooltip text will actually show up within an h3 tag wrapped inside the #tooltip div. Keep your #tooltip styles the way they were (without the font-size property), and set up a new one like this: #tooltip h3 { font: normal 10px Verdana; margin: 0; padding: 6px 2px } (or

[jQuery] Re: Changing Tooltip style

2009-01-31 Thread donb
Specify a value, either absolute (such as 7px) or relative (such as 80% or .9em) On Jan 31, 5:37 pm, apple quye...@yahoo.com wrote: Hi, I would like to change the tooltip style: making the font smaller with a different color ; I tried changing the tooltip.css but it seems not to work...

[jQuery] Re: changing value of hidden input

2009-01-30 Thread Michael
Anyone? I've been playing around with it, and the following will work if I want to set the hidden value to test... $(#account).result(function(event, data, formatted) { $(#account_value).val(test); }); ...but I'm still not sure how to get the value from the id key value of the selected

[jQuery] Re: Changing bg color of cell does not work in firefox 3 (works in ie7)

2009-01-17 Thread Mauricio (Maujor) Samy Silva
You missed a # in the color sintax: $(this).css('background-color', '00'); Should be: $(this).css('background-color', '#00'); -Mensagem Original- De: Ron ron.ce...@gmail.com Para: jQuery (English) jquery-en@googlegroups.com Enviada em: sábado, 17 de janeiro de 2009 22:13

[jQuery] Re: Changing bg color of cell does not work in firefox 3 (works in ie7)

2009-01-17 Thread Ron
You are really fast!!! Thank you. This is the problem. A minute after I posted I realized my mistake, but could not stop the post... On Jan 17, 4:35 pm, Mauricio \(Maujor\) Samy Silva css.mau...@gmail.com wrote: You missed a # in the color sintax: $(this).css('background-color', '00');

[jQuery] Re: Changing Class using Jquery

2008-12-04 Thread Paul Mills
Here is some basic jQuery that does what you want. First hide all li elements with class=blocked Then add click handler to a elements with class=add to locate the first hidden li within the Category and to remove class=blocked and show the li Add similar click handler for remove a element.

[jQuery] Re: Changing Class using Jquery

2008-12-04 Thread WebNot
Thanks Paul It worked absolutely perfect. once again thank you very very much. On Dec 5, 3:05 am, Paul Mills [EMAIL PROTECTED] wrote: Here is some basic jQuery that does what you want. First hide all li elements with class=blocked Then add click handler to a elements with class=add

[jQuery] Re: Changing query parameter

2008-11-28 Thread pedalpete
I'm not sure what you bean about changing depending on 'where I'm using the plugin'. you could use an if statement to set the parameter to change. for instance [code] if(q=='foo'){ var term=q; } if(term==null){ term=q; } [/code] something like that I think, but you haven't really spelled out

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread ricardobeat
That should work, can you show us some HTML? On Nov 13, 1:02 pm, CodingCyborg [EMAIL PROTECTED] wrote: I currently have this function set up: function link(win,url){         if(url){                 $(win+' iframe').attr(src,url);         }         setFocus(win); } And I don't get

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread CodingCyborg
div class=draggableWindow personalWin id=win10 h1span/spanPersonal Settings/h1 div class=content iframe src=settings.php/iframe /div /div And then elsewhere i have a link that onclick does link (#win10,mailbox.php) The window has the focus changed so I

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread CodingCyborg
That did the trick! I guess I misread the documentation on the child selector, though it makes sense now that you point it out. Thank you very much :) On Nov 13, 12:55 pm, Hector Virgen [EMAIL PROTECTED] wrote: It looks like the iframe is not an immediate descendant of the div with id win10.

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread Hector Virgen
It looks like the iframe is not an immediate descendant of the div with id win10. Remove the from your selector and it should work: $(win+' iframe').attr(src,url); -Hector On Thu, Nov 13, 2008 at 10:51 AM, CodingCyborg [EMAIL PROTECTED]wrote: div class=draggableWindow personalWin id=win10

[jQuery] Re: changing the style of pre-checked checkboxes

2008-10-22 Thread wwcat
On document.ready, add a class to all checked checkboxes, if any exist. $(document).ready(function() { $(:checkbox:checked).addClass(checked); }); On Oct 22, 10:55 am, Devin [EMAIL PROTECTED] wrote: Hi, I've poked around for a solution but I can't find anything concise enough for my

[jQuery] Re: Changing the width of a superfish vertical menu

2008-08-27 Thread Joel Birch
Hi Shloime, Simply change the ul element's width property within the CSS. Here is a link to the CSS which, when added to the base Superfish CSS file, creates a vertical-style menu... http://users.tpg.com.au/j_birch/plugins/superfish/css/superfish-vertical.css ...the very first rule contains

[jQuery] Re: Changing the width of a superfish vertical menu

2008-08-27 Thread Shloime
Thanks so much. Does the width need to be in em or can can I use any other units, like px? On Aug 27, 7:47 am, Joel Birch [EMAIL PROTECTED] wrote: Hi Shloime, Simply change the ul element's width property within the CSS. Here is a link to the CSS which, when added to the base Superfish CSS

[jQuery] Re: Changing the width of a superfish vertical menu

2008-08-27 Thread Joel Birch
You can use whatever units you prefer. I prefer ems where possible but can imagine situations where of or percentages would be preferable, eg. to fit a fixed width sidebar. Joel Birch. On 28/08/2008, Shloime [EMAIL PROTECTED] wrote: Thanks so much. Does the width need to be in em or can can

[jQuery] Re: Changing the width of a superfish vertical menu

2008-08-27 Thread Joel Birch
That should have read where px or percentages...

[jQuery] Re: changing H6 headers in H1 using Jquery?

2008-07-21 Thread Chris J. Lee
I'm pretty sure the google spider will crawl your website without use of JavaScript. So i think its probably better that you just change your h6 headers to h1 headers by hand. Try searching google spider simulators to see how your content would look like. On Jul 21, 5:32 am, subwayslim [EMAIL

[jQuery] Re: changing value of hidden input

2008-06-11 Thread MorningZ
Why not just simply use document.getElementById? (which ultimately .val() uses anyways)

[jQuery] Re: changing value of hidden input

2008-06-11 Thread Klaus Hartl
Changing the value of a hidden input like this works fine for me. Can you post an example? --Klaus On 11 Jun., 12:10, Andri [EMAIL PROTECTED] wrote: oops..sorry apparently if i use div style=display:none input type=text name=tes value=something/div it's also doesnt work On Jun 11,

[jQuery] Re: changing value of hidden input

2008-06-11 Thread Andri
the problem is solved :D If u using input type=hidden name=tes value=something or div style=display:none input type=text name=tes value=something/div the value can't be changed. The solution is using jquery field plugin (http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm).

[jQuery] Re: Changing action of form with jquery

2008-04-04 Thread Ahmed Elbougha
Hi venderkerkoff, I made 2 examples for you, the first using Javascript and the other using Jquery: 1- Javascript Just create radio buttons group named group1 and give each button a value contains (the url of the new action of the form), then click on the button (CLICK ME) to call the function

[jQuery] Re: Changing the click trigger inside itself is causing undesired results.

2008-03-31 Thread Jason Huck
You're not doing anything in your code to remove the original click event. To make it work this way, you'd need to make a single recursive function using .unbind() to remove the first click event, add the second, and then on the second click, remove the second click and call itself again to

[jQuery] Re: Changing the click trigger inside itself is causing undesired results.

2008-03-31 Thread Wizzud
I think you may be under the misconception that an event ('click' in this case) can only have one function bound to it at a time - not true. When you bind a function to an event, it stays bound until removed, and will run whenever the event is triggered. If you bind another function (same or

[jQuery] Re: changing the selected option in a select

2008-03-05 Thread Ericsko
Try this: this didn't work (as well as several other variations): $('a.cancel').click( function(){ $('select option:nth(0)').attr(selected,selected); }); On 7. Feb, 23:40 h., rolfsf [EMAIL PROTECTED] wrote: I can't seem to get this to work... I'm using jquery 1.1.4 I have a link

[jQuery] Re: changing the selected option in a select

2008-02-08 Thread rolfsf
Thanks - I'll check it out. I found Sam Collett's selectboxes plugin and used that, although it does far more than I needed. r. Charles K. Clarkson wrote: rolfsf wrote: : this didn't work (as well as several other variations): : $('a.cancel').click( function(){ : $('select

[jQuery] Re: changing the selected option in a select

2008-02-08 Thread Charles K. Clarkson
rolfsf wrote: : this didn't work (as well as several other variations): : $('a.cancel').click( function(){ : $('select option[value=0]').attr(selected,selected); : }); : : can someone clue me in? $('a.cancel').click( function(){ $('select').val('--'); }); HTH, Charles

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Liam Byrne
Try $(#scrollStats).html(im here!!); Bhaarat Sharma wrote: Hi Can someone please tell me how i can change the text between span tags on the fly using jQuery I have tag like this span id=scrollStats style=font-size: 70%; width: 80px; text- align: center; position: absolute; bottom: 392px;

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Bhaarat Sharma
*dope* $(#scrollStats).html(someting); that works. ...should visit the api's more often... On Jan 30, 10:55 am, Bhaarat Sharma [EMAIL PROTECTED] wrote: Hi Can someone please tell me how i can change the text between span tags on the fly using jQuery I have tag like this span

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Bhaarat Sharma
oh haha thanks. we replied at the same time :) On Jan 30, 11:11 am, Bhaarat Sharma [EMAIL PROTECTED] wrote: *dope* $(#scrollStats).html(someting); that works. ...should visit the api's more often... On Jan 30, 10:55 am, Bhaarat Sharma [EMAIL PROTECTED] wrote: Hi Can someone please

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Karl Swedberg
Or, if you know that you'll be using just text (no html tags), you could do this: $(#scrollStats).text(someting); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 30, 2008, at 11:11 AM, Bhaarat Sharma wrote: *dope*

[jQuery] Re: Changing url

2008-01-16 Thread Klaus Hartl
On Jan 16, 4:11 pm, Diego [EMAIL PROTECTED] wrote: How you change the url of a tab 'on the fly' ? for example, clicking the second tab change the url of the first tab? thanks There is a tabsHref method: var $tabs = $('#example').tabs(); // change href of first tab $tabs.tabsHref(1,

[jQuery] Re: Changing url

2008-01-16 Thread Diego
:( i cant make it work. If I have a tab with a div fragment, then i click in another tab and i change the starter tab's url, should work uh? some code $(document).ready(function() { $('#container').tabs(3); //starting with third tab $('#container').tabs({

[jQuery] Re: Changing url

2008-01-16 Thread Diego
nvm It works $(function() { $('#container ul').tabs(3); $('#container ul').tabs({ cache: false }); $('#container ul').tabs({ click: function() { $('#container').tabs().tabsHref(3,'/jsp/BuscarTareas.do'); } }); }); Thanks! On 16 ene, 15:28, Diego [EMAIL PROTECTED] wrote:

[jQuery] Re: Changing url

2008-01-16 Thread Klaus Hartl
On Jan 16, 8:04 pm, Diego [EMAIL PROTECTED] wrote: nvm It works $(function() { $('#container ul').tabs(3); $('#container ul').tabs({ cache: false }); $('#container ul').tabs({     click: function() {         $('#container').tabs().tabsHref(3,'/jsp/BuscarTareas.do');     }         });

[jQuery] Re: Changing the state of multiple checkboxes - looking for comments on this...

2007-11-28 Thread Wizzud
An alternative, but *only* if #checkall is a unique id (which it should be)... // Add click handler to all checkboxes, storing all bar the one in header var chkEach = $(':checkbox').click(updateStates).not('#checkall'); // Handle any checkbox click, set others and buttons as needed function

[jQuery] Re: Changing a:hover style

2007-11-04 Thread Klaus Hartl
On Nov 4, 3:57 pm, Ufucuk [EMAIL PROTECTED] wrote: Hi; It is easy to select links just like $('a') however I want to change a:hover style dynamically. I try $('a:hover').css(color,#000) or whatevet, but it doesnt work. I think it recognize : signnn as a different selector. Can anybody tell

[jQuery] Re: Changing form action with hidden field named action in IE causes error

2007-10-26 Thread Wizzud
There is no way round it, and it's not down to jQuery. You're going to have to call your 'action' field something else. On Oct 26, 12:10 pm, Adrian Lynch [EMAIL PROTECTED] wrote: The long subject says it all! If I have a hidden field named 'action', trying to change the form action

[jQuery] Re: Changing form action with hidden field named action in IE causes error

2007-10-26 Thread Adrian Lynch
I'm in agreement. I've changed the name to 'act'. I won't tell you how long it took to debug the problem as it's kind of embarrassing! In case anyone else has issues like this, watch out for naming your submit button 'submit'. Adrian On Oct 26, 7:14 pm, Wizzud [EMAIL PROTECTED] wrote: There

[jQuery] Re: Changing form action with hidden field named action in IE causes error

2007-10-26 Thread Mike Alsup
I'm in agreement. I've changed the name to 'act'. I won't tell you how long it took to debug the problem as it's kind of embarrassing! In case anyone else has issues like this, watch out for naming your submit button 'submit'. You must be very careful when naming your form inputs. IE

[jQuery] Re: Changing a background image with .css() function

2007-10-21 Thread debussy007
Ok, I found out thanks to the jquery IRC channel. It had to be url('/public/images/icons/slideDown.jpg') Thank you. debussy007 wrote: Hello ! I am trying to change the background image of a div when clicking on an element. This is my code : [...]

[jQuery] Re: changing the adressbar with javascript

2007-10-18 Thread Jonathan Sharp
You can use hashes (url.php#hash) which won't reload the page. -js On 10/18/07, Simpel [EMAIL PROTECTED] wrote: Hi I'm almost certain that this one is impossible but maybe someone out there has a solution We just released a site with a lot of ajax functions and now people starts

[jQuery] Re: changing the adressbar with javascript

2007-10-18 Thread Sean O
For obvious security reasons you (thankfully) cannot fake the address bar field using JavaScript. Scammers spammers would have a field day with that. You can, as Jonathan mentioned, update it using hashes. See the history plugin: http://stilbuero.de/jquery/history/ SEAN O _

[jQuery] Re: Changing the Action or method of a form befor submitting

2007-09-29 Thread voltron
$(#my_form).attr(action, /blog/testsite/test); this works On Sep 29, 11:00 am, voltron [EMAIL PROTECTED] wrote: Is it possible to change the action or method of a form before submitting? How can I use callbacks? I thought of using this $(form).submit(); I´m not sure about the rerst

[jQuery] Re: changing the $

2007-09-26 Thread Wizzud
You probably need to look at this ... http://docs.jquery.com/Using_jQuery_with_Other_Libraries http://docs.jquery.com/Using_jQuery_with_Other_Libraries Tom Burns wrote: Hi, Using the $ in jQuery causes problems for my setup. Our template engine uses $ as its token to start paying

[jQuery] Re: changing the $

2007-09-26 Thread Benjamin Sterling
Ultimately you can use jQuery as in jQuery('selector') On 9/26/07, Wizzud [EMAIL PROTECTED] wrote: You probably need to look at this ... http://docs.jquery.com/Using_jQuery_with_Other_Libraries http://docs.jquery.com/Using_jQuery_with_Other_Libraries Tom Burns wrote: Hi, Using

[jQuery] Re: Changing Animation Properties

2007-09-20 Thread Idan Waisman
So I just realized something interesting. This whole thing is done within a .mousemove(). The mouse move function will stop any existing animation and (re)start a new one. However, When the mouse is moving the animation stops even though the mousemove function has yet to be evoked. The mousemove

[jQuery] Re: changing the order of alist

2007-09-12 Thread GianCarlo Mingati
Hi Renaud, http://www.gcmingati.net/wordpress/wp-content/lab/jquery/cycle/na3cycle.html it works. Basically just styling the markup in an appropriate way, and using the jquery.cycle plugin i want to realize a jqueryfied version of slideshowpro (the flash component). This is just a test to see if

[jQuery] Re: changing the order of alist

2007-09-06 Thread GianCarlo Mingati
ok, it is better to have the images in an array, and then construct the list. But is there a way with jquery of changing the order of a list? GC On Sep 6, 11:47 am, GianCarlo Mingati [EMAIL PROTECTED] wrote: HI all. If possible i would like to have some advice on how to randomize the order

[jQuery] Re: changing the order of alist

2007-09-06 Thread Renaud
On 6 sep, 09:02, GianCarlo Mingati [EMAIL PROTECTED] wrote: ok, it is better to have the images in an array, and then construct the list. But is there a way with jquery of changing the order of a list? GC Here is a idea. That's a function based on the fisher-yates shuffle (thanks to perldoc

[jQuery] Re: changing url querystring in document.ready onclick

2007-08-31 Thread cfdvlpr
Here's what my url looks like: http:/.com/test.cfm/title.test-size.testSize- color.testColor#title.test2-size.testSize-color.testColor2 I want to remove the middle part of this url which is title.test- size.testSize-color.testColor Is there a a regular expression that will remove this part of

[jQuery] Re: changing url querystring in document.ready onclick

2007-08-31 Thread Ramiro Araujo
you could use document.hash = #; to remove everything behind the # character. for some reason if I use document.hash = ; the page keeps reloading indefinetly... hah Ramiro On Aug 31, 2:08 pm, cfdvlpr [EMAIL PROTECTED] wrote: Here's what my url looks like:

[jQuery] Re: changing url querystring in document.ready onclick

2007-08-31 Thread cfdvlpr
Hmm, adding that line doesn't seem to do anything.

[jQuery] Re: changing url querystring in document.ready onclick

2007-08-24 Thread Anurag
$(window).attr(location, http://www.google.com;); Cheers Anurag On Aug 23, 3:31 pm, cfdvlpr [EMAIL PROTECTED] wrote: Is there a way to change the url in the browser's address textbox everytime there is a click or other event?

[jQuery] Re: changing url querystring in document.ready onclick

2007-08-24 Thread Herr M.
No, not without actually redirecting to another url. I think it's a security risk otherwise (hiding the real url). Anders On 23 Aug, 23:31, cfdvlpr [EMAIL PROTECTED] wrote: Is there a way to change the url in the browser's address textbox everytime there is a click or other event?

[jQuery] Re: changing class

2007-08-21 Thread [EMAIL PROTECTED]
fixed: $(this).toggleClass('pop').toggleClass('tart').ajaxStop(function(){}); On Aug 21, 12:58 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i'm trying to change the class of a label and i'm using this: $('label').click(function(){

[jQuery] Re: changing class

2007-08-16 Thread seedy
Do you need to have a seperate css class for each list item? If they all visually look the same, I would have only 2 classes, one for the selected element, and one for all other elements. If this was the case you could do something like this: $('.unselected').click(function(){

[jQuery] Re: changing class

2007-08-16 Thread Sean Catchpole
Hi, Are aware that there are tabs plugins? To answer your question: $(function(){ $(#tabs li a).click(function(){ $(#tabs li).removeClass(select); $(this).parent().addClass(select); }); }); ~Sean

[jQuery] Re: changing class

2007-08-16 Thread Justin Sepulveda
and even smaller: $(this).parent().addClass(select).siblings().removeClass(select); On Aug 16, 2:21 pm, Sean Catchpole [EMAIL PROTECTED] wrote: Hi, Are aware that there are tabs plugins? To answer your question: $(function(){ $(#tabs li a).click(function(){ $(#tabs

[jQuery] Re: changing the value of a global variable inside an post callback function?

2007-07-30 Thread bdee1
does anyone have any other suggestions on this? bdee1 wrote: thanks for getting back to me. problem is that i am not sure if i can do all the processing i need in the callback function. because on my form i have onsubmit=javascript:return validateForm(this) so it calls my

  1   2   >