Results 1 to 2 of 2

Thread: [SOLVED] DWT form elements in a template

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Rep Power

    Question [SOLVED] DWT form elements in a template


    Perhaps somebody knows this...

    I'm using DWTInputFields and DWTCheckBoxes and the like to build up a simple form. I'd like to put the input fields I create with this into a template using the standard templating features.

    I tried inserting DIV-elements to my template and reparent the HTML-elements of the input fields. This works flawlessly in FF, but doesn't seem to work well in IE.

    What is the right way to create a form for dialogs etc.?

    Kind regards
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

  2. #2
    Join Date
    Oct 2008
    Rep Power


    Ah, I found it. It's in the order of things:

    You have to first create your view and expand the template:

    html = AjxTemplate.expand(
        this.cateringView.setSize('25em', '12em');
        this.cateringView.getHtmlElement().innerHTML = html;
    and after that create the form elements and reparent them to the DIVs in your template after that.

    That way it works in IE and FF.

    Kind regards

Similar Threads

  1. Replies: 13
    Last Post: 01-28-2009, 12:30 AM
  2. Replies: 0
    Last Post: 01-03-2007, 10:45 AM
  3. email -->php form. is this possible?
    By c4l3b in forum Zimlets
    Replies: 3
    Last Post: 10-13-2006, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts