PDA

View Full Version : Dynamic Ajax Content in IE



Kirti
05-30-2007, 09:53 AM
-------------

Script: Dynamic Ajax Content

http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm



Hi,
I am using Dynamic Ajax Content script.Its demo is working for me.
I am using the same script in a popup in my application that is working fine in firefox but in IE6 its not working.I added alerts and come to know that page_request = new ActiveXObject("Msxml2.XMLHTTP") is coming as empty.It should give [object] but its coming as empty.

Please help me to fix this problem.
I will be very greatful to you.

Thanks in advance

jscheuer1
05-30-2007, 03:05 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

If you are using IE 7 and only testing locally, that's to be expected. In IE 7 testing live, you will still see that variable/object as empty, but the script will probably work. I only say probably because I cannot be sure about the pop up. Normally the script will not work in IE 7 locally and will in IE 7 live. IE 7 doesn't use the ActiveXObject("Msxml2.XMLHTTP"). It follows the path in the script used by other browsers, but will not allow it locally due to security measures programmed into IE 7.

Kirti
06-01-2007, 05:39 AM
But i am using IE6

jscheuer1
06-01-2007, 06:37 AM
Then it probably is something else. A link to your page would help determine what.

Kirti
06-01-2007, 07:18 AM
This is the code where i am using dynamic ajax content:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link href='http://localhost:8080/ocmWeb/css/ocm.css' rel='stylesheet' type='text/css'/><title>View Quotations</title><script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/Ebp.js'></script>
<script type='text/javascript'>
function triggerNavigation(start,formName,url,name){
document.getElementById(formName+":"+name).value=start;
document.getElementById(formName).target="";
url=url.split(".");
var actualUrl=url[0]+".faces";
document.getElementById(formName).action=actualUrl;
document.getElementById(formName).submit();
}
</script><script type='text/javascript'>
function submitForm(formName,url){
document.getElementById(formName).target="";
url=url.split(".");
var actualUrl=url[0]+".faces";
document.getElementById(formName).action=actualUrl;

document.getElementById(formName).submit();
}
</script><script type='text/javascript'>
function divertAction(action,formName){
document.getElementById(formName).target=""
document.getElementById(formName).action=action
}</script><script type='text/javascript'>
function windowOpen(url, stuff, morestuff){
window.open(url, stuff, morestuff).focus();
}
</script>
<script type='text/javascript'>
function triggerSort(formName, sortFiledName, sortOrder, pageUrl)
{
document.getElementById(formName).target="";
document.getElementById('HIDDEN_PARAMETER_SORT_FIELD_NAME').value = sortFiledName;

if(sortOrder.match("asc"))
{
document.getElementById('HIDDEN_PARAMETER_SORT_ORDER_NAME').value = "desc";
}
else
{
document.getElementById('HIDDEN_PARAMETER_SORT_ORDER_NAME').value = "asc";
}

document.getElementById(formName).action = pageUrl;
document.getElementById(formName).submit();
}
</script>
<script type="text/javascript">
var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no)
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
var bustcacheparameter=""

function ajaxpage(url, containerid){
var page_request = false
if (rootdomain) // if accessing remote server (not locally)
if (window.ActiveXObject){ // if IE
try {
//alert("page_reque "+page_request );
page_request = new ActiveXObject("Msxml2.XMLHTTP")
//alert("page_request Msxml2 "+page_request );
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
//alert("page_request microsoft "+page_request );
}
catch (e){
//alert("Exception "+ e);
}
}
}
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
//alert("page_request Msxml2 "+page_request );
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
//alert("page_request Microsoft "+page_request );
}
catch (e){
//alert("Exception "+ e);
}
}
}
else if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else
return false
page_request.onreadystatechange=function(){
//alert("page_request in ready "+ page_request);
loadpage(page_request, containerid)

}
if (bustcachevar) //if bust caching of external page
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
alert("bustcacheparameter 12 "+ bustcacheparameter);
alert("page_request 12 "+ page_request);
page_request.open('GET', url+bustcacheparameter, true)
page_request.send(null)
//alert(page_request);
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
{
//alert("containerid---" + containerid);
//alert("page_request---" + page_request);
//alert("page_request.responseText---" + page_request.responseText);
document.getElementById(containerid).innerHTML=page_request.responseText;
}
//else {
//alert("containerid2---" + containerid);
// document.getElementById(containerid).innerHTML = '<div align="center"><img src="..images/display.gif"/><br>Chargement de la page...</br></div>';
// }

//if (!page_request.responseXML.documentElement && page_request.responseStream)
// page_request.responseXML.load(page_request.responseStream);
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i < arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}

