[jQuery] Re: Remove css attribute from the DOM element

2009-12-06 Thread Joshua Partogi
On Dec 7, 12:36 pm, "evanbu...@gmail.com" wrote: > I like to use the addClass method rather than embed CSS in my js > code. I find it easier to maintain. > > $('td').addClass('myCSSClass'); > > $('td').removeClass('myCSSClass'); Hi Evan, I'd prefer that approach too. But the problem is this css

[jQuery] Remove css attribute from the DOM element

2009-12-06 Thread Joshua Partogi
Hi all, What is the cleanest approach to remove a css attribute from the DOM element? Currently I have a DOM element which has css background color as such: This is currently what I do: $('td').css('background-color','').append(replacement); But I'm not sure that is the good approach. Or is it

[jQuery] Re: Determining if a block is visible

2009-08-17 Thread Joshua Beall
On Aug 6, 2:41 pm, "Richard D. Worth" wrote: > On Thu, Aug 6, 2009 at 9:27 AM, Joshua Beall wrote: > > > On Aug 6, 8:26 am, "Richard D. Worth" wrote: > > > You can include the pseudo-selector in the same selector, immediately > > after > &g

[jQuery] Re: Determining if a block is visible

2009-08-06 Thread Joshua Beall
On Aug 5, 7:05 am, "Richard D. Worth" wrote: > Your question is better suited to the main jQuery > list:http://groups.google.com/group/jquery-en > > since it's not about jQuery UI > plugins[*]. I was thinking that because my use case is most directly ti

[jQuery] Re: Determining if a block is visible

2009-08-06 Thread Joshua Beall
On Aug 6, 8:26 am, "Richard D. Worth" wrote: > You can include the pseudo-selector in the same selector, immediately after > the ID, like so: > > $("#myDiv:hidden").show(); > $("#myDiv:visible").hide(); > > Another option would be to use the filter method: > > $("#myDiv").filter(":hidden").show()

[jQuery] Re: Confirm password equalTo function of Validate plugin are not working properly in Firefox3.0.10 and Firefox2.0

2009-05-11 Thread joshua
My CakePHP code to generate password field: The previous one: //code input('password', array('type'=>'password','label' => false )); ?> //end And now: //code input('ppassword', array('type'=>'password','label&

[jQuery] Re: Confirm password equalTo function of Validate plugin are not working properly in Firefox3.0.10 and Firefox2.0

2009-05-11 Thread joshua
Zaefferer < joern.zaeffe...@googlemail.com> wrote: > > Looks like there is no element with the id "UserPassword". > > Jörn > > On Mon, May 11, 2009 at 1:51 PM, Joshua wrote: > > > > Is there any body known about this problem? > > > > My code

[jQuery] Confirm password equalTo function of Validate plugin are not working properly in Firefox3.0.10 and Firefox2.0

2009-05-11 Thread Joshua
Is there any body known about this problem? My code: //js code “data[User][password]“: { required: true, minlength: 6, maxlength: 15 }, “data[User][confirmPassword]“: { required: true, minlength: 6, maxlength: 15, equalTo: “#UserPassword” }, //code end The error happened at line 1040 of jquery.

[jQuery] Re: Set event handler attributes does not work on IE7

2009-04-20 Thread Joshua Partogi
Thanks James! I still wonder why it doesn't work on IE7 though. Cheers, On Apr 21, 11:55 am, James wrote: > You should do: > > $(".input").change(onInputChange); > or: > $(".input").bind("change", onInputChange); > > On Apr 20, 3:49 pm,

[jQuery] Set event handler attributes does not work on IE7

2009-04-20 Thread Joshua Partogi
Dear all, I'm trying to set event handler attributes when the DOM is ready, but it doesn't work on IE7. The snippets are as such: var onInputChange = function (){ alert("Hey I'm changed"); } $(function() { $(".input").attr("onchange", "onInpu

[jQuery] Form Plugin + FCKEditor + UI Dialog Button

2009-03-23 Thread Joshua
I downloaded the fckeditor jquery plugin because i was told it would resolve issues with submitting forms via Form Plugin ajaxSubmit. But everytime I do it, my form won't submit anymore... My dialog button appears to be unbound but it's not because i can do a console.log(''); and it shows me but

[jQuery] Does jQuery ajax event listener listens to ajax request sent by other frameworks?

2009-03-09 Thread Joshua Partogi
Hi all, Let's say I sent an ajax request with mootools, does jquery global ajax event listener listens to it too? Or does it only listens to ajax request that is sent by jQuery? Because I have a page that has ajax request by other framework and it seems that jQuery is listening to it too. But per

[jQuery] How to? Multiple Colored Accordion...

2009-01-16 Thread Joshua Sortino
I have found plenty of accordion tutorials online, however, I'm trying to create an accordion with multiple colors for each section (that don't change when clicked.) Here is an example of what I am trying to accomplish: http://blackstonemediaonline.com/dump/accordion.jpg Does anyone know of any

[jQuery] Re: jQuery 1.3 + live/livequery + draggable problem

2009-01-07 Thread Joshua Uziel
ave one week > of testing, then finalize jQuery UI 1.6. > > If you're interested, you're more than welcome to help us test the interim > scenario I've described above. It would mean checking out the jQuey UI > trunk. But should be simple otherwise as that contains the v

[jQuery] jQuery 1.3 + live/livequery + draggable problem

2009-01-07 Thread Joshua Uziel
Through the wonders of jQuery 1.2.6, jQuery UI 1.6rc2/4 and LiveQuery, I am able to make divs that are generated after the page load be draggable via something like so: $(".results_container").livequery(function() { $(this).draggable({ helper: 'clone',

[jQuery] onChange any form field "Unsaved Message"

2007-10-18 Thread Joshua
I'm wanting to use jquery to make a function where whenever someone changes something in any of the input boxes it changes a div to say "Unsaved at #time#" This seems easy but I'm new to jQuery and what I thought would work isn't working. Please advise :( Thanks, Josh

[jQuery] 5 Star Rating System

2007-09-26 Thread Joshua
Does anyone know of a good one, I've used one that made a space or gap above it and i couldn't get it to go away appropriately without rigging css -16px margin. Does anyone have any ideas about this?

[jQuery] 5 Star Rating System - http://www.learningjquery.com/2007/05/half-star-rating-plugin

2007-09-26 Thread Joshua
Okay so I have it updating my database when you click but how do I get the callback to read in the value? I didn't see any easy solutoin for this. Here is the one i'm using : http://www.learningjquery.com/2007/05/half-star-rating-plugin Let me know if anyone knows... :)

[jQuery] Re: Dynamically loading javascipt .js files?

2007-06-07 Thread Joshua Daniel Franklin
On Jun 6, 3:53 pm, Karl Swedberg wrote: > or, you could try this... > > > $.getScript( url, callback ) > > http://docs.jquery.com/Ajax#.24.getScript.28_url.2C_callback_.29 Thanks. I totally missed getScript on my first look at the API.

[jQuery] Dynamically loading javascipt .js files?

2007-06-06 Thread Joshua Daniel Franklin
Is there a way for jQuery to dynamically load an external js file? For example, instead of always including: I'd like to load a Javascript file when a user specifies a function type. Obviously I'd still need to bootstrap jquery.js in .