This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes how to show Upcomming events by Clicking Dojo Calendar in websphere portal 8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "how to show Upcomming events by Clicking Dojo Calendar in websphere portal 8" Watch "how to show Upcomming events by Clicking Dojo Calendar in websphere portal 8" New topic
Author

how to show Upcomming events by Clicking Dojo Calendar in websphere portal 8

Khalid Habib
Greenhorn

Joined: Dec 22, 2012
Posts: 19
I have this code
but it's not working kindly help

how to set value dynamically to request attributes in Personalization through url

dojo code
==========
function handler(data){
newValue=data;
if(newValue.getDate()!
=null){
var newDay='0'+newValue.getDate();
newDay=newDay. substring(newDay.length-2, newDay.length);

var newMonth='0'+(newValue. getMonth()+1);
newMonth=newMonth. substring(newMonth.length-2, newMonth.length);

var newFullDate=newValue. getFullYear() + '-'+ newMonth + '-' + newDay;
document.getElementById(' currentDayEvents').innerHTML=" Today's Date :"+newFullDate+ "<BR>";
var dateURL='http://localhost:10039/wps/wcm/myconnect/ trainingibm/home/events/SC+ Events+61?scEventDate='+ newFullDate;
//alert( dateURL);
dojo.xhrGet({
url:dateURL,
load:function( data){
// alert(data);
alert("The message is: " + data);
document. getElementById(" currentDayEvents").InnerHTML +=data;
}
});
}else{
document. getElementById(" currentDayEvents").InnerHTML=" No Date Selected";
}
//dojo.byId("cal_2_report"). innerHTML = date;
});
});





personalization Rule
=================
Select Web Content
whose Location is TrainingIBM/Home/Events and
whose Authoring Template is TrainingIBM/Events and
whose Events.Date is greater than or equal to current Request.scEventDate

kindly guide me.
 
wood burning stoves
 
subject: how to show Upcomming events by Clicking Dojo Calendar in websphere portal 8
 
Similar Threads
JSP Action Buttons freez after returning from ajax call
how to test the setter methods
Javascript and setting dates...
Pass values from pop up window to parent window using jsf
Getting Value from Dynamiclly Created TextBoxes