BOB: Business Objects Board
Not endorsed by or affiliated with SAP

Register | Login 

 
Take control of your CMS with Infolytic (Opens a new window)  

General Notice: No events within the next 45 days.

browser compatibility for iframe for opendocument


 
Search this topic... | Search SDK (VBA/ASP/JSP)... | Search Box
Register or Login to Post    Forum Index -> SDK (VBA/ASP/JSP)  Previous TopicPrint TopicNext Topic
Author Message
ShabanaKhan
Forum Member
Forum Member



Joined: 23 Apr 2010

Posts: 1



PostPosted: Fri Apr 23, 2010 12:57 am 
Post subject: browser compatibility for iframe for opendocument

hi

i am trying to use iframe for the url of opendocument to open the reports in my standalone application on tomcat. it is working fine with i.e but not in firefox.

below is the code that i m putting in my html page

*******************************************


<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IFrame_Check</title>

</head>

<body>
<table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%">
<tr><td>check check</td></tr>
<tr><td bgcolor="#003399">
<iframe name="Test" id="No CSS Style" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" src="http://192.168.0.155:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sType=wid&sWindow=Same&iDocID=9559" height="660px" width="100%"></iframe>
</td></tr></table>
</body>
</html>

****************************************************************

please suggest the solution as soon as possible as i have to deliver the solution 24 apr.any suggestion will be helpful.
Back to top
lvhongli
Forum Member
Forum Member



Joined: 23 May 2010

Posts: 1



PostPosted: Mon May 24, 2010 12:19 am 
Post subject: Re: browser compatibility for iframe for opendocument

if your project's name is businessobjects.

first, modify the file
path:businessobjects\enterprise115\desktoplaunch\InfoView\utils\utils.js

find the following mothod,modify the content

function findElementHelper(frame, Id) {
// frames with certain plugins (word, excel) will cause a js error because the frame document doesn't exist
if ((typeof(frame.document)).toLowerCase() == "unknown") return null;

var f = null;
try {
f = frame.document.getElementById(Id);
} catch(ex) {
// Ignore this frame if we can't access it. NS will return "Permission denied to get property
// HTMLDocument.getElementById" on some frames (eg: external hyperlink page)
}

if (f != null) return f;

for (var i = 0; i < frame.length; i++) {
f = findElementHelper(frame.frames, Id);
if (f != null) return f;
}
return null;
}

second,modify the file
path:businessobjects\enterprise115\desktoplaunch\viewers\cdz_adv\scripts\IVIntegration.js

find the mothod 'function canGoEdit()',modify the content

try{
var isAppsFrame=(myframe.thisIsAnAppsFrame && myframe.thisIsAnAppsFrame=="wishYouAreHere")?true:false;
}catch(e){
var isAppsFrame = true;
}
Back to top
Display posts from previous:   
Register or Login to Post    Forum Index -> SDK (VBA/ASP/JSP)  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 5 Hours
 
Jump to:  

Index | About | FAQ | RAG | Privacy | Search |  Register |  Login 

Get community updates via Twitter:

Not endorsed by or affiliated with SAP
Powered by phpBB © phpBB Group
Generated in 0.0984 seconds using 17 queries. (SQL 0.0783 Parse 0.0006 Other 0.0195)
CCBot/2.0 (http://commoncrawl.org/faq/)
Hosted by ForumTopics.com | Terms of Service
phpBB Customizations by the phpBBDoctor.com
Shameless plug for MomentsOfLight.com Moments of Light Logo