[jQuery] Re: Loop with mouse enter / leave events: help needed !

2009-07-23 Thread deltaf
The container with the appearing image overlaps the rollover area halfway. I determined this with Firebug by changing the div's style to include background: red. The answer was very clear then. :) On Jul 23, 12:40 pm, eelziere eelzi...@hotmail.com wrote: Hi All, I am very new to jquery.

[jQuery] Re: How to get event handler function?

2009-06-10 Thread deltaf
How's about: var foo = $('#mylabel').attr('onclick'); On Jun 10, 4:32 am, chudin...@gmail.com chudin...@gmail.com wrote: label id=mylabel onclick=myOnclickFunction()My Label/label How to get the myOnclickFunction() _string_ with jQuery? JavaScript getAttribute(onclick) works fine, but I

[jQuery] Re: Open div by URL?

2009-06-10 Thread deltaf
Can you check the url during the ready() on the FAQ page and various click() events within the page to create this effect? On Jun 10, 6:24 am, Bennobo benn...@googlemail.com wrote: Can I teach jquery to open a specific div by URL? Example:http://www.domain.com/help/faq#107 The FAQ Entry

[jQuery] Re: Removing dynamically inserted html

2009-06-04 Thread deltaf
What about just attaching the code you need during insert.. // Add item to list $('.additem').click(function(){ var template = $($(this).prev().get(0)).clone(); template.insertBefore($(this)); return false; }); Becomes... // Add item to list

[jQuery] Re: Need help optimizing/analyzing jquery / json

2009-05-27 Thread deltaf
I didn't look too closely at the files, but I suggest separating your data from the executing code. Use JSON to create a series of data objects and use a different script to run through those objects and build your page based on search criteria, etc. From what I saw in cruise_json.js, there's a

[jQuery] Re: .find().replaceWith()

2009-05-25 Thread deltaf
First, you need to get jQuery in the mix by doing $(html).find(). Then, you should probably be using this syntax: $(html).find('td:contains(UP)').replaceWith(...); Even better than replaceWith, if you only care about the contents of the td tags would be .html('img ... /'); On May 25, 8:47 pm,

[jQuery] Re: I'll Donate $20USD to Jquery if you can teach me how to do this

2009-05-17 Thread deltaf
And now for the teaching part of the request... KrushRadio, the crucial part that I believe you wanted to be taught about is: $('day[name=Monday]show', data) If you're familiar with CSS selector syntax, that's a great head- start.The full details can be found at

[jQuery] Re: Array of all checked checkboxes

2009-03-27 Thread deltaf
How about: var checkedBoxes = $('input.the_checkbox:checked'); FYI -- http://docs.jquery.com/Selectors/checked On Mar 27, 3:55 pm, Thierry lamthie...@gmail.com wrote: I have a series of checkboxes with class=the_checkbox.  I can get all checkboxes by classname and manually loop through each

[jQuery] Re: bind to front of event stack

2009-03-27 Thread deltaf
It's potentially a pain, but if you know all of the events bound to it, you could unbind, add your event, then add all of the others. I too wish there was an easy way to view/modify the event stack... Best of luck.