Hi guys,

I've got this piece of javascript code in my template file which is
supposed to show an image upon a checkbox toggle:

      function show_img(suf, val) {
        img = document.getElementById('image_' + val);
        img.src = 'media/images/schematics/SKU' + suf + '.jpg';
      }

The images show when I do a static, non-django html page. But when
this code is within django, it doesn't show and I think it's because
django does not deal with javascript paths.

All I need to do is to show images and I've spent hours on this
overcomplicated wish. Is there any way I can get past this? Any help
would prevent my hair from being ripped out :) Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to