Difference between revisions of "Template:ExampleContact"

From Organic Design wiki
Line 7: Line 7:
 
{{#input:type=textarea|style=width:350px|id=xc-address|name=address|{{{address}}}}}<br>
 
{{#input:type=textarea|style=width:350px|id=xc-address|name=address|{{{address}}}}}<br>
 
{{#input:type=ajax|value=Load|update=contact-form}}{{#input:type=ajax|value=Save|update=contact-form
 
{{#input:type=ajax|value=Load|update=contact-form}}{{#input:type=ajax|value=Save|update=contact-form
|onClick=document.getElementById('xc-content').setAttribute('value','{'+'{ExampleContact{{!}}name='+document.getElementById('xc-name').value+'}'+'}');}}
+
|onClick=document.getElementById('xc-content').setAttribute('value','{'+'{ExampleContact
 +
{{!}}name='+document.getElementById('xc-name').value+'
 +
}'+'}');}}
 
{{#input:type=hidden|name=caction|value=replace}}
 
{{#input:type=hidden|name=caction|value=replace}}
 
{{#input:type=hidden|name=content|id=xc-content}}
 
{{#input:type=hidden|name=content|id=xc-content}}
 
}}
 
}}
 
</div>
 
</div>

Revision as of 08:31, 14 September 2007

{{#form:method=post|style=width:400px| Name: {{#input:type=select|id=xc-name|name=title|*Select name

  • John Doe
  • Ping Li
  • Hans Berg}}

Phone: {{#input:name=phone|id=xc-phone|value={{{phone}}}}}

Address:
{{#input:type=textarea|style=width:350px|id=xc-address|name=address|{{{address}}}}}
{{#input:type=ajax|value=Load|update=contact-form}}{{#input:type=ajax|value=Save|update=contact-form |onClick=document.getElementById('xc-content').setAttribute('value','{'+'{ExampleContact |name='+document.getElementById('xc-name').value+' }'+'}');}} {{#input:type=hidden|name=caction|value=replace}} {{#input:type=hidden|name=content|id=xc-content}} }}