Page 1 of 1

[Solved] reload picture in a Pivotx page

PostPosted: Thu Mar 04, 2010 12:44 pm
by lassowski
I'm not very experienced with blogs and pivotx. Using Pivotx 2.0 I'm trying to reload a picture in a newly created page by this little snippet of javascript:

Code: Select all
<script language="JavaScript"><!--
function reloadImage() {
    var now = new Date();
    if (document.images) {
        document.images.Storch.src = 'images/webcam.jpg?' + now.getTime();


I inserted the code with the HTML Source Editor in the Main Text box.

Nothing happens automatically, while reloading the whole page shows the new image.

What am I doing wrong here?


[Edit] This was a javascript error of mine, I didn't define the "Storch" name for the image... Pardon me for this unnecessary posting.[/Edit]