I have a page with a webcam image in it. The webcam uploads a new image
every 60 seconds, and I use a HTML refresh to refresh the whole page every
60 seconds.
It seems a bit clunky to me. It's worked just fine for several years, but
I'd like to see if i can find a way to refresh only the div
You can use a setInterval call in JS to run every 60 seconds and reload the
image. You don't need a jQuery plugin for this.
On Thu, Oct 17, 2013 at 6:16 AM, Mike K afpwebwo...@gmail.com wrote:
I have a page with a webcam image in it. The webcam uploads a new image
every 60 seconds, and I
Real quick example here. It uses a date object to add a unique URL
parameter to the end which should help with caching. No jQuery used, just
standard HTML. The querySelector call is *kinda* modern-ish only (see
caniuse.com for specifics) and could be replaced by
document.getElementById. Oh - and
In the statement below, what I missing?
When generate_email=0, I get: Either the end tag /cfmail
encountered on line 44 at column 29 requires a matching start tag or tag cfmail
does not support end tag.
cfif generate_email eq 1cfmail from=#techadmin#
You should try putting your content into a variable using cfsavecontent and
then choose to display in the browser or send an email. You cannot wrap
the begin and end tags of a cfmail the way you are doing.
cfsavecontent var=mycontentcfoutputYour
stuff/cfoutput/cfsavecontent
cfif generate_email
I thought of that but it seemed rather unnecessary. It seem like a hack to get
around something that should work.
Robert Harrison
Director of Interactive Services
Austin Williams
Advertising I Branding I Digital I Direct
125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788
T
The subject to your problem says it all. This is a syntax error. You
cannot wrap the begin and end tags in a conditional statement. That breaks
the syntax rules of the ColdFusion parsing engine and seems like a clunky
solution anyway. You either want to mail the content or display it, so
If you want to get anal, you could set a setTimeout and listen for the load
event on the image. That way if it takes a bit longer to load an image one
time the code will hold off on firing another request. (Probably not an
issue though if you are waiting 60 seconds.)
On Thu, Oct 17, 2013 at
It seem like a hack to get around something that should work.
Don't forget that syntax is checked at compile time and if at execution.
See this code for instance:
CFSET test=yes
CFIF test
TABLE
CFSET test=no
/CFIF
table rows go here
CFIF test
/TABLE
/CFIF
This would
Well, I used the savecontent. Of course that worked. I worked on this series
of programs 16 hours yesterday and 16 hours the day before and I'm starting to
get a bit impatient I guess.
Thanks
Robert Harrison
Director of Interactive Services
Austin Williams
Advertising I Branding I
Ray, thanks for this. I can see you get your kicks writing bits of code
like this dont you. You've gone wy past answering my question as
you usually do, and I'm most grateful. I have a suspicion your idea of a
relaxing evening on your vacation is a coding problem and a laptop, where
On Thu, Oct 17, 2013 at 8:40 PM, Mike K afpwebwo...@gmail.com wrote:
Ray, thanks for this. I can see you get your kicks writing bits of code
like this dont you. You've gone wy past answering my question as
you usually do, and I'm most grateful. I have a suspicion your idea of a
12 matches
Mail list logo