PDA

View Full Version : Cannot show some ajax pages



zac
29th July 2008, 03:40
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

SunnySan
29th July 2008, 15:32
I m not sure but it could be that the Ajax server is not running.

zac
29th July 2008, 23:07
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.

SunnySan
30th July 2008, 17:02
It seems that the QT Browser doesn't support fully the Javascript needed for AjAX to work.

QPlace
30th July 2008, 18:02
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 :)

zac
1st August 2008, 01:29
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
1st August 2008, 02:23
Dear all,

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

jpn
1st August 2008, 14:41
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.


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.

zac
1st August 2008, 15:28
Dear jpn,



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?


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?:confused:

Thanks.

jpn
1st August 2008, 16:51
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.

zac
1st August 2008, 17:25
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.

jpn
1st August 2008, 19:43
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 (http://code.google.com/p/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).

jpn
1st August 2008, 19:50
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... :)

zac
2nd August 2008, 02:08
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.

jpn
2nd August 2008, 09:53
You're welcome. :)


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? (http://www.qtcentre.org/forum/faq.php?faq=qt_general_category#faq_qt_missing_ima ges)

zac
3rd August 2008, 06:16
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.


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? (http://www.qtcentre.org/forum/faq.php?faq=qt_general_category#faq_qt_missing_ima ges)

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.