Rick, I understand where you're coming from. Years ago I really struggled with learning Javascript. I hated it and really resisted it, but realized that it is an inescapably valuable toolset for a web developer. So I perservered and now I'm pretty good at it. Books that I recommend include Visual Quickstart Guide titled "JavaScript For The World Wide Web" by Tom Netrino and Dori Smith. It's a "cookbook" style of book that makes it very easy to learn as you go. I also highly recommend the "Javascript Bible" to use as a reference. Another invaluable tool is to use the Javascript console in FireFox to help you in debugging your code.
HTH. Good luck, and happy scripting! >Nice Barney...I a total JavaScript novice, but I'll have a go >at implementing this. > >I'm very interested RIA's and have tried with Flash with >each version that comes out...but I just hate the interface, >even with the enhancements for developers in 2004. > >Perhaps I should just bite the bullet and learn JavaScript... > >If I were embarking on learning JavaScript without any knowledge >of it, what resource would you recommend I use? >Is there a "JavaScript for Dummies" type resource out there? > >Thanks for the insight! > >Rick > > >-----Original Message----- >From: Barney Boisvert [mailto:[EMAIL PROTECTED] >Sent: Saturday, March 26, 2005 2:56 PM >To: CF-Talk >Subject: Re: just noticed this when validating email > > >Yeah, the file fields was me too. > >You don't do a server request, you do it all client-side with >javascript. I didn't test this, but here's the general idea: > ><InvalidTag type="text/javascript"> > window.emailFieldCount = 1; > function addField() { > var div = document.getElementById("fieldContainer"); > div.innerHTML += '<input name="email' + ++window.emailFieldCount + >'" /><br />'; > } ></script> ><div id="fieldContainer"> > <input name="email1" /><br /> ></div> ><a href="javascript:addField();">add field</a> > >Walking through the code, we've got a single field hard coded in the >page, along with a field count stored in a variable >(window.emailFieldCount), which is initalized to one (because of the >one hard coded field). When you click the 'add field' link, the >addField() function is called, which find the div that contains the >input fields, and adds another field to the end, incrementing the >field count variable and using it to set the field name to be unique. >I've opted to use innerHTML rather than the DOM for appending the >fields for simplicity's sake; either should work. > >This is a first little window into building javascript RIAs, where the >entire app no longer resides on the server, but part of the UI >controller has moved to the client. > >cheers, >barneyb > >On Sat, 26 Mar 2005 14:01:16 -0500, Rick Faircloth ><[EMAIL PROTECTED]> wrote: > >-- >Barney Boisvert >[EMAIL PROTECTED] >360.319.6145 >http://www.barneyb.com/ > >Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200229 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

