What I was looking for was a way to defer my results until after my actions had been completed, for example to generate content-specific <title> and <meta> within the head, as:

<@RESULTSVAR NAME="body"> <!-- send results to the body variable -->
do my database actions
<@RESULTSVAR NAME="resultsHTML"> <!-- a reserved word for the normal output variable -->
<!DOCTYPE ...
<html><head><title>@@request$title</title>...</head> <!-- variables set in the actions above -->
<body><@VAR SCOPE="request" NAME="body" ENCODING="html"></body></html>

Of course there are numerous programatic ways to achieve this:
<@PURGERESULTS>
do my database actions
<@ASSIGN SCOPE="request" NAME="body" VALUE="<@RESULTS>">
<@PURGERESULTS>
<!DOCTYPE ...
<html><head><title>@@request$title</title>...</head>
<body><@VAR SCOPE="request" NAME="body" ENCODING="html"></body></html>

I just think it would be more maintainable, and much more flexible to specify variable(s) into which results accumulate. For example, the presentation of error trapping could be deferred.

On Nov 10, 2005, at 10:25 AM, Robert Garcia wrote:

You can't assign results that don't exist yet. So I don't think a feature request is going to help you on that.

You would have to move your method, that needs all the results, to after the results are available, in <@results>

--

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/

On Nov 10, 2005, at 10:09 AM, Alan Wolfe wrote:

Very cool, yeah it looks like <@results> grabs all the results up to that point in the file but where i want to assign the sql/ witango to a variable is somewhere in the middle unfortunately :P

oh well, something for the future hopefully! (:


On 11/10/05, William M Conlon <[EMAIL PROTECTED]> wrote: Yeah, it's well hidden.

I've asked for this feature already.  It would be similar to
returning your results html from a method call, or like an encoding
attribute that let you specify the variable to which the results are
appended.


On Nov 10, 2005, at 9:55 AM, Alan Wolfe wrote:

> I can't find the feature request place anymore on witango.com
> (maybe i'm just blind) but i was just thinking a good feature would
> be to have an option to make a results html go into a variable
> instead of being output to the screen.
>
> I have some complicated witango code and sql i'm trying to put into
> a variable and making sure the quotes are toggled correctly etc
> would not be an issue if a results HTML could just be redirected to
> a variable (:
> _____________________________________________________________________ _ > __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/ maillist.taf

Bill

_____________________________________________________________________ ___
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

_____________________________________________________________________ ___ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/ maillist.taf

______________________________________________________________________ __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Bill

William M. Conlon, P.E., Ph.D.
To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306
   vox:  650.327.2175 (direct)
   fax:  650.329.8335
mobile:  650.906.9929
e-mail:  mailto:[EMAIL PROTECTED]
   web:  http://www.tothept.com

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to