• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Dynamic pages.

Dynamic pages. 16 years 11 months ago #572

  • Kees
  • Kees's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hallo, thanks for the great job you dit to make it simple.;)

It's not simple enough for me, is it possible that some one give's 1 example for a dynamic form, like the pizza ordering form?
I tried to build it, but it dit not work.
And the code, shout it be in the template or can i work it out by filling the form?

Thanks, Kees
The administrator has disabled public write access.

Re:Dynamic pages. 16 years 11 months ago #573

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Hi Kees,

here's the code for the pizza form's Form Style Field:
<div align=\"left\" style=\"width:100%\" class=\"componentheading\">{formtitle}</div>
<form name=\"{formname}\" id=\"{formname}\" method=\"post\" action=\"{action}\" {enctype} onsubmit=\"return ValidateForm(fields);\">
	<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" class=\"forme\">
	{formfields}
	</table>
</form>
<script language=\"javascript\">
function changeSel2(index){
MyOption = new Array();
MyOption[0] = new Array();
MyOption[0][0] = 'Sprite';
MyOption[0][1] = 'Fanta';
MyOption[0][2] = 'Cola';
 
MyOption[1] = new Array();
MyOption[1][0] = 'Bud';
MyOption[1][1] = 'Heineken';
MyOption[1][2] = 'Corona';
 
Sel2 = document.getElementById('drink');
//empty Sel2 items first
for(i=0;i<Sel2.options.length;i++){
Sel2.options[i] = null;
}
//populate with new items
for(i=0;i<MyOption[index].length;i++){
Sel2.options[i] = new Option(MyOption[index][i],MyOption[index][i]);
}
}
</script>

Then i added on Sel1's Additional Attributes(the drink Type selectbox)
onchange=\"changeSel2(this.selectedIndex)\"

Hope this helps.<br><br>Post edited by: alex, at: 2007/05/19 13:44
The administrator has disabled public write access.

Re:Dynamic pages. 16 years 11 months ago #577

  • Kees
  • Kees's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Thanks, i trie to copie the mening of the forms.
Gr Kees
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!