[jboss-user] [JBoss Seam] - Seam remoting on IE 6 giving javascript error
Jayaranga
do-not-reply at jboss.com
Thu Mar 8 07:52:22 EST 2007
Hello there,
Im new to seam and trying to do a remote call using seam remoting.
my script works fine on firefox 2.0.x. but wheni tried it on IE6 , the function gives a javascript error saying
'field' is not an object or null.
I m using seam 1.0.1
my code is as follows
<my-jsp>.jsp
--------------------------------------------------------------------------------------
script src="seam/remoting/resource/remote.js" type="text/javascript">
<!--
// This space intentionally left blank
//-->
script type="text/javascript" src="seam/remoting/interface.js?roomsnet_r5_admin_businesslogic_DRAMP_UsersPicksLogicAction&roomsnet.r5.pojo.portal.TblHotels&roomsnet_r5_admin_businesslogic_DRAMP_CustomerLogicAction">
<!--
// This space intentionally left blank
//-->
..............................
.....
.....
function addToMyPicks(desc){
hotelPickDescription = desc;
alert(hotelPickDescription );
var hotel = Seam.Component.newInstance"roomsnet.r5.pojo.portal.TblHotels");
alert("hotel.... >> "+hotel);
hotel.setHotCode(hotelcode );
//alert("hotel ok " + hotel.getHotCode());
var component = Seam.Component.getInstance("roomsnet_r5_admin_businesslogic_DRAMP_UsersPicksLogicAction");
alert("object >>>>>> "+component );
// after this alert it gives the javascript error...
component.addHotelToMyShortlist(hotel , hotelPickDescription ,addedResourceCallback );
alert("added .......");
alert("1111 " + component);
}
function addedResourceCallback(result){
alert(result);
if(result=="Success"){
var addlink = document.getElementById(x+"imageHyperlink1");
document.getElementById(x+"imageHyperlink1").style.display='None';
var removelink = document.getElementById(x+"imageHyperlink5");document.getElementById(x+"imageHyperlink5").style.display='inline';}
}
--------------------------------------------------------------------------
is there anything i missed??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026227#4026227
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026227
More information about the jboss-user
mailing list