</script></head><body><form id="viewquotationform" method="post" action="http://localhost:8080/ocmWeb/jsf/JsfViewQuotations.faces" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="viewquotationform:_id3" value="B1" />
<div class='style2'><table width='100%' border='0' cellspacing='1' cellpadding='1'><tr><td class='PageHeading' align='center' width='100%'>
<font class=''>View Quotations</font></td></tr></table> </div>
<table width="100%"><tbody><tr><div class='style1'>

Kirti
06-01-2007, 07:19 AM
<img border='0' src=''></img></a></div>
<td NOWRAP class='PortletText1' align='left' width='18&#37;'>&nbsp;&nbsp;<b><font color='red'>Pending Quotations</font></b></td></td><td NOWRAP class='PortletSubHeaderText' align='left' width='12%'><input type='text' name='QuotationDisplayCount' size='2' onkeypress='return checkKey()' value='10' style='font-size: 7pt;font-weight: bold;'><img align='absmiddle' align='absmiddle' src='http://localhost:8080/ocmWeb/images/display.gif' onclick=javascript:submitForm('viewquotationform','/ocmWeb/jsf/JsfViewQuotations.jsp')></td><td NOWRAP class='PortletSubHeaderText' align='right' width='34%'><img border='0' align='absmiddle' src='http://localhost:8080/ocmWeb/images/farleft_ltgy.gif'></img>&nbsp;&nbsp;<img border='0' align='absmiddle' src='http://localhost:8080/ocmWeb/images/left_ltgy.gif'></img>&nbsp;&nbsp;1&nbsp;to&nbsp;3&nbsp;of&nbsp;3&nbsp;&nbsp;<img border='0' align='absmiddle' src='http://localhost:8080/ocmWeb/images/right_ltgy.gif'></img>&nbsp;&nbsp;<img border='0' align='absmiddle' src='http://localhost:8080/ocmWeb/images/farright_ltgy.gif'></img>&nbsp;</td></tr><tr class='AltRow'><td colspan=5><table><tr><tr class='AltRow'><th>Product Name</th><td><input type='text' name='productName' size='15' value=''></td><th>Price</th><td><input type='text' name='price' size='15' value=''></td><th>Minimum Quantity</th><td><input type='text' name='minimumQuantity' size='15' value=''></td><th>Maximum Quantity</th><td><input type='text' name='maximumQuantity' size='15' value=''></td></tr></table></td></tr><tr class='AltRow'><td colspan=5><table><tr><tr class='AltRow'></tr></table></td></tr></table> </div><tr><td><input id="viewquotationform:quotationSearch" type="submit" name="viewquotationform:quotationSearch" value="Search" onclick="divertAction('/ocmWeb/jsf/JsfViewQuotations.faces','viewquotationform')" /></td></tr><td width='5%'></td><tr><td colspan='6'><table width='100%' border='0' cellspacing='2' cellpadding='2' class=Data ><tr class='HeadRow'><th>Price per Unit</th><th>CAS Number</th><th>Excise Duty</th><th>Cess On ED</th><th>VAT/CST</th><th>Delivery</th><th>Payment</th><th>From</th><th>To</th><th>Minimum </th><th>Maximum </th><th>Enquiry Id</th><th>Seller Id</th><th>Buyer Id</th><th>Last Updated By</th><th><a href=javascript:triggerSort('viewquotationform','product.productName','asc','/ocmWeb/jsf/JsfViewQuotations.faces')>Item Name<img border='0' height='12' src='http://localhost:8080/ocmWeb/images/ascending.gif'></img></a></th><th><a href=javascript:triggerSort('viewquotationform','enquiry.createdDate','asc','/ocmWeb/jsf/JsfViewQuotations.faces')>Enquiry Date</a></th><th>Reject Quotation</th><th>Cancel Quotation</th><th>Print Pdf Version</th></tr><tr><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>5.0</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>C</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>3</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>3</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>NILL</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>Buyer Godown</a></td>
<td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>4</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>31/05/2007</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>20/06/2007</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>8.0</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>12.0</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>9</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>tester</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>tester</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>tester</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>P</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=39&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=39&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>31/05/2007</a></td><td><a href="JsfRejectQuotation.faces?quotationId=39">Reject Quotation</a></td><td><a href="JsfCancelQuotation.faces?quotationId=39">Cancel Quotation</a></td><td>

