Jump to content

Using Spuds With OnClick Javascript

Recommended Posts

My Trumba spuds are not working if I use java onclick in a link to load a page into a DIV.

Here is the code in a nutshell...

The link looks like this...

<a href="#" onclick = "loadNewPage('calendar.php')">Planning Calendar</a>

calendar.php looks like this...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

<html xmlns="
<script type="text/javascript" src="

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
This is a test
<script type="text/javascript">
webName: "harlingenhealthcare",
spudType : "upcomingphoto" ,
teaserBase : "


I also have the following line on the index.php page where the original link is.

<script type="text/javascript" src="//www.trumba.com/scripts/spuds.js"></script>


This does not work. The spud never generates the calendar.

If I load calendar.php independently, it works, but if I load it in the DIV, it does not.

Is there any tweaking I can do to get this to work?


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...