[ale] OT: Wordpress and javascript problem

Jim Seymour jim at wingbarscafe.com
Wed Oct 17 12:34:08 EDT 2007


On Wed, 2007-10-17 at 11:45 -0400, John C wrote:
> I'm assuming that you updated your theme files with the Javascript
> code.
> Did you put it into your header file?  That's where I put mine and it
> works fine.
> 
> If that doesn't work for ya, try finding a WordPress plugin that does
> the same thing that your Javascript does.  They are usually pretty
> seemless. 

Hi,

I have not been able to locate a single Wordpres plugin that will handle
a simple webcam image refresh for a cam that uploads the pictures as jpg
snapshots. I added the following line between the meta and style tags in
the header.php file as per Wordpress.

<script src="/wp-includes/js/webcam.js" type="text/javascript"></script>

and as per the script instructions modified the body tag in the same
file.

<body onload="webCamInit();">

and on the code for the new page I put.

<script type="text/javascript"><!-- webCamDraw(0); //--></script>

I have also tried adding both script lines to the new page that was
suggested as well by the Wordpress/Javascript Codex page. All have
resulted in a blank space in the page. No image, no window. :-( I have
also tried other mods of these same lines. I will see what else I can
find.

Thanks,
Jim




More information about the Ale mailing list