carlosAlberto
IS-IT--Management
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 "<html><head>"
puts "<script language=javascript>"
# This function is called from the 'change' button
puts "function change(){"
puts "window.location.href='./initial.html';}"
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????????????
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 "<html><head>"
puts "<script language=javascript>"
# This function is called from the 'change' button
puts "function change(){"
puts "window.location.href='./initial.html';}"
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????????????