even the simple script you are doing returns :
here
----------------------------------------------------------------------------
----
invoked "break" outside of a loop
while executing
"namespace eval request {
buffer_add "<body>
<h1></h1>
"
puts here
break
puts there
hputs "
</body>
"
}
"
I do not have before or after script.just childInit script that loads
packages
and connect to database.
maybe I should mention:
the platform is linux red-had 7.1.
tcl version is 8.3
Thanks
Yahalom Emet
Software Developer
Xor Technologies Ltd.
Tel: +972 (0)4-6619164
E-mail: [EMAIL PROTECTED]
Web: http://www.xortechnologies.com
----- Original Message -----
From: "David N. Welton" <[EMAIL PROTECTED]>
To: "yahalom emet" <[EMAIL PROTECTED]>
Cc: "Mod_dtcl" <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 9:03 PM
Subject: Re: terminating script
> "yahalom emet" <[EMAIL PROTECTED]> writes:
>
> > sorry for the late reply...
>
> No problem...
>
> > it was in a tcl script
>
> Tcl scripts are different because they aren't run inside a namespace.
> You have to manage things yourself... one smart thing you could do
> would be to put everything in a proc:
>
> proc mytclpage { } {
> ...
> ...
> }
>
> mytclpage
>
> Exits are then performed via 'return'.
>
> > but when I do break insite a ttml file I am also getting:
>
> > invoked "break" outside of a loop
> > while executing
> > "ReturnAnswer "OP_ERR_XML_FORMAT" "$msg""
> > (in namespace eval "::request" script line 311)
> > invoked from within
> > "namespace eval request {
>
> Strange... for me, this seems to work ok:
>
> <body>
> <h1></h1>
> <?
>
> puts here
>
> break
>
> puts there
>
> ?>
> </body>
>
> Even something that simple doesn't work? If that's the case, maybe
> it's interacting with something else you've got? An errorscript?
> before or after scripts?
>
> --
> David N. Welton
> Consulting: http://www.dedasys.com/
> Free Software: http://people.debian.org/~davidw/
> Apache Tcl: http://tcl.apache.org/
> Personal: http://www.efn.org/~davidw/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]