/    Sign up×
Community /Pin to ProfileBookmark

Calendar XP question

We are facing one issue with the calendar (calendarxp.net) to set date in all the rows (returned search results in a table). In the current code we are able to set the value only in the last row.

the function we are using is popExpirationDate() in the code below. Can anyone help? Thanks!

<SCRIPT language=”javascript”>

function selectAllSchedule(){
selectSchedule(true);
}
function deSelectAllSchedule(){
selectSchedule(false);
}

function selectSchedule(val){
var selectAllValue= val;
for(i = 0 ; i < ‘<%=delegatesCount%>’ ; i++){
var delegatesScheduleTag= “delegatesSchedule”+i;
var delegatesCountTag= “delegatesCount”+i;
document[getNetuiTagName(“manageDelegates”,this)][getNetuiTagName(delegatesScheduleTag,this)].checked=selectAllValue;
}
}

function selectAllManage(){
selectManage(true);
}
function deSelectAllManage(){
selectManage(false);
}
function selectManage(val){
var selectAllValue= val;
for(i = 0 ; i < ‘<%=delegatesCount%>’ ; i++){
var delegatesManageTag= “delegatesManage”+i;
var delegatesCountTag= “delegatesCount”+i;
document[getNetuiTagName(“manageDelegates”,this)][getNetuiTagName(delegatesManageTag,this)].checked=selectAllValue;
}
}

function selectAllStart(){
selectStart(true);
}
function deSelectAllStart(){
selectStart(false);
}
function selectStart(val){
var selectAllValue= val;
for(i = 0 ; i < ‘<%=delegatesCount%>’ ; i++){
var delegatesStartTag= “delegatesStart”+i;
var delegatesCountTag= “delegatesCount”+i;
document[getNetuiTagName(“manageDelegates”,this)][getNetuiTagName(delegatesStartTag,this)].checked=selectAllValue;
}
}

function selectAllLib(){
selectLib(true);
}
function deSelectAllLib(){
selectLib(false);
}
function selectLib(val){
var selectAllValue= val;
for(i = 0 ; i < ‘<%=delegatesCount%>’ ; i++){
var delegatesLibTag= “delegatesLib”+i;
var delegatesCountTag= “delegatesCount”+i;
document[getNetuiTagName(“manageDelegates”,this)][getNetuiTagName(delegatesLibTag,this)].checked=selectAllValue;
}
}

function selectAllOwner(){
selectOwner(true);
}
function deSelectAllOwner(){
selectOwner(false);
}
function selectOwner(val){
var selectAllValue= val;
for(i = 0 ; i < ‘<%=delegatesCount%>’ ; i++){
var delegatesOwnerTag= “delegatesOwner”+i;
var delegatesCountTag= “delegatesCount”+i;
document[getNetuiTagName(“manageDelegates”,this)][getNetuiTagName(delegatesOwnerTag,this)].checked=selectAllValue;
}
}

function deSelectAllDates(){
for(i = 0 ; i < ‘<%=delegatesCount%>’ ; i++){
var expirationDateTag= “expirationDate”+i;
document[getNetuiTagName(“manageDelegates”,this)][getNetuiTagName(expirationDateTag,this)].value=”;
}
}

<!—–Calendar Code——->

function popExpirationDate(){
alert(“Count = “+'<%=delegatesCount%>’);
var count = ‘<%=delegatesCount%>’;
alert(count);
for(i = 0 ; i < count ; i++){
var expirationDateTag= “expirationDate”+i;
var dateField=document[getNetuiTagName(“manageDelegates”,this)][getNetuiTagName(expirationDateTag,this)];
alert(dateField);
setDate(dateField);
}
}

<!—–End Calendar Code——->

function setDate(field){
alert(field);
var expirationDateField = field;
if(self.gfPop){
gfPop.fPopCalendar(expirationDateField);
}
alert(field);
return false;
}

</SCRIPT>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @mvfrancisco spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...