[jQuery] JSONP + two different encoding results

2009-08-10 Thread hedgomatic
I have an edit-in-place plugin I've created for my employer. We *need* to use iso-8859-1* I understand we can set the *response* to be in iso-8859-1 in ajax, but I also need the request to be, so that it's posted properly to our database. So, I'm posting with jsonp, and then getting the updated

[jQuery] ready() to bind post-ajax events

2009-07-04 Thread hedgomatic
I haven't seen much mention of this on the web, and only recently discovered it works not sure if this is somehow bad practice or just a lesser known trick, but lately I've been chaining .ready() at the end of .html() when I want to bind events to new ajax data... I presume it's much more

[jQuery] Loading before dom = ready - Best Practices.

2009-04-23 Thread hedgomatic
While virtually every site in existence trumpets using the jQuery DOM- ready shortcut as an absolute must, I've come across situations which I feel frustrate the user, particularly when using jQuery to create a navigational element. I often work on sites which are going to have a lot of external

[jQuery] anyone tried alternatives to setting wmode on objects (lightbox on top issue)?

2009-02-14 Thread hedgomatic
I'm working for an alt-weekly paper, and we have some animated flash ads that come from various sources, which aren't setting the WMode of their flash ads. further complicating things, our ad server backend is a shared platform, so I can't go modifying the script that generates the object tags.

[jQuery] is there a way to set the index of an element?

2008-04-06 Thread hedgomatic
Let's say I have a page containing the following: DIV class=element ID=0 1/DIV DIV class=element ID=1 1/DIV DIV class=element ID=2 1/DIV DIV class=element ID=3 1/DIV DIV class=element ID=4 1/DIV DIV class=element ID=5 1/DIV INPUT type=button ID=randomize VALUE=click me! and I want to randomize

[jQuery] Re: undeclared properties reporting values (attempting a toggleClass function)

2008-04-04 Thread hedgomatic
|color:red|background-color:bluedo your eyes hurt yet?/DIV which also has the attributes applied as css property:value. but surely, surely someone can think of something better than that. On Apr 3, 5:08 pm, hedgomatic [EMAIL PROTECTED] wrote: I'm trying to do the following: SCRIPT $(document).ready

[jQuery] Re: undeclared properties reporting values (attempting a toggleClass function)

2008-04-04 Thread hedgomatic
. and bob's yer uncle. On Apr 3, 5:08 pm, hedgomatic [EMAIL PROTECTED] wrote: I'm trying to do the following: SCRIPT $(document).ready(function(){ $.fn.toggleCSS = function(property,value) { return this.each(function(){ var p

[jQuery] $(this) scope (each() nested in an event)

2008-04-03 Thread hedgomatic
I'm trying to reference an element in an each() that's inside an event function. scenario-- I have a div with a class of .button, several divs with the class .elementSelected. I click on the div with the .button class, and then... $(.button).click(function() { elements = new

[jQuery] Re: $(this) scope (each() nested in an event)

2008-04-03 Thread hedgomatic
pfff. fixed :] $(.button).click(function() { var command = $(this).attr(ID); elements = new Array(); $(.elementSelected).each(function() { var wordsSelected = $(this).html();

[jQuery] undeclared properties reporting values (attempting a toggleClass function)

2008-04-03 Thread hedgomatic
I'm trying to do the following: SCRIPT $(document).ready(function(){ $.fn.toggleCSS = function(property,value) { return this.each(function(){ var p = $(this).css(property); if(p) { $(this).css(property,); } else { $

[jQuery] Re: problems with event triggering in IE6, presumably 5.5 as well.

2008-03-07 Thread hedgomatic
I actually started with hover, with something along the lines of... -(snip) $(#trigger_news).hover( function () {$(#news).addClass(news_on);}, function () {$(#news).removeClass(news_on);$ (#news).addClass(news);}); -(/snip) ...which sadly wound

[jQuery] Re: problems with event triggering in IE6, presumably 5.5 as well.

2008-03-07 Thread hedgomatic
I'd consider ideal, but until I come across something else, hope it helps... -a On Mar 7, 11:29 am, Fernando_AJAX [EMAIL PROTECTED] wrote: Hi hedgomatic and h0tzen, I'm experiencing the same problem here. I've tried mouseover/mouseout, hover()...  without success. On Mar 6, 7:08 pm

[jQuery] Re: problems with event triggering in IE6, presumably 5.5 as well.

2008-03-06 Thread hedgomatic
Update: adding overflow:hidden to my trigger DIVs and tossing in a load of non-breaking spaces seems to do the trick tolerably, but this feels like a cludgy solution. On Mar 5, 10:01 pm, hedgomatic [EMAIL PROTECTED] wrote: Hi, I'm working on getting what should be a simple rollover

[jQuery] problems with event triggering in IE6, presumably 5.5 as well.

2008-03-05 Thread hedgomatic
Hi, I'm working on getting what should be a simple rollover effect done in jquery, and it works like a charm in firefox and safari, but IE is not having any of it. the page in question is here: http://www.awayfromkeyboard.com/nymphomania/ here's the relevant code: jQuery: