Iframe not loaded with other browser than IE

TelDig
TelDig used Ask the Experts™
on
Greetings!
I have an iframe in a web site that is not loaded when I try to view it in other browser than IE (IE works correctly).
The src attribute is set dinamically in the code behind.
The iframe is contained in an ascx page.

The web site is developped in ASP.NET/C# 1.1

Here is the HTML code:
<table id="Table1" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
   <TR>
      <TD vAlign="top" align="right" width="15%"></TD>
      <TD style="WIDTH: 880px" vAlign="top" align="left">
         <asp:label id="SketchNoDelete" runat="server" Visible="False" ForeColor="Red">You can't delete sketches that were previously saved.</asp:label></TD>
      <TD vAlign="top" align="right" width="20%"></TD>
   </TR>
   <tr>
      <td vAlign="top" align="right" width="15%"><asp:label id="SketchesLabel" runat="server">Sketches:</asp:label></td>
      <td style="WIDTH: 880px" vAlign="top" align="left">
         <P><INPUT id="sketchFileName" style="WIDTH: 440px; HEIGHT: 22px" type="file" size="54" runat="server">&nbsp;
            <asp:button id="Upload" runat="server" Text="Upload"></asp:button>&nbsp;
            <asp:button id="Draw" runat="server" Text="Draw"></asp:button><BR>
            <asp:label id="MaxFileSizeNote" runat="server">A maximum of 5Mb is allowed for each file.</asp:label><asp:label id="SketchError" runat="server" ForeColor="Red" Visible="False">The sketch was not recognized as a valid image.</asp:label><asp:label id="SketchTooBig" runat="server" ForeColor="Red" Visible="False">The file was too big.</asp:label><asp:label id="SketchNotFound" runat="server" ForeColor="Red" Visible="False">Unable to locate the request address on the map.</asp:label></P>
      </td>
      <td vAlign="top" align="right" width="20%">
         <DIV style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 266px; BORDER-BOTTOM: black 1px solid; HEIGHT: 100px"
            align="left"><asp:checkboxlist id="SketchList" runat="server" Width="160px"></asp:checkboxlist></DIV>
         <asp:button id="Delete" runat="server" Text="Delete"></asp:button></td>
   </tr>
   <TR>
      <TD colSpan="3"></TD>
   </TR>
   <TR>
		<TD colspan="3" align="center">
			<iframe id="kMapFrame" style="DISPLAY: none" name="kMapFrame" frameBorder="1" runat="server"
			width="830px" height="630px">
			</iframe>
		</TD>
	</TR>
	<tr>
		<td></td>
	</tr>
	<tr>
		<td colspan="2" align="right">
			<asp:Button id="getImageButton" runat="server" Text="Get image" Visible="False"></asp:Button>
		</td>
	</tr>
	<TR>
		<TD colSpan="3"></TD>
	</TR>
   <tr>
      <td align="right" colSpan="3">&nbsp;
         <asp:button id="Save" runat="server" Text="Save"></asp:button><asp:button id="Cancel" runat="server" Text="Cancel"></asp:button></td>
   </tr>
</table>

Open in new window


Code behind:
// Set the map viewer url
                  string src = System.Configuration.ConfigurationSettings.AppSettings["MapGuideViewerAddress"];

                  // Set the sketch file name
                  DateTime dtNow = DateTime.Now;
                  string sketchName =  SessionHelper.CurrentTicket + "_" ;
                  sketchName += dtNow.ToString("dd_MM_yyyy_HH_mm_ff");

                  SketchFileName = sketchName + ".jpg";

                  // Add the url LatLong parameters
                  src += Regex.Replace("?lat=" + ptLatLong.Y.ToString() + "&lon=" + ptLatLong.X.ToString(),",",".");

                  // Add the url language parameter
                  src += "&lang=fr" ;

                  getImageButton.Visible = true;

                  // Display the PHP iFrame
                  kMapFrame.Style.Add("display", "");
                  kMapFrame.Attributes.Add("width", "830");
                  kMapFrame.Attributes.Add("height", "630");
                  kMapFrame.Attributes["src"] =  src;

