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!

Tcl & Javascript

Status
Not open for further replies.

carlosAlberto

IS-IT--Management
Oct 9, 2001
109
GB
I would like to display a html page from within my TCL script.

Background:
I have a html form and when submitted calls a tcl script which interprets the data and the results are to be displayed in a new html page.

At the minute I tried the following code:
puts "Content-type: text/html\n\n "
puts &quot;<html><head>&quot;
puts &quot;<script language=javascript>&quot;
# This function is called from the 'change' button
puts &quot;function change(){&quot;
puts &quot;window.location.href='./initial.html';}&quot;

But I thought this looked a bit dubious and it didn't work (obviously there was a lot more).

Is there a special way of putting javascript code into a TCL script????????????

 
we do the same with the cgi with perl ....

it would have to work ...
do you really put it on an html page ?

puts $fileid &quot;text&quot;

?
 
Not sure what you mean here......

Preferably i would like to include a link similar to when you source another TCL file but to a HTML page.

But, i don't think that is possible. So... I was putting 'puts &quot; &quot;' before all line within a html file to display the output.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top