RE: [Phplib-users] Multiple blocks per line
Brought to you by:
nhruby,
richardarcher
From: Brian P. <bp...@ct...> - 2002-09-24 18:27:30
|
That's a hard way to do what it looks like you're trying to do. Instead, I'd do something like: <a onClick="{url}"> in the template, and then in your code: if ( $x == 1 ) $t->set_var ( "url", "javascript:function($parameter1); return true;" ); else $t->set_var ( "url", "javascript:function($parameter2); return true;" ); (or something to this effect) -bpopp -----Original Message----- From: Rob Hutton [mailto:rob...@ws...] Sent: Tuesday, September 24, 2002 1:21 PM To: php...@li... Subject: [Phplib-users] Multiple blocks per line I have a need to do something like <a onClick="<!-- BEGIN block1 -->function({param});<!-- END block1 --><!-- BEGIN block2 -->function({param});<!-- END block2 -->return true;"> When I try this, I get "block1" or "block2" is not a valid handle when I try to set block. Is there a way to do this? Rob Hutton Web Safe www.wsafe.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |