• 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: Checkbox images

Checkbox images 12 years 7 months ago #18822

  • lanz
  • lanz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
I would like to make checkboxes containing images as where a client can give in which pdf's he would like to download and then submitting. Something like this: www.e-village.nl/downloads/onze-downloads/.

So the image part is not the problem but configuring the actual checkboxes themselves as this is databse driven i guess?
The administrator has disabled public write access.

Re: Checkbox images 12 years 7 months ago #18825

  • thithi2
  • thithi2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
I guess the answer holds into the script on it.
Using fire bug I could see that the images with the "check button" holds like this:

<label class="downLoads download downloadBMQ342011">
<input type="checkbox" onclick="aTogle(this);" name="EVbenchmark2011Q34">
<span class="size12 darkgray">Benchmark Q3&4 2011</span><br>Trends en cijfers van het tweede<br>halfjaar van 2011
</label>

The rest is up to their script:

<script type="text/javascript">
function aTogle(elem){
var cleanClass = elem.parentNode.className.replace(' downloadActive', '');
if(cleanClass == elem.parentNode.className){
elem.parentNode.className += ' downloadActive';
}
else{
elem.parentNode.className = cleanClass;
}
}
function filledIn(form){
for(var i = 0; i < form.elements.length;i++){
if(form.elements.type && form.elements.type == 'checkbox' && form.elements.checked == true) return true;
}
alert('Geef aan welke downloads u wilt ontvangen, door ze aan te klikken.');
return false;
}
function countCheck(form) {var total = 0;for(var i = 0; i < form.elements.length;i++) {if (form.elements.type == 'checkbox' && eval("form.elements[" + i + "].checked") == true) { total += 1; }}form.aantal_downloads.value = (total); }
</script>
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!