[jQuery] Re: Moving a div container from within to before a p container

2009-06-06 Thread infoaddicted
wasseem's answer looks good, I'd just like to off a little friendly advice on coding style, advice meant to make revisiting your own code in the future easier as well as making it under- standable to others. in a block like: { var a= $(this).attr('alt'); ... } consider

[jQuery] Re: Using jQuery to insert IFrame dynamically after page loads.

2009-06-05 Thread infoaddicted
There is, AFAIK, no more robust onload function. The shorthand for it is quite easy: instead of: $(document).ready(function () { ... you only have to do $(function() { ... Make sure that you're not confusing the template if() block, which would be server side, with

[jQuery] Re: What happened to 'this week in jQuery'?

2009-06-05 Thread infoaddicted
This Week in jQuery, vol. 6 - http://blog.jquery.com/2009/05/01/this-week-in-jquery-vol-6/ ? On Jun 5, 2:15 pm, MorningZ morni...@gmail.com wrote: http://blog.jquery.com/ this week in jQuery-s last entry:  May 1st  :-( Nothing new for the jQuery peeps to note in 5 weeks?

[jQuery] Re: What happened to 'this week in jQuery'?

2009-06-05 Thread infoaddicted
Nevermind. D'oh! On Jun 5, 4:59 pm, infoaddicted jack.lapla...@gmail.com wrote: This Week in jQuery, vol. 6 -http://blog.jquery.com/2009/05/01/this-week-in-jquery-vol-6/ ? On Jun 5, 2:15 pm, MorningZ morni...@gmail.com wrote: http://blog.jquery.com/ this week in jQuery-s last entry

[jQuery] Re: HELP jQuery and Ajax form submission !!!!!!!!!!!!!!!! help ! help !! help !!!! help !! help !! help !!

2009-06-03 Thread infoaddicted
You have a LOT of non-jquery code in here. My advice? Don't expect the community to solve this for you. Take a step back and read the jQuery documentation. When you need to have community input, narrow your code down to what works, then add features until it breaks. The first documentation

[jQuery] Re: jQuery, the Ready Function, and Other Javascript - A Dirt Simple Inquiry

2009-05-26 Thread infoaddicted
According to the documentation, the body of your ready function will execute when the DOM has loaded and is ready to traverse. The last two scripts manipulate the DOM, so I would put the ready function afterward so I could be more confident in the results. This is a good area for

[jQuery] Re: routing event to html map

2009-05-16 Thread infoaddicted
It would be helpful if you posted snippets of your HTML along with the JQuery code. On May 16, 12:26 pm, jayarjo jaya...@gmail.com wrote: I've got several map tags with custom areas defined and corresponding images with usemap attributes. The problem is that those images are covered with

[jQuery] Re: Better way to trim whitespace from input?

2009-05-15 Thread infoaddicted
ok, one more shorter try: it works! $(document).ready(function(){ $(#couponCode).blur(function(){ $(#couponCode).val($(this).val().toUpperCase().replace(/\s+ $/,'')); }); }); On May 13, 12:53 pm, jckos johncar...@gmail.com wrote: Hi, I need to transform all characters entered in an

[jQuery] Re: How to display additional text along with link

2009-05-15 Thread infoaddicted
This calls for a function, where you can hide the gory details. Use a selector to gather up the a elements, and pass that as the argument to the function. pseudocode: var linksToChange = JQuery Selector; function changeLinks( linksToChange ){ either: a for loop to step through the

[jQuery] Re: Better way to trim whitespace from input?

2009-05-14 Thread infoaddicted
FYI: The discussion group software put a premature line break at the end of line 4 of the code. On May 14, 7:35 pm, infoaddicted jack.lapla...@gmail.com wrote: How about this?  It's only called when the user leaves the field.  The replace uses a regular expression, the part between the forward

[jQuery] Re: IE7 renders twice: before and after ready() process

2009-05-08 Thread infoaddicted
Post your code On May 7, 8:58 pm, Henrik Bechmann hbechm...@gmail.com wrote: I have this problem: I hook a javascript function to 'ready' using javascript. This function creates and inserts a lot of html code. The trouble is that in IE7 the page renders twice: once before the inserted

[jQuery] Re: Getting the text of an element: IE6 vs. FF3

2009-05-07 Thread infoaddicted
On Wed, May 6, 2009 at 01:08, infoaddicted jack.lapla...@gmail.com wrote: I have some HTML:    a href=# class=linksLink One/abr /    a href=# class=linksLink Two/abr /    a href=# class=linksLink Three/abr / And the following JQuery JS to test the onclick handler         $(.links

[jQuery] Re: website review. help?

2009-05-07 Thread infoaddicted
Hi Dan The first impression I got (viewing on FF3/linux) is that you have a nice looking design. The second impression was that the random scrolling was distracting and annoying. I think the randomness and non-user directed action is the annoying part. There's something about quick motion

[jQuery] Getting the text of an element: IE6 vs. FF3

2009-05-06 Thread infoaddicted
I have some HTML: a href=# class=linksLink One/abr / a href=# class=linksLink Two/abr / a href=# class=linksLink Three/abr / And the following JQuery JS to test the onclick handler $(.links).click(function(){ alert( this.text - +