Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing HTML variables

Status
Not open for further replies.

Shlomo

IS-IT--Management
May 11, 2000
28
US
How does one use an HTML variable in the javascript.<br>I tried to use it staight out but no luck.&nbsp;&nbsp;I was trying to use var @_custEmail = custEmail.indexOf(-1) but it didn't work. I think this might be bercause custEmail is an HTML varible and I didn't do what I needed to to [ass it correctly.<br>THanks!
 
Basically you need to get to grips with:<br>*&nbsp;&nbsp;the Javascript object model.<br>*&nbsp;&nbsp;which HTML tags and their attributes correspond to&nbsp;&nbsp;which parts of the Javascript object model.<br><br>It doesn't help that IE and Netscape have slightly different Javascript object models and HTML dialects.&nbsp;&nbsp;Most commentators now seem to think IE's feature-set is more comprehensive on the whole, but someone will probably bite my head off for this.<br>
 
Thanks, Do you of any sites that give a thourough working through these topics? <br>Also thanks for your response to remembering passwords (Coldfusion).<br>&nbsp;I haven't gotten it to work but I am going to look into sesion variables some more. We only have one server here so clustering shouldn't be an issue but I appreciate the refence, I have saved it as&nbsp;&nbsp;It will surely come in handy some day.<br>&nbsp;&nbsp;&nbsp;You seem to be quite fluent in CF.&nbsp;&nbsp;Can you tell me, (newbie) how one can advance in CF and JS.&nbsp;&nbsp;Iv'e read Ben Forta's basic book but there seems to be alot more to learn.&nbsp;&nbsp;(e.g. sesion variables aren't discussed in that book at all)<br>Thank you<br><br>
 
Javascript & HTML<br>-----------------<br>For starters I suggest a book on HTML & one on Javascript.&nbsp;&nbsp;I chose:<br>*&nbsp;&nbsp;&nbsp;&nbsp;Elizabeth Castro's &quot;Visual Quickstart Guide:&nbsp;&nbsp;HTML 4&quot; (Peachpit Press, 2000; ISBN 0-201-35493-4) because it has a better quick HTML reference in an appendix than most books twice the price, and a colour chart on the inside back page.<br>*&nbsp;&nbsp;&nbsp;&nbsp;Tom Negrino & Dori Smith's &quot;Visual Quickstart Guide:Javascript&quot; (Peachpit Press, 1999) because it has a summary of the IE and Netscape Javascript DOMs and flags what features are in which version of each of the big 2 browsers.<br>If you want hardcore reference material on Javascript I suggest you download Netscape's Javascript Reference and Javascript Client Guide from <A HREF=" TARGET="_new"> - but remember they represent only Netscape's version.<br><br>ColdFusion<br>----------<br>You flatter me - I've been teaching myself ColdFusion for a month.&nbsp;&nbsp;Most of what you need is available on the Web:<br>*&nbsp;&nbsp;&nbsp;&nbsp;download the official CF documentation from <A HREF=" TARGET="_new"> comes as 1 big ZIP file but &quot;Developing Applications with ColdFusion&quot; (often referred to as DWAC) is probably the best start point.&nbsp;&nbsp;It's all in the form of web pages&nbsp;&nbsp;-&nbsp;&nbsp;when unzipping, be sure to select the &quot;Use folders&quot; option otherwise the internal links will fail.<br>*&nbsp;&nbsp;&nbsp;&nbsp;<A HREF=" TARGET="_new"> has links directly or indirectly to most of the other good stuff.<br>Thanks for the implicit advice not to buy Ben Forta's basic book.
 
Thanks for the advice. just a word on Forta's book, it helped me with HTML - it's written very clear (I knew the SQL already but it's good reference) and basic CF&nbsp;&nbsp;so if you want brushup's on that it's worthwhile, but it sounds that the docs you mentioned make it unnecessary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top