Open in new window


Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
You need to post the "View Source" which is all the other browsers see.  Or a link to your page.

Author

Commented:
Source from IE
  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title> Edit Sketches</title>
		<link rel="StyleSheet" href="style/menu.css" type="text/css">
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<link rel="StyleSheet" href="style/menu.css" type="text/css" />
<link href="style/print.css" rel="stylesheet" type="text/css" media="print">
<style type="text/css">@import url("http://www.test.com//themes/info-excavation/style/style.css"); </style>
<script type="text/javascript" src="http://www.info-excavation.com//includes_axial/axialScript.js"></script>
<script type="text/javascript" src="http://www.test.com//includes_axial/formScript.js"></script>
<script language="JavaScript" type="text/JavaScript"> 
 
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
 
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
 
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
 
function MM_showHideLayers() { //v6.0
 
	  var i,p,v,obj,args=MM_showHideLayers.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	    obj.visibility=v; }
 
}
 
CacheVar=true;
 
function MM_showHideLayersTime() { //v6.0
//alert('Show hide'+CacheVar);
	if (CacheVar==true)
 
	{
	  var i,p,v,obj,args=MM_showHideLayersTime.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	    obj.visibility=v; }
	}
}
 
timerID="";
 
function StartTimer(NameLayer) {
//alert('start time'+CacheVar);
  timerID = setTimeout("MM_showHideLayersTime('"+NameLayer+"','','hide')",1000);
}
 
function CacheMenu(NumLayer)
{
	for (i=1;i<=6;i++){
	MM_showHideLayers('menu0'+i,'','hide')
	}
	MM_showHideLayers('menu0'+NumLayer,'','show')
}
 
function CacheTout(){
 
MM_showHideLayers('menu01','','hide','menu02','','hide')
}
 
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
 
 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 
//-->
</script>
	</HEAD>
	<body class="page_bg" leftMargin="0" topMargin="0" onunload="if('SketchEditFrame.ascx' != '') {location.replace('Default.aspx');}">
		<body style="padding:10px;padding-top:0px;margin:0;">
<table cellpadding="0" cellspacing="0" border="0" id="MFrm" class="noPrint">
  <tr> 
    <td id="Mhead" valign="top"><img class="logo" src="http://www.test.com//themes/info-excavation/images/en/logo-info-excavation.gif" width="172" height="73" alt="Info Excavation | creuser en toute sécurité" /> 
           <div class="top_right"> 
        <div> <a class="btnLang" href="">&nbsp;</a> 
        </div>
        <div id="recherche_top"> <a class="btnPlan" href="http://www.test.com//index.php?module=CMS&func=smap">Site 
          map</a> 
          <form id="recherche" name="recherche" method="post" action="http://test.com//modules.php">
            <input name="q" id="q" type="text" class="search" value="Search" onfocus="javascript:this.value=''" size="15" style="height: 15px; padding: 0px; color: #999" />
            &nbsp;
            <input type="hidden" name="op" value="modload" />
            <input type="hidden" name="name" value="Search" />
            <input type="hidden" name="file" value="index" />
            <input type="hidden" name="action" value="search" />
            <input type="hidden" name="overview" value="1" />
            <input type="hidden" name="bool" value="AND" />
            <input type="hidden" name="active_CMS" id="active_CMS" value="1" />
            <input type="hidden" name="ssec" value="All" />
          </form></td>
 </tr></table><form name="Form1" method="post" action="Default.aspx" id="Form1" enctype="multipart/form-data">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDwtMTg5NTE5MjYzNzt0PDtsPGk8MD47aTwxPjs+O2w8dDxwPGw8VGV4dDs+O2w8SW5mby1FeGNhdmF0aW9uIC0gRWRpdCBTa2V0Y2hlczs+Pjs7Pjt0PHA8bDxlbmN0eXBlOz47bDxtdWx0aXBhcnQvZm9ybS1kYXRhOz4+O2w8aTwxPjtpPDc+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPEluZm8tRXhjYXZhdGlvbiAtIEVkaXQgU2tldGNoZXM7Pj47Pjs7Pjt0PDtsPGk8MD47PjtsPHQ8O2w8aTwwPjs+O2w8dDw7bDxpPDE+Oz47bDx0PDtsPGk8MTY+O2k8MjA+O2k8MjI+Oz47bDx0PHQ8cDxwPGw8RGF0YVRleHRGaWVsZDs+O2w8RmlsZU5hbWU7Pj47Pjt0PGk8MD47QDw+O0A8Pj47Pjs7Pjt0PHA8bDxzdHlsZTt3aWR0aDtoZWlnaHQ7c3JjOz47bDxESVNQTEFZOm5vbmVcO2Rpc3BsYXk6XDs7ODMwOzYzMDtodHRwOi8vaW5mb2V4LmtvcmVtdGVzdC5jb20vQ0lFWEMwMDFBL2dlbmVyYWwuZG8/bGF0PTQ4Ljg1NzcmbG9uPS02NC4yMDY0Jmxhbmc9ZnI7Pj47Oz47dDxwPHA8bDxWaXNpYmxlOz47bDxvPHQ+Oz4+O3A8bDxvbmNsaWNrOz47bDxnZXRJbWFnZSgpXDs7Pj4+Ozs+Oz4+Oz4+Oz4+Oz4+Oz4+Oz4+O2w8VGlja2V0U2VhcmNoMTpfY3RsMDpTa2V0Y2hFZGl0MTpTa2V0Y2hMaXN0OjA7Pj6TckDO1YYlMrWmOPxwoWMm6fqUAA==" />
 
