Results 1 to 2 of 2

Thread: [SOLVED] DWT form elements in a template

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    74
    Rep Power
    7

    Question [SOLVED] DWT form elements in a template

    Hi!

    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
    Dennis
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

  2. #2
    Join Date
    Oct 2008
    Posts
    74
    Rep Power
    7

    Default

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

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

    Code:
    html = AjxTemplate.expand(
            "eu_zedach_catering.templates.cateringDialog#CateringDialog"
        );
        this.cateringView.setSize('25em', '12em');
        this.cateringView.getHtmlElement().innerHTML = html;
        
        this.cateringDialog.setView(this.cateringView);
    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
    Dennis

Similar Threads

  1. Replies: 13
    Last Post: 01-28-2009, 01:30 AM
  2. Replies: 0
    Last Post: 01-03-2007, 11:45 AM
  3. email -->php form. is this possible?
    By c4l3b in forum Zimlets
    Replies: 3
    Last Post: 10-13-2006, 01: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
  •