Results 1 to 16 of 16

Thread: Cannot show some ajax pages

  1. #1
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Cannot show some ajax pages

    Hello all,
    I've tried the demo browser, its perfect for most of the cases. However, there are some ajax pages cannot be displayed properly. e.g. http://www.smartclient.com/index.jsp#_Welcome. The dynamic contents cannot be shown, just a blank area. Is that the webkit cannot support ajax?
    Thanks.
    zac
    zac

  2. #2
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    I m not sure but it could be that the Ajax server is not running.

  3. #3
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    Dear SunnySan,

    The server is running properly as I can display the contents in Internet Explorer 6, Firefox 2/3 and Safari 3.1.2 for Windows.
    Attached Images Attached Images
    Last edited by zac; 30th July 2008 at 01:54.
    zac

  4. #4
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    It seems that the QT Browser doesn't support fully the Javascript needed for AjAX to work.

  5. #5
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot show some ajax pages

    If you are to submit a bug report or continue your investigation into the limitations of current version of browser widget - please post the progress report here. I am highly interested in knowing if it is indeed a bug/limitation of the widgit and if there are any workarounds suggested by Nokia

  6. #6
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    Dear QPlace,

    Since I'm just a normal user which want to explorer more on programming, I may not be in a position to identify any bug of a program. But as the smartclient ajax claimed that they are compatible to IE5, FF2 and Safari3 or above, and qtWebkit is based on WebKit from Apple, which should also be Safari based on, so I think qtWebkit should also be worked with smartclient ajax.

    I'll try my best to test qtWebkit (aka the demo browser) with smartclient ajax without using the server part to see if whether it is a bug of qtWebkit or smarktclient not supporting. And will post any result here for reference.
    zac

  7. #7
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    Dear all,

    It seems qtWebkit does not support https as well, right? Since I've failed to access gmail with the demo browser.
    zac

  8. #8
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cannot show some ajax pages

    Quote Originally Posted by zac View Post
    I've tried the demo browser, its perfect for most of the cases. However, there are some ajax pages cannot be displayed properly. e.g. http://www.smartclient.com/index.jsp#_Welcome. The dynamic contents cannot be shown, just a blank area. Is that the webkit cannot support ajax?
    For me it looks almost identical with Firefox and the Qt Demo Browser. See attached screenshot.

    Quote Originally Posted by zac View Post
    It seems qtWebkit does not support https as well, right? Since I've failed to access gmail with the demo browser.
    Actually it does if you compile Qt with SSL support turned on. Did you compile Qt by hand? Perhaps you didn't have necessary development headers installed at configure time.
    Attached Images Attached Images
    J-P Nurmi

  9. #9
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    Dear jpn,

    Quote Originally Posted by jpn View Post
    Actually it does if you compile Qt with SSL support turned on. Did you compile Qt by hand? Perhaps you didn't have necessary development headers installed at configure time.
    I'm running the demo browser that come with the qt-win-opensource-4.4.0-mingw.exe installer on a Windows XP SP2 machine. Is that the browser come with the installer not SSL enabled?

    Quote Originally Posted by jpn View Post
    For me it looks almost identical with Firefox and the Qt Demo Browser. See attached screenshot.
    Are you running on Windows platform? I'm very interested on how you can display the web contents on smartclient's web site. Have you compiled the browser by yourself with some configurations turn on/off? Or you just use the demo browser come with the installer?

    Thanks.
    zac

  10. #10
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cannot show some ajax pages

    Actually I'm on Linux but I can test in on Windows later today. I don't usually use any special configure parameters, but I do make sure that configure detects all dependencies correctly ie. I have all necessary development packages installed.
    J-P Nurmi

  11. The following user says thank you to jpn for this useful post:

    zac (1st August 2008)

  12. #11
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    Dear jpn,

    Thanks a lot for your time to help.

    For your information, I'm using Windows XP Professional with SP2, installed using qt-win-opensource-4.4.0-mingw.exe. Then I just run the "Examples and Demos" shortcut, choose "Demonstration" -> "Browser" and click "Launch" to test on the web site http://www.smartclient.com/index.jsp#_Welcome.
    zac

  13. #12
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cannot show some ajax pages

    Hmm, I can confirm that I cannot get anything besides "Loading Feature Explorer..." to get shown on Windows with Qt 4.4.0 / MinGW (by the way, I even tried it with a recent Arora snapshot). It might be worth reporting this issue to TT. But at least the SSL issue is resolved by placing libeay32.dll and ssleay32.dll anywhere accessible (app dir, system dirs or anywhere in PATH).
    J-P Nurmi

  14. The following user says thank you to jpn for this useful post:

    zac (2nd August 2008)

  15. #13
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cannot show some ajax pages

    Wait a minute, it DOES actually work with Arora which ships a Qt 4.5 snapshot. Here's a snapshot just to prove it. I guess I wasn't waiting patient enough for the content to load first time I tried with Arora...
    Attached Images Attached Images
    J-P Nurmi

  16. The following user says thank you to jpn for this useful post:

    zac (2nd August 2008)

  17. #14
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    Dear jpn,

    Thanks a lot for your time to test. BTW, is that mean WebKit in qt4.4 is not yet ready and we need to wait for qt4.5 on Windows platform? Is there any way to get around this?

    I've also tried ssl with Demo Browser. It can show the page with the dlls included, but some picture on the web cannot be shown. Is there any library/dll missing for my copy of the demo browser again? The following are the files list in the demo browser I've used, and screen dump differences between demo browser and firefox with gmail.
    Attached Images Attached Images
    zac

  18. #15
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cannot show some ajax pages

    You're welcome.

    Quote Originally Posted by zac View Post
    BTW, is that mean WebKit in qt4.4 is not yet ready and we need to wait for qt4.5 on Windows platform? Is there any way to get around this?
    This means that it works at least with Qt 4.5.0 once it's out, but there are chances the fix made it's way to Qt 4.4.1 which was released recently.

    I've also tried ssl with Demo Browser. It can show the page with the dlls included, but some picture on the web cannot be shown. Is there any library/dll missing for my copy of the demo browser again? The following are the files list in the demo browser I've used, and screen dump differences between demo browser and firefox with gmail.
    Are you running the demo browser on a machine which has Qt installed or are you deploying it to another machine? In case of the former, don't add all possible DLLs to your application directory but add $QTDIR/bin to PATH environment variable. This way Qt might be able to pick imageformat plugins properly. However, in case of the latter, you must deploy imageformat plugins together with the application. See FAQ for more details: Why no images are displayed when I deploy my application on another machine that doesn't have Qt installed even though they are displayed on my computer?
    J-P Nurmi

  19. The following user says thank you to jpn for this useful post:

    zac (3rd August 2008)

  20. #16
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cannot show some ajax pages

    Quote Originally Posted by jpn View Post
    This means that it works at least with Qt 4.5.0 once it's out, but there are chances the fix made it's way to Qt 4.4.1 which was released recently.
    I've dl and tested with Qt4.4.1 but sadly to say, it doesn't worked.

    Quote Originally Posted by jpn View Post
    Are you running the demo browser on a machine which has Qt installed or are you deploying it to another machine? In case of the former, don't add all possible DLLs to your application directory but add $QTDIR/bin to PATH environment variable. This way Qt might be able to pick imageformat plugins properly. However, in case of the latter, you must deploy imageformat plugins together with the application. See FAQ for more details: Why no images are displayed when I deploy my application on another machine that doesn't have Qt installed even though they are displayed on my computer?
    Thanks, I missed this faq, I can see the images now. Actually, I'm trying both approaches, install and deploy, and I've mixed up them when testing.

    Another thing, in the install version, where should I put the libeay32.dll and ssleay32.dll so that the demo browser launched from the "Examples and Demos" program to use the libraries? Since I've tried to put the files in <Qt>\bin folder or and other folder in my searching path, the demo browser still cannot show https pages. But if I deployed the demo browser with all the libraries in same folder, it can display properly.
    zac

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.