From: Jeff S. <hea...@ya...> - 2005-07-21 04:06:23
|
--- Mel <con...@ya...> wrote: > i have a few basic questions. > > - i have pre-existing code written win Don's cgi.tcl > - i am using latest tclhttpd kit, which is unwrapped > with my > own code placed in htdoc > > - my index.tml looks like: > [Doc_Dynamic] > > <LINK REL="STYLESHEET" HREF="site.css"> > <LINK REL="STYLESHEET" HREF="/TKT/doc/TKT.css"> > > [ > package require cgi > > set env(SERVER_ADDR) 127.0.0.1 > set APP TKT > set ENV dev > > lappend auto_path\ > $starkit::topdir/htdocs/tk\ > $starkit::topdir/htdocs/tk/src\ > $starkit::topdir/htdocs/tk/src/util\ > $starkit::topdir/htdocs/$APP/app.vfs/lib/app > > tk::TraceOff > > cgi_buffer { > cgi_input > cgi_debug -on > > tk::start > } > ] > > So far so good, i start httpd and it goes to my page > and all is fine > now the problems begin: > > *** every time i refresh the page, i see that all > images are re-loaded. > (not happening under apache) > > *** even though i click on links, i can see that my > url is changed, and > i even see it from cgi_debug that all my url items > are correct. > However, i still get the home page as though nothing > has happened. > > I was under the impression that [Doc_Dynamic] should > re-load the > content > > can someone please help me here :-) > > > > http://Mel.RedOlive.com Mel, Sorry I can't answer your questions. However, I have had success running Don Libes' cgi.tcl with TclHttpd. I run Wikit in a slave interpreter with a TclHttpd starkit. Wikit uses Don Libes' cgi.tcl. I created and then destroyed a slave interpreter per request to simulate a cgi environment. If you are interested see http://wiki.tcl.tk/11121 Also I am in the process of getting the examples that come with Don Libes' cgi.tcl package working with a TclHttpd starkit. This uses the same approach as above. I have most of the examples working but some of the examples "exec" some unix specific commands. I'll see if there is a Tcl equivalent so the examples run on windows as well. I am going to post to the Tcler's wiki when I have finished. I'll email you seperately what I have done so far as a starkit! Hope this helps! Kind Regards Jeff Smith __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |