Closed (fixed)
Project:
Webcams
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 May 2008 at 02:01 UTC
Updated:
8 Jun 2008 at 13:52 UTC
Finally got this mod implemented on a production site. Not much content there yet, hope that will change.
Anyway, the way I run my webcams is a new image is uploaded every 5 minutes. I verified things are working on my end as far as the image upload, but the auto refresh doesn't seem to be working. I set it for 5 seconds just to see if I could detect anything. Am I missing something obvious here? Anything else I should check?
Comments
Comment #1
moonray commentedYour drupal template seems to be missing the vital:
<?php print $closure ?>This is where drupal prints the JS in the footer of the page.
Let me know if your template does have this, and its still not working.
Comment #2
kriskd commentedThank you. I didn't realize the $closure variable was so vital to the mod. Will probably do some general reading on it. I thinking some of my other sites are missing it.
Comment #3
kriskd commentedmoonray --
First, I gotta say I'm loving your module! It's working beautifully for my website!! In particular since you pointed out my problem with the auto refresh, since I fixed it it is once again giving me exactly what I need!
Your javascript refresh on the images is so ideal for my needs, I'd like to implement it for my previous webcam images as well for which I just use the image modules. I've looked at the meta refresh mods and they don't quite give me what I need because they refresh the whole page (not necessarily bad, but I don't need the whole page refreshed) and I'd just like the images refreshed on load like your refresh method does.
I did a quick search and I don't see this as a mod. Would you happen to be aware of anything here? If not, how hard would it be for a PHP beginning like me to implement your refresh method to my other image nodes?
Comment #4
moonray commentedkriskd,
You'd have to learn a little bit of jQuery. The php part is negligible, really. The bulk of the jQuery script for webcams deals with preloading the image and having an error handler. The actual refresh part is fairly easy. All you need is to attach the jQuery script to a particular css id. Have a look at the script and try to decipher it.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.