<script language="javascript" type="text/javascript"> 
<!--
	function __doPostBack(eventTarget, eventArgument) {
		var theform;
		if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
			theform = document.Form1;
		}
		else {
			theform = document.forms["Form1"];
		}
		theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
// -->
</script>
<script language=javascript> 
   function sktechUploadDone()
   {
     window.location = 'http://205.xxx.xxx.xxx/default.aspx?uploadDone=1';
   }
</script>
 
 
 
			<INPUT type="hidden" id="wantsToSaveAndPrint" name="wantsToSaveAndPrint">
			<input type="hidden" name="drawnSketchFileURL">
            <input type="hidden" name="baseHref">
            <input type="hidden" name="jsessionid">
            <input type="hidden" name="imageAction" value="pdf.do">
			<div align="center">
				<table height="100%" cellSpacing="0" cellPadding="0" width="770" border="0">
					<tbody>
						<TR class="noPrint">
							<td valign="top" colspan="3" align="center"><font color="navy">Navigation with the site 
									menu will be possible only when closing this session by clicking on the <i>logout</i>
									hyperlink.</font>
							</td>
						</TR>
						<tr class="print">
							<td vAlign="top" align="left" width="10" rowSpan="3"></td>
							<td vAlign="middle" align="center" width="800" height="30" rowSpan="1" colspan="2"><br>
								<b><font size="6">
										<span id="pageTitle">Info-Excavation - Edit Sketches</span></font></b>
								<div vAlign="top" align="right">
								   <a id="buttonSettings" href="javascript:__doPostBack('buttonSettings','')">Settings</a>
								   <a id="buttonLogout" href="javascript:__doPostBack('buttonLogout','')">Logout</a>
								</div>
							</td>
						<tr>
							<td vAlign="top" align="left" colSpan="2">
								<table cellSpacing="0" cellPadding="0" width="100%" border="0">
									<tbody>
										<tr>
											<td width="100%" colSpan="2">
<table>
   <tr>
      <td>
