HighDots Forums  

Re: inserting var values in web page....

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: inserting var values in web page.... in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Douglas Crockford
 
Posts: n/a

Default Re: inserting var values in web page.... - 08-05-2003 , 10:24 PM






Quote:
looking to display a var value on a web page or maybe use a var value as a
display arg.

So,
somewhere in the script section there would be
var bcolor="red";
var msg="Hello World";

Would then like to somehow use
BODY BGCOLOR= bgcolor

and in the BODY there would be something like
p> msg </p

I remember seeing explanations somewhere, but
I can't find them now, and
not sure how to look them up in the index.....
This may indicate that you have an inadequate book (most of them are). Or
perhaps you are trying to impress us by suggesting that you know what an index
is.

Quote:
Maybe something like width="&{pWidth}; for the first and
These were JavaScript entities. Wonderful things. Last seen in Navigator 4.
Netscape couldn't convince the group that sets the world's web standards,
Microsoft, to adopt it. Avoid them.

Quote:
then use <% %> for the second ?????
This sort of notation is generally used on the server-side (PHP, JSP, etc).

If you want to do this stuff dynamically on the client side, you are going to
have to master JavaScript and the DOM.

http://www.crockford.com/javascript/javascript.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.