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

Register | Login 

Follow BOB on Twitter! 
Follow BOB on Twitter! (Opens a new window)  

General Notice: Upcoming Events: SAPinsider BI Vegas: Feb 16, Colorado Chapter Meeting: Feb 19, Georgia Winter Chapter Meeting: Feb 26, NYC asug chapter: Mar 8, Indianapolis BOUG: Mar 11.

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
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


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


<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="" height="660px" width="100%"></iframe>


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
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

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

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

var isAppsFrame=(myframe.thisIsAnAppsFrame && myframe.thisIsAnAppsFrame=="wishYouAreHere")?true:false;
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.0605 seconds using 17 queries. (SQL 0.0140 Parse 0.0349 Other 0.0116)
CCBot/2.0 (
Hosted by | Terms of Service
phpBB Customizations by the
Shameless plug for Moments of Light Logo