<body>
<table id="Table1" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
   <TR>
      <TD vAlign="top" align="right" width="15%"></TD>
      <TD style="WIDTH: 880px" vAlign="top" align="left">
         </TD>
      <TD vAlign="top" align="right" width="20%"></TD>
   </TR>
   <tr>
      <td vAlign="top" align="right" width="15%"><span id="TicketSearch1__ctl0_SketchEdit1_SketchesLabel">Sketches:</span></td>
      <td style="WIDTH: 880px" vAlign="top" align="left">
         <P><input name="TicketSearch1:_ctl0:SketchEdit1:sketchFileName" id="TicketSearch1__ctl0_SketchEdit1_sketchFileName" type="file" style="WIDTH: 440px; HEIGHT: 22px" size="54" />&nbsp;
            <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Upload" value="Upload" id="TicketSearch1__ctl0_SketchEdit1_Upload" />&nbsp;
            <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Draw" value="Draw" id="TicketSearch1__ctl0_SketchEdit1_Draw" /><BR>
            <span id="TicketSearch1__ctl0_SketchEdit1_MaxFileSizeNote">A maximum of 5Mb is allowed for each file.</span></P>
      </td>
      <td vAlign="top" align="right" width="20%">
         <DIV style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 266px; BORDER-BOTTOM: black 1px solid; HEIGHT: 100px"
            align="left"><table id="TicketSearch1__ctl0_SketchEdit1_SketchList" border="0" style="width:160px;">
 
</table></DIV>
         <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Delete" value="Delete" id="TicketSearch1__ctl0_SketchEdit1_Delete" /></td>
   </tr>
   <TR>
      <TD colSpan="3"></TD>
   </TR>
   <TR>
		<TD colspan="3" align="center">
			<iframe id="TicketSearch1__ctl0_SketchEdit1_kMapFrame" style="DISPLAY:none;display:;" name="kMapFrame" frameBorder="1" width="830" height="630" src="http://test.com/CIEXC001A/general.do?lat=48.8577&amp;lon=-64.2064&amp;lang=fr">
			</iframe>
		</TD>
	</TR>
	<tr>
		<td></td>
	</tr>
	<tr>
		<td colspan="2" align="right">
			<input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:getImageButton" value="Get image" id="TicketSearch1__ctl0_SketchEdit1_getImageButton" onclick="getImage();" />
		</td>
	</tr>
	<TR>
		<TD colSpan="3"></TD>
	</TR>
   <tr>
      <td align="right" colSpan="3">&nbsp;
         <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Save" value="Save" id="TicketSearch1__ctl0_SketchEdit1_Save" /><input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Cancel" value="Cancel" id="TicketSearch1__ctl0_SketchEdit1_Cancel" /></td>
   </tr>
</table>
</body>
</td>
   </tr>
</table>
 
<BR>
												<P>&nbsp;</P>
											</td>
										</tr>
										<TR>
											<td width="20%" height="12">&nbsp;
											</td>
											<td height="32" align="left"><p align="left"><a class="bodytext" href="#top"><span class="bodytext">Top</span></a>
												</p>
											</td>
										</TR>
										<TR>
											<!-- Start Footer -->
											<td id="Mfooter_externe" colspan="2">
   <!-- footer -->
</td>
 
											<!-- End Footer -->
										</TR>
									</tbody>
								</table>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		<script type="text/javascript"> 
  function getImage() 
  { 
     var windowUrl = window.location.href; 
     var idxJsessionId = windowUrl.indexOf("#cartoId=") + "#cartoId=".length; 
     var jsessionid = windowUrl.substring(idxJsessionId); 
     var baseHref = document.getElementById("kMapFrame").src; 
     var idxEndBaseHref = baseHref.lastIndexOf("/") + 1; 
     baseHref = baseHref.substring(0, idxEndBaseHref); 
     document.getElementById("drawnSketchFileURL").value = baseHref + "pdf.do;jsessionid=" + jsessionid; 
     document.getElementById("baseHref").value = baseHref; 
     document.getElementById("jsessionid").value = jsessionid; 
  } 
</script>
 
	<script language="javascript"> 
       var text;
       if(document.all)
       {
           text = document.all['TicketSearch1__ctl0_SketchEdit1_kMapFrame'];
       }
       else
       {
           text = document.getElementById['TicketSearch1__ctl0_SketchEdit1_kMapFrame'];
       }
       text.focus();
</script>
 
</form>
	</body>
</HTML>

Open in new window


from Firefox
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Edit Sketches</title>
		<link rel="StyleSheet" href="style/menu.css" type="text/css">
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<link rel="StyleSheet" href="style/menu.css" type="text/css" />
<link href="style/print.css" rel="stylesheet" type="text/css" media="print">
<style type="text/css">@import url("http://www.test.com//themes/info-excavation/style/style.css"); </style>

