D
darrel
I am using a javascript WYSIWYG text editor for our CMS. To grab the proper
content we need to add a javacsript call to the form:
Form1.Attributes.Add("onSubmit", "myOnSubmitEventHandler();")
That works fine.
However, we also have some dropDownLists that trigger a postback. If we
change these, I still need to update the text editor, so I added attributes
to them:
ddl_customContent.Attributes.Add("onChange", "myOnSubmitEventHandler();")
ddl_permissions_primaryCategory.Attributes.Add("onChange",
"myOnSubmitEventHandler();")
Again, that's working just fine.
The catch...I now have a few additional Buttons that trigger postbacks.
However, I can't figure out how to apply the same attribute to these
particular functions. They seem to ignore the 'onSubmit' attribute of the
form. Does that make sense?
I tried adding an onClick event, but that, too, doesn't seem to behave the
same way as the onChange event.
Thoughts?
-Darrel
content we need to add a javacsript call to the form:
Form1.Attributes.Add("onSubmit", "myOnSubmitEventHandler();")
That works fine.
However, we also have some dropDownLists that trigger a postback. If we
change these, I still need to update the text editor, so I added attributes
to them:
ddl_customContent.Attributes.Add("onChange", "myOnSubmitEventHandler();")
ddl_permissions_primaryCategory.Attributes.Add("onChange",
"myOnSubmitEventHandler();")
Again, that's working just fine.
The catch...I now have a few additional Buttons that trigger postbacks.
However, I can't figure out how to apply the same attribute to these
particular functions. They seem to ignore the 'onSubmit' attribute of the
form. Does that make sense?
I tried adding an onClick event, but that, too, doesn't seem to behave the
same way as the onChange event.
Thoughts?
-Darrel