Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-2011, 03:33 AM
Active Member
 
Posts: 45
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 7.1.4_GA_2555.SLES10_64_20120105095040 SLES10_64 NETWORK edition, Patch 7.1.4_P1.
Reply With Quote
  #2 (permalink)  
Old 05-04-2011, 10:59 PM
Active Member
 
Posts: 45
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.