<script type="text/javascript" src="http://www.test.com//includes_axial/axialScript.js"></script>
<script type="text/javascript" src="http://www.test.com//includes_axial/formScript.js"></script>
<script language="JavaScript" type="text/JavaScript">

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v6.0

	  var i,p,v,obj,args=MM_showHideLayers.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	    obj.visibility=v; }

}

CacheVar=true;

function MM_showHideLayersTime() { //v6.0
//alert('Show hide'+CacheVar);
	if (CacheVar==true)

	{
	  var i,p,v,obj,args=MM_showHideLayersTime.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	    obj.visibility=v; }
	}
}

timerID="";

function StartTimer(NameLayer) {
//alert('start time'+CacheVar);
  timerID = setTimeout("MM_showHideLayersTime('"+NameLayer+"','','hide')",1000);
}

function CacheMenu(NumLayer)
{
	for (i=1;i<=6;i++){
	MM_showHideLayers('menu0'+i,'','hide')
	}
	MM_showHideLayers('menu0'+NumLayer,'','show')
}

function CacheTout(){

MM_showHideLayers('menu01','','hide','menu02','','hide')
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//-->
</script>
	</HEAD>
	<body class="page_bg" leftMargin="0" topMargin="0" onunload="if('SketchEditFrame.ascx' != '') {location.replace('Default.aspx');}">
		<body style="padding:10px;padding-top:0px;margin:0;">
<table cellpadding="0" cellspacing="0" border="0" id="MFrm" class="noPrint">
  <tr> 
    <td id="Mhead" valign="top"><img class="logo" src="http://test.com//themes/test/images/en/logo-info-excavation.gif" width="172" height="73" alt="Info Excavation | creuser en toute sécurité" /> 
      <div class="top_right"> 
        <div> <a class="btnLang" href="">&nbsp;</a> 
        </div>
        <div id="recherche_top"> <a class="btnPlan" href="http://www.test.com//index.php?module=CMS&func=smap">Site 
          map</a> 
          <form id="recherche" name="recherche" method="post" action="http://www.info-excavation.com//modules.php">
            <input name="q" id="q" type="text" class="search" value="Search" onfocus="javascript:this.value=''" size="15" style="height: 15px; padding: 0px; color: #999" />
            &nbsp;
            <input type="image" src="http://www.test.com//themes/info-excavation/images/btn-recherche.gif" name="imageField22" class="btnSubmit" />
            <input type="hidden" name="op" value="modload" />

            <input type="hidden" name="name" value="Search" />
            <input type="hidden" name="file" value="index" />
            <input type="hidden" name="action" value="search" />
            <input type="hidden" name="overview" value="1" />
            <input type="hidden" name="bool" value="AND" />
            <input type="hidden" name="active_CMS" id="active_CMS" value="1" />
            <input type="hidden" name="ssec" value="All" />
          </form></td>
 </tr></table><form name="Form1" method="post" action="Default.aspx" id="Form1" enctype="multipart/form-data">

<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDwtMTg5NTE5MjYzNzt0PDtsPGk8MD47aTwxPjs+O2w8dDxwPGw8VGV4dDs+O2w8SW5mby1FeGNhdmF0aW9uIC0gRWRpdCBTa2V0Y2hlczs+Pjs7Pjt0PHA8bDxlbmN0eXBlOz47bDxtdWx0aXBhcnQvZm9ybS1kYXRhOz4+O2w8aTwxPjtpPDc+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPEluZm8tRXhjYXZhdGlvbiAtIEVkaXQgU2tldGNoZXM7Pj47Pjs7Pjt0PDtsPGk8MD47PjtsPHQ8O2w8aTwwPjs+O2w8dDw7bDxpPDE+Oz47bDx0PDtsPGk8MTY+O2k8MjA+O2k8MjI+Oz47bDx0PHQ8cDxwPGw8RGF0YVRleHRGaWVsZDs+O2w8RmlsZU5hbWU7Pj47Pjt0PGk8MD47QDw+O0A8Pj47Pjs7Pjt0PHA8bDxzdHlsZTt3aWR0aDtoZWlnaHQ7c3JjOz47bDxESVNQTEFZOm5vbmVcO2Rpc3BsYXk6XDs7ODMwOzYzMDtodHRwOi8vaW5mb2V4LmtvcmVtdGVzdC5jb20vQ0lFWEMwMDFBL2dlbmVyYWwuZG8/bGF0PTQ4LjgyMjgzJmxvbj0tNjQuNDcyNSZsYW5nPWZyOz4+Ozs+O3Q8cDxwPGw8VmlzaWJsZTs+O2w8bzx0Pjs+PjtwPGw8b25jbGljazs+O2w8Z2V0SW1hZ2UoKVw7Oz4+Pjs7Pjs+Pjs+Pjs+Pjs+Pjs+Pjs+PjtsPFRpY2tldFNlYXJjaDE6X2N0bDA6U2tldGNoRWRpdDE6U2tldGNoTGlzdDowOz4+mx5HfaLa21C3s6BWWvjMkUf7TD0=" />

<script language="javascript" type="text/javascript">
<!--
	function __doPostBack(eventTarget, eventArgument) {
		var theform;
		if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
			theform = document.Form1;
		}
		else {
			theform = document.forms["Form1"];
		}
		theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
// -->
</script>
<script language=javascript>
   function sktechUploadDone()
   {
     window.location = 'http://205.xxx.xxx.xxx/default.aspx?uploadDone=1';
   }
</script>



			<INPUT type="hidden" id="wantsToSaveAndPrint" name="wantsToSaveAndPrint">
			<input type="hidden" name="drawnSketchFileURL">
            <input type="hidden" name="baseHref">

            <input type="hidden" name="jsessionid">
            <input type="hidden" name="imageAction" value="pdf.do">
			<div align="center">
				<table height="100%" cellSpacing="0" cellPadding="0" width="770" border="0">
					<tbody>
						<TR class="noPrint">
							<td valign="top" colspan="3" align="center"><font color="navy">Navigation with the site 
									menu will be possible only when closing this session by clicking on the <i>logout</i>
									hyperlink.</font>

							</td>
						</TR>
						<tr class="print">
							<td vAlign="top" align="left" width="10" rowSpan="3"></td>
							<td vAlign="middle" align="center" width="800" height="30" rowSpan="1" colspan="2"><br>
								<b><font size="6">
										<span id="pageTitle">Info-Excavation - Edit Sketches</span></font></b>
								<div vAlign="top" align="right">

								   <a id="buttonSettings" href="javascript:__doPostBack('buttonSettings','')">Settings</a>
								   <a id="buttonLogout" href="javascript:__doPostBack('buttonLogout','')">Logout</a>
								</div>
							</td>
						<tr>
							<td vAlign="top" align="left" colSpan="2">
								<table cellSpacing="0" cellPadding="0" width="100%" border="0">
									<tbody>

										<tr>
											<td width="100%" colSpan="2">
<table>
   <tr>
      <td>
<body>
<table id="Table1" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
   <TR>
      <TD vAlign="top" align="right" width="15%"></TD>
      <TD style="WIDTH: 880px" vAlign="top" align="left">

         </TD>
      <TD vAlign="top" align="right" width="20%"></TD>
   </TR>
   <tr>
      <td vAlign="top" align="right" width="15%"><span id="TicketSearch1__ctl0_SketchEdit1_SketchesLabel">Sketches:</span></td>
      <td style="WIDTH: 880px" vAlign="top" align="left">
         <P><input name="TicketSearch1:_ctl0:SketchEdit1:sketchFileName" id="TicketSearch1__ctl0_SketchEdit1_sketchFileName" type="file" style="WIDTH: 440px; HEIGHT: 22px" size="54" />&nbsp;
            <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Upload" value="Upload" id="TicketSearch1__ctl0_SketchEdit1_Upload" />&nbsp;

            <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Draw" value="Draw" id="TicketSearch1__ctl0_SketchEdit1_Draw" /><BR>
            <span id="TicketSearch1__ctl0_SketchEdit1_MaxFileSizeNote">A maximum of 5Mb is allowed for each file.</span></P>
      </td>
      <td vAlign="top" align="right" width="20%">
         <DIV style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 266px; BORDER-BOTTOM: black 1px solid; HEIGHT: 100px"
            align="left"><table id="TicketSearch1__ctl0_SketchEdit1_SketchList" border="0" width="160">

</table></DIV>
         <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Delete" value="Delete" id="TicketSearch1__ctl0_SketchEdit1_Delete" /></td>
   </tr>

   <TR>
      <TD colSpan="3"></TD>
   </TR>
   <TR>
		<TD colspan="3" align="center">
			<iframe id="TicketSearch1__ctl0_SketchEdit1_kMapFrame" style="DISPLAY:none;display:;" name="kMapFrame" frameBorder="1" width="830" height="630" src="http://test.com/CIEXC001A/general.do?lat=48.82283&amp;lon=-64.4725&amp;lang=fr">
			</iframe>
		</TD>
	</TR>

	<tr>
		<td></td>
	</tr>
	<tr>
		<td colspan="2" align="right">
			<input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:getImageButton" value="Get image" id="TicketSearch1__ctl0_SketchEdit1_getImageButton" onclick="getImage();" />
		</td>
	</tr>
	<TR>

		<TD colSpan="3"></TD>
	</TR>
   <tr>
      <td align="right" colSpan="3">&nbsp;
         <input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Save" value="Save" id="TicketSearch1__ctl0_SketchEdit1_Save" /><input type="submit" name="TicketSearch1:_ctl0:SketchEdit1:Cancel" value="Cancel" id="TicketSearch1__ctl0_SketchEdit1_Cancel" /></td>
   </tr>
</table>
</body>
</td>
   </tr>

</table>

<BR>
												<P>&nbsp;</P>
											</td>
										</tr>
										<TR>
											<td width="20%" height="12">&nbsp;
											</td>
											<td height="32" align="left"><p align="left"><a class="bodytext" href="#top"><span class="bodytext">Top</span></a>

												</p>
											</td>
										</TR>
										<TR>
											<!-- Start Footer -->
											<td id="Mfooter_externe" colspan="2">
   <!-- footer -->
</td>

											<!-- End Footer -->
										</TR>
									</tbody>
								</table>
							</td>
						</tr>
					</tbody>

				</table>
			</div>
		<script type="text/javascript">
  function getImage() 
  { 
     var windowUrl = window.location.href; 
     var idxJsessionId = windowUrl.indexOf("#cartoId=") + "#cartoId=".length; 
     var jsessionid = windowUrl.substring(idxJsessionId); 
     var baseHref = document.getElementById("kMapFrame").src; 
     var idxEndBaseHref = baseHref.lastIndexOf("/") + 1; 
     baseHref = baseHref.substring(0, idxEndBaseHref); 
     document.getElementById("drawnSketchFileURL").value = baseHref + "pdf.do;jsessionid=" + jsessionid; 
     document.getElementById("baseHref").value = baseHref; 
     document.getElementById("jsessionid").value = jsessionid; 
  } 
</script>

	<script language="javascript">
       var text;
       if(document.all)
       {
           text = document.all['TicketSearch1__ctl0_SketchEdit1_kMapFrame'];
       }
       else
       {
           text = document.getElementById['TicketSearch1__ctl0_SketchEdit1_kMapFrame'];
       }
       text.focus();
</script>

</form>
	</body>
</HTML>

Open in new window

Author

Commented:
See line 224 for the iframe.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Fixer of Problems
Most Valuable Expert 2014
Commented:
Why do you have this: style="DISPLAY:none;display:;" ?  In a normal element, that would prevent it from being displayed.

Author

Commented:
You found my problem. In the HTML code, I set the Display to none at the begining and when the user clicks on the  Draw button, I change the style to display the iframe but I did it wrong:

Code behind (before):
kMapFrame.Style.Add("display","");

I simply changed it to:
kMapFrame.Style.Clear();

And it works.

Thanks
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Good, you're welcome.  Thanks for the points.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial