locked
Pop up window shownig blank in azure RRS feed

  • Question

  • Hi ,

    I am using pop up window with window.open() method and it also send back data to the parent page and trigger a function. It works fine on developement pc ,but in hosted azure environment blank page is open in pop up.If anybody has solution please help.

    Thanks in advance

     

     

    Thursday, September 23, 2010 9:10 AM

Answers

  • Hello,

    what is the URL that you set for the new window? if you just call window.open() a new window with no address will be loaded. If you call it like window.open('http://127.0.0.1:80') - it might show blank because there is nothing on your machine. If you do it like: window.open('/') you might be opening the default.aspx page, which, in earlier versions of ASP.NET is BLANK! Bascially when you add new WebForm to the project it is added with name "WebForm1.aspx" (1,2,3 etc.) and it is common mistake to forget the blank "Default.aspx" page. Opening a "Blank" window most probably means you are opening a page that exists but is blank. You can deploy your application and run FIDDLER (check out this blog: http://blogs.staykov.net/2010/08/how-to-debug-your-application-http.html if you haven't heard of Fiddler). It will show you what exact URL is the new window requestsing, so you will see why the page is blank.

    Hope this helps

    Wednesday, September 29, 2010 8:46 PM

All replies

  • are you using native javascript pop-up or some external component such as jquery / ajaxcontroltoolkit? if u are using external component, remember to copy them by setting "copy local to true" or "build action to content"
    Thursday, September 23, 2010 9:47 AM
  • Hi - As window.open() is a Java Script function it gets executed at the client side. So wheather the app is hosted on azure or not doesn't matter. The error you are talking about needs to be handled at client(browser) side only.
    Thursday, September 23, 2010 4:51 PM
  • Hello,

    what is the URL that you set for the new window? if you just call window.open() a new window with no address will be loaded. If you call it like window.open('http://127.0.0.1:80') - it might show blank because there is nothing on your machine. If you do it like: window.open('/') you might be opening the default.aspx page, which, in earlier versions of ASP.NET is BLANK! Bascially when you add new WebForm to the project it is added with name "WebForm1.aspx" (1,2,3 etc.) and it is common mistake to forget the blank "Default.aspx" page. Opening a "Blank" window most probably means you are opening a page that exists but is blank. You can deploy your application and run FIDDLER (check out this blog: http://blogs.staykov.net/2010/08/how-to-debug-your-application-http.html if you haven't heard of Fiddler). It will show you what exact URL is the new window requestsing, so you will see why the page is blank.

    Hope this helps

    Wednesday, September 29, 2010 8:46 PM