1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    8
    Vote Rating
    0
    ajaytushir is on a distinguished road

      0  

    Default GWT Frame not working in Mozilla Firefox or in Google chrome, but working fine in IE

    GWT Frame not working in Mozilla Firefox or in Google chrome, but working fine in IE


    Hi, I am trying to download a file from server. The normal GWT RPC call doesnot allow me to do that, and hence I wrote a servlet to do that job for me. From the client side, I am creating a Frame object, and I set the servlet URL in it, and add that frame Object in my root panel.
    When I execute this in IE, a window pops up asking for Save/Open file.
    But when I execute the same in a Firefox or a Google Chrome browser, nothing is happing.
    I am not getting any request on my servlet/server side.
    Here is a slice of the code :-

    String servletUrl = "http://localhost:13080/Browser/ui/da...let?level=ZERO";
    Frame frame = new Frame(servletUrl);
    frame.setVisible(false);
    RootPanel.get().add(frame);

    So, can someone please help me out.
    Thanks in advance

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    8
    Vote Rating
    0
    ajaytushir is on a distinguished road

      0  

    Default


    Hi, I did some more investigation.
    In Google Chrome, when I open the Developers Tools, I see a "Failed to load resource" exception, and the resource is my Servlet. So, that means the servlet is not being identified by the Chrome browser, and hence I dont get any response back. (Though if I paste the Servlet GET URL directly in a browser, I see proper output).

    In Mozilla firefox, I see that my servlet is receiving the request. It processes it and generated proper output, and then returns. But still, in client side, I dont see anything.
    Actually i am returning a CSV file from my servlet, but here I dont get any pop-up.
    The same code is working fine in IE.

    I really need to fix this issue, atleast in Mozilla, so any help/suggestions would be appreciated.

    Or is there something else I can use in place of GWT Frame to make it work?

    Thanks in advance.

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    867
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    Hi. I would recommend you to use the Window.open instead of the frame stuff. It is easier, and it works for me in all browsers.
    Do it like this:
    PHP Code:
    com.google.gwt.user.client.Window.open(yourDownloadUrl"Download"""); 
    Hope this helps you.

    Regards,
    Michel.

  4. #4
    Sencha User
    Join Date
    Feb 2011
    Posts
    8
    Vote Rating
    0
    ajaytushir is on a distinguished road

      0  

    Default


    Hi Micgala,

    Thanks a lot, that worked.
    Here, the new window name is not taking any space in between. I mean, earlier I was using the following code :-
    com.google.gwt.user.client.Window.open(yourDownloadUrl, "CSV Download", "");
    but was getting illegal Argument error. So I renamed it as "CSVDownload", and it worked

    Thanks again!!

    Regards
    Ajay

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    ashu.sushant@gmail.com is on a distinguished road

      0  

    Default Want other page in My web page

    Want other page in My web page


    But do we have any other option other than window.open() as I need a web Page displayed in my web page

  6. #6
    Sencha User
    Join Date
    Oct 2011
    Posts
    1
    Vote Rating
    0
    deborah55 is on a distinguished road

      0  

    Default


    Hi, guys, registered to thank you for cialis

    the great solution provided in here. You've saved tones of my nerves and time

Similar Threads

  1. GXT Window.open is not working in IE6 fine in firefox.
    By lakshmiarun in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 23 Dec 2010, 12:58 AM
  2. Replies: 8
    Last Post: 23 Sep 2010, 4:36 AM
  3. Issue with IE8.0 working fine in Mozilla
    By hirentech in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 25 May 2010, 10:57 AM
  4. JS is not working in Chrome and Firefox
    By googlegoo in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 14 Feb 2009, 2:06 PM

Thread Participants: 3

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar