January 18, 2012, 05:22 AM
Prajaktahow to pass a variable in calender( in html) if the variable is in javascript
I have to create launch page wherein depending on the selection of radi buttons i have to change the calender begin date and end date. how to hold those variables in javascript and how do i pass them in the calender. Please help me with it.
Currently i m holding the start and end variables in as
var BEG_D = "!IBI.AMP.BEG_D1;"
var END_D = "!IBI.AMP.END_D1;"
is that a correct method to hold a variable in javascript?
if yes how do we pass it to the calender field?
January 18, 2012, 08:19 AM
njsdenIf you already have the values you need in JavaScript variables, you could assign them to any element in your HTML document using JavaScript as well:
document.getElementByID('calendar1').value = BEG_D;
document.getElementByID('calendar2').value = END_D;
January 18, 2012, 03:46 PM
WazDo you store the dates for each radio button ?
You may have to do more js coding to set for each radio button.
January 18, 2012, 11:23 PM
Prajaktai have created a XML file for calender! the calender code first checks for the value of radio button and then goes to that part of calender accordingly! But i dont know how to include that XMl file in html! Can someone help me with it!