[jQuery] Re: code review for short snippet

2009-04-05 Thread John H
> Although not jquery related - I would suggest always using php > variables outsite a string and use single quotes. > It enables proper syntax highlighting in editors and makes the code > easier to read for you and any future developers. I completely agree about concatenating variables in php st

[jQuery] Re: code review for short snippet

2009-04-05 Thread John H
> Note that, clicking "More options", you can delete your posts. Thanks Steve. I have removed the repeated posts.

[jQuery] Re: code review for short snippet

2009-04-05 Thread John H
> > I had to remove the dollar sign from $epc otherwise Firefox > > reported "missing variable name". > > That doesn't sound right - there must have been something else causing that. Yes, yes, you are correct. I am outputting the javascript from php, which was interpreting $epc because the inline

[jQuery] Re: code review for short snippet

2009-04-04 Thread John H
Ricardo, this is equally instructive. Thanks to you as well. John p.s. I don't know what happen with my repeated original post. I must have gotten overzealous with the submit key. :p

[jQuery] Re: code review for short snippet

2009-04-04 Thread John H
Michael, this is excellent and very instructive--thanks! I had to remove the dollar sign from $epc otherwise Firefox reported "missing variable name". Thanks also for answering my question re: existence. Your explanation makes perfect sense. I assume by your exclusion that wrapping the whole th

[jQuery] code review for short snippet

2009-04-04 Thread John H
I'm not new to web development or javascript, but am relatively new to jQuery. I'm wondering if someone would be willing to quickly review the following code for efficiency and best practices. The function works as required, but I'd like to take this as a learning opportunity. In a nutshell the c

[jQuery] code review for short snippet

2009-04-04 Thread John H
I'm not new to web development or javascript, but am relatively new to jQuery. I'm wondering if someone would be willing to quickly review the following code for efficiency and best practices. The function works as required, but I'd like to take this as a learning opportunity. In a nutshell the c

[jQuery] code review for short snippet

2009-04-04 Thread John H
I'm not new to web development or javascript, but am relatively new to jQuery. I'm wondering if someone would be willing to quickly review the following code for efficiency and best practices. The function works as required, but I'd like to take this as a learning opportunity. In a nutshell the c