Struts \ POI \ Javascript Problem with IE 7

Alright folks, I'm having a problem migrating my application from IE 6 to IE 7. We have search functionality in the app that triggers off of javascript calls when a button is pressed in the search. Once the data is retrieved, an export button becomes enabled that allows the user to export those results to Excel using POI. On the back end, we're using struts running in WAS 6. When the results are exported, the action class manually writes the excel workbook to the output stream as below:
     protected void print(HSSFWorkbook a_wb, HttpServletResponse a_response)
          throws IOException, ServletException {
          // generate output
          a_response.setContentType("application/vnd.ms-excel");
          ServletOutputStream out = a_response.getOutputStream();
          a_wb.write(out);
Then the action returns null to signify to struts that the response has already been handled manually.
Everything works perfectly in IE 6. In IE 7, however, everything is not so great. The search works to retrieve the results and I can export them to Excel. The problem is that after I export them to Excel, all the Javascript on my page ceases to work. Basically, what I've been able to determine is that upon receiving the Excel document response something is causing the document Javascript variable to become undefined. This causes all my javascript -- things like:
document.getElementById('actionIndicator').value ="Clear";
to completely fail because document is undefined. Mind you, the page is still sitting there rendered in IE, and I can do things like window.frames and programmatically see a list of the frames defined on the page -- but the document variable is completely gone.
At this point I'm kind of at a loss as to what to check or test next, so I'm open to any suggestions. Thanks!

Hey Gina
we have not seen broken images like you did, but have seen dramatic reduction in respose time with IE 7 (~20 times slower than normal). A bunch of IT folks tried various settings and configurations, with no success. Finally, we figured that different versions of IE 7 acd differently. Version 5700 was running fine. Version 5713 (or something like that, the latest one) was slooooow.
Our Office of Information Resources does not "support" any other browser than IE. So, in addition to problems with Office 2007 I described previously, we may get a double whammy from Microsoft. Don't get me started.
Vojin

Similar Messages

  • Javascript problem with Internet Explorer 6

    Hi together
    I have a problem with IE6 on a JSP page. I want to disable a HTML button calls
    'fehlerdetails' if one of radiobutton list has a value "FIID NOK".
    This Java script sample below is running with Netscape 7.0 but Internet Explorer get no objects back.
    Has everyone a idea how can I read a value from list:
    document.GetFailedPostingPositionListW3InBean.checked[i]
    with Internet Explorer 6??
    HTML Radiobutton (Struts):
    <html:radio styleClass="radioButton" name="GetFailedPostingPositionListW3InBean" onclick="checkAccountNr();" property="checked" value="<%= String.valueOf(j) %>">
    </html:radio>
    HTML Button:
    <td><input class='pushbuttonlarge' type="button" value="fehlerdetails" onClick="document.GetFailedPostingPositionListW3InBean.submit();" name="fehlerdetails"/></td>
    Javascript:
    function checkAccountNr() {
         document.GetFailedPostingPositionListW3InBean.fehlerdetails.disabled = false;
         var radioButtons = document.GetFailedPostingPositionListW3InBean.checked;     
         if(document.GetFailedPostingPositionListW3InBean.checked > 0) {     
              for(i=0; i < radioButtons.length; i++) {
                   if(radioButtons.checked) {
                        radioButtonAccountNr = radioButtons[i].AccountNr;
                        radioButtonFiidText     = radioButtons[i].FiidText;
                        if (radioButtonAccountNr == "ABACUS-NR NOK" || radioButtonFiidText == "FIID NOK") {
                             document.GetFailedPostingPositionListW3InBean.fehlerdetails.disabled = true;                                                  
    Thank you very much for you help.
    Cheers Robert

    first, this is a Java forum, not Javascript, and aside from the first 4 letters, the two have nothing in common.
    Second.. if there's more then 1 radio button named 'GetFailedPostingPositionListW3InBean', this:
    var radioButtons = document.GetFailedPostingPositionListW3InBean.checked;
    will be an error.
    var radioButtons = document.GetFailedPostingPositionListW3InBean;      
    for(x=0; x < radioButtons.length; x++) {
       if(radioButtons[x].checked) {
          ... check the value and disable
    }

  • Javascript problem with "opener" object

    Hello again,
    In my quest to reuse some automatic generated bsp code to my own advantage, i encounter a problem with the javascript "opener" object.
    I open a new window(win2) for a value help, this should return a value to the calling window(win1). It does so by calling a function in win1. My problem is that i get an error, stating that access to win1 is denied.
    opener.focus() works: it sets focus on win1
    so the opener object seems fine, pointing to the richt window
    opener.functionWin1() does not work:
    when i want to call a function from win1 i get the message "access denied", this also happens when i want for instance call a propertie of win1 with for example alert(opener.location);
    Does anybody know if there is a special parameter i should set, before i can call functions on the opener page? Or has anybody encountered the same pronlem?
    Kind regards,
    Martijn de Jong.

    If you want to set a input field value from a value help page you can write a JS function in the value help page itself, which will take of populating the field in the root page.
    See this example script:
    <head>
    <script language="JavaScript" type="text/javascript">
              function fun()
                   s=window.opener;     
                   txt=s.document.getElementById("<input filed id of the parent page>");
                   if ( document.form1.row_sel1.value )
                   txt.value = document.form1.row_sel1.value;
                   window.close();
        </script>
    </head>
    Refer this thread for further details:
    Re: F4 help using javascript
    Regards,
    Ravikiran.

  • OBIEE10G - Javascript problems with graphs

    Hi,
    Is there any known problem with using javascript and the display of graphs? I have a report where i have a pivot table where i use some javascript to format that table. Below that table i have 2 graphs that are different reports from the one with the pivot table (see images below).
    Version working well
    http://imageshack.us/f/41/graphworkingok.jpg/
    Version with problems
    http://imageshack.us/f/220/graphwithproblems.jpg/
    I guess the problems may be related with javascript because when i remove the javascript from the pivot table (i have it in a static text view) the graphs seem to work ok.
    I'm not an expert (far from that) with javascript and i was playing around with it so i could format the pivot table the way i wanted but i don't have enough knowledge of it to understand what may be causing the problem.
    Thanks

    I didn't do that because the line i want to format is a "manually" built line. I want to format the last line (total line) but that line wasn't made using the total feature of OBIEE but built by myself. What i do in that line is changing the background color of all the cells in that last line and changing the font-size as well.
    Would i be able to do this just by using CSS? From what i read i think i can't that's why i used JS.
    Btw, what i did is related to this other thread i created where i explained my problem, this may help:
    OBI10G - Format a specific cell of a pivot table
    Edited by: Pedro F on 19/Mar/2012 4:15

  • Netflix having JavaScript problem with Firefox 7

    FireFox was working fine with 6 before the update to 7 with Netflix, and after the update Netflix no longer plays which Netflix tells me to enable JavaScript which it is with FireFox 7.

    Can you detect any pattern to it, whether related to messages with attachments, or particular advertising on the page, etc.?
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    (Usually the dialog will refer to live.com rather than hotmail.com, that's normal.)
    Then try reloading the page and logging in again. Does that help?

  • Javascript problems with framesets

    Hi,
    we face some serious problems when using Firefox 4 with a SAP frameset-based webshop. It's using Javascript methods to access frames per name. It was working for all versions of Firefox up to 3.6.xx without any problems. Now, sometimes the frames are 'undefined', though they are loaded. As I'm the developer, the customer is asking me to solve the problem. But until now, I was not able to find a solution.
    Is there a known bug with Javascript and framesets or has something changed in Javascript handling and I need to change the coding?
    Thanks in advance,
    mmdev

    Update:
    The web shop is based on a Struts framework. With the help of the Add-on 'View frames' I found out something strange. If an action is loaded in a frame (something.do) instead of a JSP directly, the frame's name is 'object' instead of the real name in Firefox 4 (see screenshot). That explains why the frames are undefined, but not why they are not named correctly? What could be the reason? Any idea?
    Thanks,
    mmdev

  • Weird javascript problem with IE

    on this page:
    http://www.webtrans1.com/folio
    when you click on a thumbnail on the left, the background
    around the thumbnail should switch to
    grey. So that whichever thumbnail is selected has a grey
    background, while the others have a white
    background.
    This works in FireFox on XP, but not in IE7.
    On Mac, it works in Safari, FireFox and Opera.
    the switch to grey is using Dreamweaver change property
    behavior, and in the links are like this:
    <a href="#"
    onClick="MM_changeProp('di1','','style.backgroundColor','#ccc','DIV');return
    false;">
    But there is lots of javascript in the page, some of which I
    wrote myself... And I'm not a js expert.
    while googling about this problem, I found lots of references
    to a 'memory leek' issue with IE and
    JS, but what I read went over my head, I don't know if that
    could be the issue... Can somebody
    suggest a solution?
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

    There doesn't seeem to be anything that would cause leakage,
    but FF
    throws this error:
    Warning: Error in parsing value for property 'height'.
    Declaration dropped.
    Source File:
    http://www.webtrans1.com/folio/
    Line: 21
    Mick
    (_seb_) wrote:
    > on this page:
    >
    >
    http://www.webtrans1.com/folio
    >
    > when you click on a thumbnail on the left, the
    background around the
    > thumbnail should switch to grey. So that whichever
    thumbnail is selected
    > has a grey background, while the others have a white
    background.
    >
    > This works in FireFox on XP, but not in IE7.
    > On Mac, it works in Safari, FireFox and Opera.
    >
    > the switch to grey is using Dreamweaver change property
    behavior, and in
    > the links are like this:
    >
    > <a href="#"
    >
    onClick="MM_changeProp('di1','','style.backgroundColor','#ccc','DIV');return
    > false;">
    >
    > But there is lots of javascript in the page, some of
    which I wrote
    > myself... And I'm not a js expert.
    >
    > while googling about this problem, I found lots of
    references to a
    > 'memory leek' issue with IE and JS, but what I read went
    over my head, I
    > don't know if that could be the issue... Can somebody
    suggest a solution?
    >

  • Javascript problem with HTML embed

    I'm migrating a large existing site from Sitegrinder to Muse after converting several smaller sites without problem. Unfortunately this site has a javascript button that doesn't work at all. The button was created with the Object/Embed HTML feature, just as coding for several ads was placed in the same way. All the elements displayed properly in the Muse layout and in the browser preview, so I assumed that the code was being read correctly.
    Unfortunately when I click the button on the deployed site, the message "Run script "getPianoDeals()" appears at the bottom of the browser window but nothing else happens. A pop-up window with localized info is supposed to show up. This button appears at the top of every page on a website of hundreds of pages.
    I don't know Javascript, simply place the line of code provided to me. The button has always worked in the past. There's a lot going on in the pages so I don't know if there's a conflict or what to do about it. The site is at www.pianobuyer.com; the white button labeled "view local offers" in the top right corner is the problem. For reference I've reloaded the main pages of the old site at www.pianobuyer.com/Julie/ where the button functions correctly.
    Any suggestions are greatly appreciated.
    Thanks.

    I've tried several things to sort out the problem.
    I isolated the button on a separate layer (helpful with problems between drop-down menu bar and other HTML objects on a page) but it made no difference.
    I then edited the HTML file, moving the relative position of the Muse javascript entries and the problem button script. No matter where the lines were placed, when the button script follows the Muse scripts it works fine; when the button script precedes the Muse scripts it does nothing. Also when the Muse scripts follows the button script the normal actions on the site works fine (drop-down menu bar, slide show); when the Muse scripts precedes the button script none of them work. So the conflict definitely occurs between the scripts.
    I found two discussions on the forum about similar problems. Both refer to a "require.js" file being added to the page. Unfortunately I don't understand what's being discussed.

  • Javascript Problems with Viruses

    Our IT department has been posting bulletins, company-wide about not allowing Javascript to run in PDFs. Does anyone know how that will impact forms/form execution in forms created using Acrobat 8? I got a really good book on forms, and was all set to go, but now I'm not sure if it's worth the trouble. Thanks

    Has your IT function posted the links to the patch or updated Acrobat/Reader with the latest updates that fix the latest problem for version s 7-9?
    Adobe has acknowledged the problem and fixed it. As noted in the initial reports, this vulnerability is rare in the real world. And Acrobat/Reader JavaScript has very few exits outside of Acrobat/Reader, unlike the OS JavaScript. One should also look at all the functions within Acrobat JavaScript that have been restricted due to possible privacy and security vulnerabilities like no silent printing or quite saving. MicroSoft and web browser providers should be so responsive.

  • Javascript problems with NetScape

    You must all be familiar with thios sort of problem but I have put
    together a simple website for a customer which automatically sends
    emails to him to record visits to the site from invited individuals. The
    following page script is a simple asp page to send the email upon entry
    and forward the visitor on to the first page of the site (I have written
    a C++ CGI program to send the email which works fine). However, the
    script works perfectly for Explorer browser but Netscape doesn't seem to
    cope with it. It just hangs with the loading symbol turning round and
    round indefinitely. Does anyone have any ideas ? I am sorry if this is
    not the appropriate gfroup but I couldn't find another nearer the mark :-
    <% @LANGUAGE = "VBScript"
    @ENABLESESSIONSTATE = TRUE %>
    <% Response.Expires = 0 %>
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <TITLE></TITLE>
    <script LANGUAGE = "JavaScript">
    function submitform()
    form1.submit();
    </script>
    </HEAD>
    <BODY onload="submitform()">
    <% dim cid, jid, xcid, xjid
    if (Request.QueryString("cid") <> "") then
    set cid = Request.QueryString("cid")
    Session("CID") = cid
    Session.Timeout = 15
    end if
    xcid = Session("CID")
    %>
    <form action="/cgi-bin/CGIMail.exe" method="POST" name="form1">
    <input type="hidden" value="<% Response.Write(xcid) %>" name="Candidate">
    <input type="hidden" value="xxxx" name="Job">
    <input type="hidden" name="emp_to" value="[email protected]">
    <input type="hidden" name="emp_from" value="webmaster@customers_site.com">
    <input type="hidden" name="emp_fromname" value="Autoresponder">
    <input type="hidden" name="emp_subject" value="Site Visit">
    <input type="hidden" name="emp_host" value="10.1.1.58">
    <input type="hidden" name="emp_NextURL" value="response/JDxxxx.asp">
    <input type="hidden" name="emp_RejectURL" value="response/Reject.html">
    </form>
    </BODY>
    </HTML>

    OK. I know that I'm sometimes the "off-topic" police for this newsgroup.
    But this is so offtopic that that I laughed out loud.
    David
    nospam@nospam wrote:
    You must all be familiar with thios sort of problem but I have put
    together a simple website for a customer which automatically sends
    emails to him to record visits to the site from invited individuals. The
    following page script is a simple asp page to send the email upon entry
    and forward the visitor on to the first page of the site (I have written
    a C++ CGI program to send the email which works fine). However, the
    script works perfectly for Explorer browser but Netscape doesn't seem to
    cope with it. It just hangs with the loading symbol turning round and
    round indefinitely. Does anyone have any ideas ? I am sorry if this is
    not the appropriate gfroup but I couldn't find another nearer the mark :-
    <% @LANGUAGE = "VBScript"
    @ENABLESESSIONSTATE = TRUE %>
    <% Response.Expires = 0 %>
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <TITLE></TITLE>
    <script LANGUAGE = "JavaScript">
    function submitform()
    form1.submit();
    </script>
    </HEAD>
    <BODY onload="submitform()">
    <% dim cid, jid, xcid, xjid
    if (Request.QueryString("cid") <> "") then
    set cid = Request.QueryString("cid")
    Session("CID") = cid
    Session.Timeout = 15
    end if
    xcid = Session("CID")
    %>
    <form action="/cgi-bin/CGIMail.exe" method="POST" name="form1">
    <input type="hidden" value="<% Response.Write(xcid) %>" name="Candidate">
    <input type="hidden" value="xxxx" name="Job">
    <input type="hidden" name="emp_to" value="[email protected]">
    <input type="hidden" name="emp_from" value="webmaster@customers_site.com">
    <input type="hidden" name="emp_fromname" value="Autoresponder">
    <input type="hidden" name="emp_subject" value="Site Visit">
    <input type="hidden" name="emp_host" value="10.1.1.58">
    <input type="hidden" name="emp_NextURL" value="response/JDxxxx.asp">
    <input type="hidden" name="emp_RejectURL" value="response/Reject.html">
    </form>
    </BODY>
    </HTML>

  • Java to javascript problems with '

    I have a class that pass some strings to a javascript alert(<....>)
    In this sting I have some < ' > and when I launch the class I get always an alert with the ASCII code of < ' >.
    I used this syntax inside the String
    String alertSctring="Let \' go";
    but I get
    Let &#39 go
    Why?

    I'm sure the problem has to do with escaping values in strings in Java and Javascript.
    Try using double-backslash quote.. like "Let \\' Go"

  • Crystalreportviewers javascript, problems with hidden components

    I've been struggling for the last 5 weeks to get the crystalreportviewer working in my webapp.  It is SO close, but I feel like I'm missing something related possibly to the use of the crystalreportviewer (of class com.crystaldecisions.report.web.jsf.UIReportPageViewer)
    The basic problem is that while the viewer is shown on the webpage, the toolbar and report content are not.
    By using FireBug2, I can find the report content and force it to display.  I can do this by changing "visibility:hidden" to "visibility:visible" in the below body tag, generated by the SAP BO provided javascript:
    <iframe id="bobjid_1406231767316_iframe" width="100%" height="100%" frameborder="0" tabindex="0" aria-labelledby="bobjid_1406231767316_h2" margin="0" style="display: block;">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <body>
    <style>
    <div id="OFGCrystalViewercridreportpage" class="crystalstyle" style="width:652;height:861;position:absolute;visibility:hidden;" name="OFGCrystalViewercridreportpage">
    </body>
    </html>
    </iframe>
    I even know the code that creates the iFrame, found at line 160 of ReportPage.js in /crystalreportviewers/js/crviewer/
    However, I don't know how to find the code that sets the content within the body tag, which comes in as a parameter to the iframe-constructing function from somewhere else.
    Similarly, with the toolbar, I can find the html using firebug, and by changing "display:none" to "display:block" and then offsetting the next division down a number of pixels, I can see the toolbar, with the zoom, export, print buttons.
    So...I can make them display by manipulating the webpage the BO Javascript creates, but how do I get them to display by default?
    Jeremy

    I've been struggling for the last 5 weeks to get the crystalreportviewer working in my webapp.  It is SO close, but I feel like I'm missing something related possibly to the use of the crystalreportviewer (of class com.crystaldecisions.report.web.jsf.UIReportPageViewer)
    The basic problem is that while the viewer is shown on the webpage, the toolbar and report content are not.
    By using FireBug2, I can find the report content and force it to display.  I can do this by changing "visibility:hidden" to "visibility:visible" in the below body tag, generated by the SAP BO provided javascript:
    <iframe id="bobjid_1406231767316_iframe" width="100%" height="100%" frameborder="0" tabindex="0" aria-labelledby="bobjid_1406231767316_h2" margin="0" style="display: block;">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <body>
    <style>
    <div id="OFGCrystalViewercridreportpage" class="crystalstyle" style="width:652;height:861;position:absolute;visibility:hidden;" name="OFGCrystalViewercridreportpage">
    </body>
    </html>
    </iframe>
    I even know the code that creates the iFrame, found at line 160 of ReportPage.js in /crystalreportviewers/js/crviewer/
    However, I don't know how to find the code that sets the content within the body tag, which comes in as a parameter to the iframe-constructing function from somewhere else.
    Similarly, with the toolbar, I can find the html using firebug, and by changing "display:none" to "display:block" and then offsetting the next division down a number of pixels, I can see the toolbar, with the zoom, export, print buttons.
    So...I can make them display by manipulating the webpage the BO Javascript creates, but how do I get them to display by default?
    Jeremy

  • JavaScript problem with JSF

    Hi All,
    Hi All,
    Studio Creator has generated this code
    <h:form binding="#{general$forgotpassword0.form1}" id="form1">
    <h:inputText binding="#{general$forgotpassword0.txtLogin}" id="txtLogin" styleClass="frmObjects" />
    <h:commandButton action="#{general$forgotpassword0.btnSubmit_action}" binding="#{general$forgotpassword0.btnSubmit}"
    id="btnSubmit" onclick="alert('hello'); return checkLogin();" styleClass="frmObjects1" title="btnSubmit" value="Continue"/>
    </h:form>
    now after compilation, I get form1:txtLogin for txtLogin
    Now how can I perform client side JavaScript Validation on form1:txtLogin??
    Thanks
    Sudhakar

    The Id 'form1:txtLogin' is valid in SUN RI implementation but with myfaces, the ID can be different (the id generation depends on the implemented algorythm).
    I use the j4j.jar containing the component 'proxytag' to get the client Id generated by JSF engine. See http://www.jsftutorials.net/proxyTag.html
    Afterwards, you can manipulate the component via javascript by using document.getElementbyId("");

  • Javascript problem with update

    I just recently update to Snow Leopard on a 17" iMac Intel Core 2 duo. Now netflix won't load their sliding images or load a movie online in any brower (Safari, Chrome or Firefox.) Youversion.com will also not load across all browsers. When I look at the Javascript console in chrome it gives me this error:
    Uncaught SyntaxError: Unexpected token *           meta-densityIITest-20f3-1311973500-1-2.js:3
    Uncaught TypeError: Cannot read property 'Animator' of undefined           top10row-003-1311973500-1-2.js:3
    Uncaught ReferenceError: jQuery is not defined           facet.Control.infinite-007-1311973500-1-2.js:4
    Uncaught ReferenceError: jQuery is not defined           WiHome:3478Uncaught ReferenceError: jQuery is not defined
    It worked fine before the 10.6.8 Combo update and a Java update.
    The problem persists if I create a new user. I've tried reinstalling the updates as well but nothing is working.
    Any help would be appreciated.

    Nevermind, I figured it out. I believe uninstalling and reinstalling Silverlight fixed the problem.

  • Javascript problem with Explorer Windows

    All browser, with the exception on IE Windows will retrieve a
    text string
    containing the properties of a stylesheet object using the
    command
    document.styleSheets[n].cssRules[n].cssText.
    :where [n] is the number of the array object.
    I tried document.styleSheets[n].rules[n].cssText but there
    doesn't seem to
    be any properties for the "rules" object.
    Does any one know the equivelent command for IE
    Windows

    first, this is a Java forum, not Javascript, and aside from the first 4 letters, the two have nothing in common.
    Second.. if there's more then 1 radio button named 'GetFailedPostingPositionListW3InBean', this:
    var radioButtons = document.GetFailedPostingPositionListW3InBean.checked;
    will be an error.
    var radioButtons = document.GetFailedPostingPositionListW3InBean;      
    for(x=0; x < radioButtons.length; x++) {
       if(radioButtons[x].checked) {
          ... check the value and disable
    }

Maybe you are looking for