Contact us: Difference between revisions

From CSDMS
No edit summary
No edit summary
Line 1: Line 1:
== Comments ==
<div id='wgBlogComments'>{{Talk:{{PAGENAMEE}}}}</div>
{{#form:
{{#form:
{{#input: type = select
{{#input:type=hidden|name=content|id=blogContent}}
| name = cat
{{#input:type=hidden|name=title|value=Talk:{{PAGENAMEE}}}}
| value = {{#request:cat}}
{{#input:type=hidden|name=summary|id=blogSummary}}
| *Select category {{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, }}
{{#input:type=hidden|name=caction|value=append}}
}}
 
Heading:  {{#input:type=text|id=blogTitle}}
Your name: {{#input:type=text|id=blogName}}
Comment:  {{#input:type=textarea|rows=2|id=blogBody}}


{{#input: type = submit | value = List members}}
{{#input:type=ajax|value=Post comment|update=wgBlogComments|onClick=
}}
var summary='comment posted by '+document.getElementById('blogName').value;
document.getElementById('blogContent').setAttribute('value',
'\n==='+document.getElementById('blogTitle').value+'===\n'+
  document.getElementById('blogBody').value+'\n:<i>'+summary+'</i>\n');
document.getElementById('blogSummary').setAttribute('value','Blog '+summary);}}


{{#if:
{{#request:cat}} | {{#dpl:category = {{#request:cat}} }}
}}
}}

Revision as of 20:01, 13 February 2008

Comments

{{#form: {{#input:type=hidden|name=content|id=blogContent}} {{#input:type=hidden|name=title|value=Talk:Contact_us}} {{#input:type=hidden|name=summary|id=blogSummary}} {{#input:type=hidden|name=caction|value=append}}

Heading: {{#input:type=text|id=blogTitle}} Your name: {{#input:type=text|id=blogName}} Comment: {{#input:type=textarea|rows=2|id=blogBody}}

{{#input:type=ajax|value=Post comment|update=wgBlogComments|onClick= var summary='comment posted by '+document.getElementById('blogName').value; document.getElementById('blogContent').setAttribute('value', '\n==='+document.getElementById('blogTitle').value+'===\n'+

 document.getElementById('blogBody').value+'\n:'+summary+'\n');

document.getElementById('blogSummary').setAttribute('value','Blog '+summary);}}

}}