PDA

View Full Version : Feature request - Dynamic Behaviors


neo314
03-11-2009, 02:20 AM
I noticed that the behaviors menu for security assist won't recognize dynamically named form elements like name="discount_<?php echo $cnt; ?>". Since the elements id is passed to the function, there is no reason for the limitation.

I'd like to see it updated so the php does not have to be deleted and added back. The inserted onBlur code just needs to reference the same dynamic value like:

<input name="discount_<?php echo $cnt; ?>" type="text" id="discount_<?php echo $cnt; ?>" onBlur="WAValidateNM(document.form1.discount_<?php echo $cnt; ?>,'- Provide a percentage with no more than 1 digit after the decimal.',0,99,1,10,1,',.',document.form1.discount _<?php echo $cnt; ?>,0,true)" value="<?php echo $row_discounts['discount']; ?>" size="3" maxlength="3">

P.S. Is this where feature requests for this extension go?

Ray Borduin
03-11-2009, 08:16 AM
Thank you for the suggestion. For a while Dreamweaver didn't work with server side code in behaviors. I think that functionality was last tested on DW MX 2004, so it is possible we could re-address that limitation in an update if DW works properly now. We also have a bit more experience now, so we might be able to pull something off. I will log this as a feature request to be considered with the next update.

This is actually a limitation in Validation Toolkit, and not Security Assist for those who may be confused when reading this.

neo314
03-11-2009, 01:37 PM
Whoops. I don't know why I was think of Security Assist. Probably mentally thinking of Validation as a form of Security... :eek:

Can you move it to the correct forum?