I did not get this question answered. I came up with a solution, but I
don't think it's the best:
I put $js_enabled as a global variable in my handler.pl, and now my
server-side script just sets it.
Like I said, I don't think this is the best solution, but it works and
it doesn't seem too bad. I only had one global variable before, so now
I have two.
Amiri
On May 8, 2008, at 6:09 PM, BenRifkah Bergsten-Buret wrote:
> Did you get this question answered?
>
> -- Ben
>
> On Wed, May 7, 2008 at 11:22 AM, amiribarksdale
> <[EMAIL PROTECTED]> wrote:
>>
>> Does anyone have insight into how to do this? I am trying to set a
>> variable
>> $js_enabled by calling a component with Ajax if javascript is indeed
>> enabled. In my calling component I have
>>
>> $js_enabled => undef
>>
>> in the <%args> block, and in the called component I have simply
>>
>> my $js_enabled = 1;
>>
>> in the <%init> block. But my calling component doesn't get the
>> setting.
>> Another wrinkle is that I'm calling the Ajax thing with "unobtrusive
>> javascript"--in other words, the ajax request is not inside the
>> calling
>> component. So basically I am looking for some sort of hook to hang
>> this
>> $js_enabled variable on. I tried putting it in the %ARGS hash:
>>
>> $ARGS{'js_enabled'} = 1;
>>
>> But that didn't work either.
>>
>> Any help would be appreciated.
>>
>> Amiri
>> --
>> View this message in context:
>> http://www.nabble.com/Returning-a-*Variable*-From-Ajax--tp17111416p17111416.html
>> Sent from the Perl Mason - Users mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Don't miss this year's exciting event. There's still time to save
>> $100.
>> Use priority code J8TL2D2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Mason-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mason-users
>>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users