[jQuery] Re: Strange behavior experienced when using the show and hide effects

2009-11-17 Thread The alMIGHTY N
cribe me from your mailing listy. Thank you. > > On Fri, Nov 13, 2009 at 7:31 AM, The alMIGHTY N wrote: > > > I have a page with a DIV at the top that is shown and hidden with the > > jQueryUI show and hide effects. Underneath it is a TABLE whose > > vertical position shift

[jQuery] Re: How to prevent default behavior in an event handler that returns a function

2009-10-30 Thread The alMIGHTY N
array = new Array(); >     array[0] = FirstThing; >     array[1] = SecondThing; >     array[2] = ThirdThing; > > You can write it more simply - and make it easier to read and maintain - > with: > >     var array = [ >         FirstThing, >         SecondThing, &

[jQuery] Re: How to prevent default behavior in an event handler that returns a function

2009-10-30 Thread The alMIGHTY N
{ >                         var my_i = i; >                         $("#something").click(function(){ do_it(my_i)}); >                 })(); >         } > > depending on your real code, it can surely be written in better ways. > > On Oct 29, 5:29 pm, The alMIGHTY N wrot

[jQuery] How to prevent default behavior in an event handler that returns a function

2009-10-29 Thread The alMIGHTY N
Example page: http://jqueryfun.nathanielklee.com/eventFirefox.html Following one example provided in an official jQuery tutorial (located at http://docs.jquery.com/Tutorials:How_jQuery_Works), I can pass "event" into a function I define directly in the click assignment handler. e.g. $("#something

[jQuery] issue passing event to event handler in Firefox

2009-10-26 Thread The alMIGHTY N
Let's say I have a series of links on the page: Link 0Link 1Link 2Link 3Link 4 and so forth. I want to attach event handlers to each of them using a for loop for simplicity sake. I can't just do: for (var i = 0; i < 5; i++) { $("#link" + i).click(function(event) { alert(i); event.

[jQuery] Re: Behavior of document.write call in a .loaded external file

2009-09-30 Thread The alMIGHTY N
rite replacement code I posted, but you're > unlikely to need it. (Maybe it will prove useful for some other purpose to > someone else who stumbles on the thread...) > > -Mike > > On Wed, Sep 30, 2009 at 12:14 PM, The alMIGHTY N wrote: > > > > > Thanks for the res

[jQuery] Re: Behavior of document.write call in a .loaded external file

2009-09-30 Thread The alMIGHTY N
Thanks for the response, Mike. I can't believe I didn't put those two things together! I'm creating a page that will display a Flash Video Player (the one that comes with Dreamweaver by default) to load progressive video content. My intention is to include links on that page representing differen

[jQuery] Behavior of document.write call in a .loaded external file

2009-09-30 Thread The alMIGHTY N
I need to be able to use jQuery's load function to grab the contents of an external file and append them to a particular DOM element. The problem is that when that external file includes scripts that contain calls to document.write, I get weird behavior that changes depending on which browser I'm