sanjeev Posted May 12, 2009 Report Share Posted May 12, 2009 We have an ASP website with an underlying database table that has Trumba calendar names stored for each region. So here's how the table looks: ID, Region, TrumbaCalendarName 001, Cape Cod, capecod 002, Boston, boston etc. Then I wrote an ASP function that returns the value of TrumbaCalendarName based on the region's ID (I get that from a querystring parameter). So far so good. Now the problem is on the same page I would like the corresponding region's calendar spud to display. How do I pass my function value to the spud? I don't believe I can pass a function result to Javascript. So I created a hidden form field that accesses my function and then thought I would read the field value in the document object as below (see bold line): <script type="text/javascript" src="//www.trumba.com/scripts/spuds.js"></script> <script type="text/javascript"> $Trumba.addSpud({webname: document.getElementById('trumbaname').value), spudType: "upcomingvcrawler", teaserBase : "https://university.trumba.com/online_calendars/main_month.aspx" }); </script> The spud is not showing up. Why does it not work? Quote Link to comment Share on other sites More sharing options...
Steve A Posted May 18, 2009 Report Share Posted May 18, 2009 Try this and if this does not work, please send us a link to the page and our dev team can research further for you. <script type="text/javascript" src="//www.trumba.com/scripts/spuds.js"></script> <script type="text/javascript"> $Trumba.addSpud({ webname: document.getElementById('trumbaname').value, spudType: "upcomingvcrawler", teaserBase : "https://university.trumba.com/online_calendars/main_month.aspx" }); </script> 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.