Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    regression in showPrintPreview?

    Hello,

    I'm using: Isomorphic SmartClient Framework (v8.2p_2012-06-12/PowerEdition Deployment 2012-06-12)

    I haven't touched my print button code in a while, but did upgrade to a nightly of a few weeks ago. When in development mode, the print button works, but when deployed, both Firefox and Chrome (both on windows and mac) give me the following console error in firebug.

    here is my printbutton code, pretty standard. I tried this with feeding it a ListGrid:
    Code:
    public class PrintButtonWidget extends IButton {
    	RadosMessages radosMessages = (RadosMessages) GWT
    			.create(RadosMessages.class);
    
    	private Canvas toPrint = null;
    
    	public PrintButtonWidget(Canvas target) {
    		this.toPrint = target;
    
    		setTitle(radosMessages.richTableView_print_button());
    
    		setShowRollOver(false);
    		setIcon(GWT.getHostPageBaseURL()
    				+ "images/icons/32/woofunction/printer_32.png");
    		setIconOrientation("right");
    
    		addClickHandler(new ClickHandler() {
    			public void onClick(ClickEvent event) {
    				Canvas.showPrintPreview(toPrint);
    			}
    		});
    	}
    }

    Firefox 11
    Code:
    Permission denied for <http://dev.technicom.nl> to get property Location.href
    http://dev.technicom.nl/generatedcode/sc/modules/ISC_Core.js
    Line 1280
    
    params is not defined
    http://dev.technicom.nl/generatedcode/sc/system/helpers/printFrame.html?id=isc_PrintCanvas_0&title=Afdruk%20voorbeeld
    Line 63
    Chrome:
    Code:
    Unsafe JavaScript attempt to access frame with URL http://dev.technicom.nl/#technicom from frame with URL http://dev.technicom.nl/generatedcode/sc/system/helpers/printFrame.html?id=isc_PrintCanvas_0&title=Afdruk%20voorbeeld. Domains, protocols and ports must match.
     printFrame.html:40
    (anonymous function)
    Is this a small error that slipped in? If not, please let me know so I could investigate this further.

    #2
    You may have been unlucky enough to hit an overnight regression around that timeframe - please try the latest, if the problem is still happening, please let us know whether you are setting document.domain and what value you're using,

    Comment


      #3
      Hello,

      problem still exists with nightly of (v8.2p_2012-06-28/PowerEdition Deployment 2012-06-28) .

      I do not set document.domain.

      To make sure I understand you correctly: Can it also be set using GWT, some properties file, or whatever, instead of the normal javascript?
      Atleast, When I inspect the DOM in Firebug, and navigate to document, There is no 'domain' set. Not sure if this info is useful to you, but I am eager to know where the problem comes from!

      Comment


        #4
        I looked up on this matter, and I don't use it. Also, this print button used to work with older nightlies, when the code was the same. I have a lot of printbutton instances in my app, and i feed it different things (canvasses, grids, forms, etc.), none of them work at the moment.

        Comment


          #5
          We've made a change to the 3.0p / 8.2p branch which should resolve this issue. This will be present in nightly builds going forward - if you continue to see it, please let us know.

          Regards
          Isomorphic Software

          Comment

          Working...
          X