Forums

This topic is locked

trim down code in Dynamic Parameters (thunderbolt)

Posted 27 Oct 2004 04:08:57
1
has voted
27 Oct 2004 04:08:57 Chris Charlton posted:
Server-Behavior (PHP_MySQL): I have a dynamic textarea for an <i>if</i> statement.
<b>When users chooses a dynamic parameter (thunderbolt) it defaults: </b><pre id=code><font face=courier size=2 id=code>&lt;?php echo $_GET['var']; ?&gt;</font id=code></pre id=code><b>but I want just a nice clean </b><pre id=code><font face=courier size=2 id=code>$_GET['var']</font id=code></pre id=code><b>...any thoughts?</b> (DMXzone extensions have this functionality if I remember right)

Also, I am a big fan of <i>Advanced Conditional Region 2.0</i>, ACR2.0 & other DMXzone extensions appends dynamic parameters into the text fields & text areas. I would like to hear the Ext.Dev.Community thoughts on replicating this underplayed functionality. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Edited by - ccharlton on 27 Oct 2004 04:14:02

Replies

Replied 30 Oct 2004 21:45:31
30 Oct 2004 21:45:31 Chris Charlton replied:
I dug into the DMXzone extension code and our original though was true; they sniff the ServerModel and parse out the opening/closing server markup tags. I had planned to do this in my extension, and the code is quite small, a few functions do a lot of (good) damage. Basically the "thunderbolt" calls the MM dynamic paramater dialog, and it cleans up what is returned. I plan to write my own version of these functions since I only need it in PHP.

I know of a Flash class (OO) site that shares functions/classes/prototypes - I really wish there was one avail for DW extension wrighting. I mean, we have the API/Extending documentation...I own every decent book published about extension programming, and yet I find myself wanting better and better documentation....am I alone?!

...Danilo Celic @ CommunityMX.com helped on this:
www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=190&threadid=911585&enterthread=y

~~~~~~~~~~~~~~~
Chris Charlton

Sr. Developer - www.fingerprintMedia.com

Reply to this topic