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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple URL question

Status
Not open for further replies.

786snow

Programmer
Nov 12, 2006
75
Hi in the following code, what they doing with echo?


<a href="javascript:eek:penestationPE('<!--#echo var="HTTP_TRADING_URL"-->/estation/lcreorg.shtml')">Important information on participating in reorganizations and tender offers</a>
 
No it can not be. It is probably java but I don't know if you can mix java and javascript ......
 
You can use server-side scripting to dynamically build pages, which is what the code you provided does, and client-side Javascript will work fine. You're not mixing the 2 languages, since one runs ONLY on the server, and the Javascript doesn't see anything until the client computer browser has the page.

Lee
 
thats right , but

<!--#echo var="HTTP_TRADING_URL"-->/

is this java?
 
><!--#echo var="HTTP_TRADING_URL"-->/
>is this java?
No. It is server-side includes' environment variable being "echoed" to the page. It will be substituted when the page is parsed server-side.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top