riverdog Posted February 27, 2008 Report Share Posted February 27, 2008 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" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src=" http://www.trumba.com/scripts/spuds.js"></script> '>http://www.trumba.com/scripts/spuds.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> This is a test <script type="text/javascript"> $Trumba.addSpud({ webName: "harlingenhealthcare", spudType : "upcomingphoto" , teaserBase : " http://www.trumba.com/calendars/harlingenhealthcare" }); </script> </body> </html> 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? Quote Link to comment Share on other sites More sharing options...
Steve A Posted February 29, 2008 Report Share Posted February 29, 2008 It looks like the “loadNewPage” method is dynamically loading and injecting the calendar.php page into a div on your page. Could you use an iframe to contain the page instead of loading the page into a div? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.