Question about text cgis

Mark Smith mark at maseurope.net
Fri Mar 31 06:28:23 EST 2006


Jim, apologies - when I tried this last night, I just kept getting  
errors, but this morning, it seems to work just fine.

Best,

Mark

On 30 Mar 2006, at 21:24, Jim Ault wrote:

> Try these steps :
>
> put "script01"&".txt" into FN
> put "c:/my documents/" into pathh
> set the script of this card to url ("file:" & pathh & FN)
>
> --or the script of button 22, etc.
>
> set the script of this card to ""
>
> --adding to the stack script would be
> get the script of this stack
> set the script of this stack to it & cr &  url ("file:" & pathh & FN)
>
> --more elaborate
> put the script of this card into origCdScript
> get url ("file:" & pathh & FN) & cr & origCdScript
> set the script of this card to it
> --call handler
> set the script of this card to origCdScript
>
> --alternative
> put " origCdScript"&".txt" into FN
> put "c:/my documents/" into pathh
> put the script of this card into url ("file:" & pathh & FN)
>
>
> Jim Ault
> Las Vegas
>
> On 3/30/06 12:25 PM, "jbv" <jbv.silences at club-internet.fr> wrote:
>
>> Hi list,
>>
>> I have a blank : I'm looking for a way to "include" external handlers
>> in a text-based cgi script and can't find a way to do that...
>> Here's what I mean : let's say I have a handler that performs a  
>> specific
>>
>> task ("on myTask") that I want to use in various cgi scripts. Of  
>> course
>> I can paste it in every script after the "on startup / end startup"
>> handler,
>> but it would be more convenient if it were an external file and to  
>> just
>> call it from each script, just like "#include" for libraries in C, or
>> "require_once" in php etc.
>>
>> I see how to do it with cgi stacks, but is there a way to do that  
>> with
>> text-based scripts ?
>>
>> Thanks,
>> JB
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list