Skip to main content
June 7, 2010
Question

Adding onclick behaviors

  • June 7, 2010
  • 1 reply
  • 320 views

Over the past year I have worked hard to master DW and PHP, but my clients are increasingly in need of onclick behaviors like conditional form fields (form fields that change according to a previous option being selected) and other JS-based functions that don't require page reload. What is the easiest way to learn to integrate these behaviors into DW design?

After checking out asp.net, which offers all these functions, I'm wondering why I shouldn't just switch and forget DW altogether? What is DW's advantage? All I can see now are all its disadvantages. What am I not getting?

This topic has been closed for replies.

1 reply

June 8, 2010

You are comparing apples and horses.

asp.net is a language, DW is an editor, You cannot switch from DW to asp.net

For dynamically created form elements, your best bet is using JavaScript, which is compatible with most of the modern browsers.

I suggest you to read about HTML DOM elements, creation and manipulation using Javascript.

You can also create new form elements based on live data from server, using AJAX.

Be careful with asp.net. It works best on Windows servers, and its client side scripting language (VBscript) is supported only by Internet Explorer.