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 Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users