Kirti
06-01-2007, 07:20 AM
<a href="javascript:windowOpen('quotationPDF?quotationId=39', 'QuotationPDFForm', 'WIDTH=560,HEIGHT=460,RESIZABLE=YES,TOOLBAR=YES,SCROLLBARS=YES')">Print Pdf Version</a></td></tr><tr class='HeadRow'><tr class='AltRow'><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>4.0</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>C</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>4</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>4</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>NILL</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>Buyer Godown</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>7</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>31/05/2007</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>07/06/2007</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>10.0</a></td><td> </td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>12</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>seller</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>tester</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>seller</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>P</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=42&productId=13' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=42&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>31/05/2007</a></td><td><a href="JsfRejectQuotation.faces?quotationId=42">Reject Quotation</a></td><td><a href="JsfCancelQuotation.faces?quotationId=42">Cancel Quotation</a></td><td><a href="javascript:windowOpen('quotationPDF?quotationId=42', 'QuotationPDFForm', 'WIDTH=560,HEIGHT=460,RESIZABLE=YES,TOOLBAR=YES,SCROLLBARS=YES')">Print Pdf Version</a></td></tr><tr class='HeadRow'><tr><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>5.0</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>C10</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>5</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>5</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>NILL</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>Buyer Godown</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>9</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>31/05/2007</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>07/06/2007</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>5.0</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>10.0</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>11</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>tester</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>tester</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>tester</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>P10</a></td><td><a href='JsfPurchaseOrder.faces?userId=tester&quotationId=40&productId=11' onMouseOver='javascript:ajaxpage("JsfQuotationView.faces?quotationId=40&quotationStatus=Sent", "contentarea");window.scrollTo(0,0);' onMouseOut=''>31/05/2007</a></td><td><a href="JsfRejectQuotation.faces?quotationId=40">Reject Quotation</a></td><td><a href="JsfCancelQuotation.faces?quotationId=40">Cancel Quotation</a></td><td><a href="javascript:windowOpen('quotationPDF?quotationId=40', 'QuotationPDFForm', 'WIDTH=560,HEIGHT=460,RESIZABLE=YES,TOOLBAR=YES,SCROLLBARS=YES')">Print Pdf Version</a></td></tr></table> </div></td></tr></tr><tr><div id="contentarea"/></tr><tr><table width=100&#37;><table width='100%'><tr class='FooterTable' height='20'><td NOWRAP class='PortletSubHeaderText'></td></tr></table> </div></table> </div> <div class='style2'><table width='100%' border='0' cellspacing='1' cellpadding='1'><tr><td align='center' colspan='200'></td></tr></table> </div><a href='' target='_parent'></a></tr></tbody></table><input id="viewquotationform:QuotationHiddenStart" type="hidden" name="viewquotationform:QuotationHiddenStart" /><input value="" name="HIDDEN_PARAMETER_SORT_ORDER_NAME" type="hidden" id="HIDDEN_PARAMETER_SORT_ORDER_NAME"/><input value="" name="HIDDEN_PARAMETER_SORT_FIELD_NAME" type="hidden" id="HIDDEN_PARAMETER_SORT_FIELD_NAME"/><input type="hidden" name="viewquotationform" value="viewquotationform" /></form></body></html><script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/menu.js'></script>
<script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/wz_tooltip.js'></script>
<html><head></head></html>

Kirti
06-01-2007, 07:20 AM
This is the page which i want to call in the above jsp:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link href='http://localhost:8080/ocmWeb/css/ocm.css' rel='stylesheet' type='text/css'/><title>View Quotations</title><script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/Ebp.js'></script>
<script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/EbpPortlet.js'></script>
<script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/menu.js'></script>
<script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/validation.js'></script>
<script language='JavaScript1.2' src='http://localhost:8080/ocmWeb/js/IndigoScript.js'></script>
<script type='text/javascript'>
function divertAction(action,formName){
document.getElementById(formName).target=""
document.getElementById(formName).action=action
}</script><script type='text/javascript'>
function windowOpen(url, stuff, morestuff){
window.open(url, stuff, morestuff).focus();
}
</script></head><body><form id="viewquotationform" method="post" action="http://localhost:8080/ocmWeb/jsf/JsfQuotationView.faces" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="viewquotationform:_id3" value="B1" /> <div class='style2'><table width='100&#37;' border='0' cellspacing='1' cellpadding='1'><tr><td class='PageHeading' align='center' width='100%'><font class=''>Quotation Detail</font></td></tr></table> </div><table width="100%"><tbody><tr><tr><tr><td><b>No Items Found</b></td></tr></table> </div></td></tr></tr></tbody></table><input type="hidden" name="viewquotationform" value="viewquotationform" /></form></body></html>


I am unable to fix this problem.Please help me to fix this.
Thanks in advance.