Results 1 to 2 of 2

Thread: QWebView JavaScript problem with ASP.NET menus

  1. #1
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QWebView JavaScript problem with ASP.NET menus

    I found a serious problem with how QtWebKit/QWebView renders some of JavaScript content on some websites created with ASP.NET.
    I don't know if there is a solution. But if there is one, could someone be so kind as to point me in the right direction, please?

    I thought that the problem was in my ASP.NET website, but then it turned out that the same happens with other ASP.NET sites.
    Also, it doesn't seem that I am doing anything wrong in my Qt code (event though I am a newbie to Qt, and I *can* do a lot of wrong things). But the same happens in Qt -> demos -> browser sample, - unmodified code.
    Finally, I am sure that the problem lies in the QWebView, because it does not occur in the simplest example which uses IE ActiveX (Qt -> examples -> activex -> webbrowser).

    To see what exactly I am talking about, please go to one of the pages listed below and try to hover the mouse over menu items.
    If you do this in Internet Explorer, Firefox, or some other "real" browser, they work just fine: on mouse over, submenu items popup.
    However, if you view those pages in a QWebKit-based browser (be it a sample in Qt or Arora browser or a simple test with a QWebView), submenu items never appear.

    Yes, I figured that Microsoft made its own browser to work well with its own web technology.
    Yes, they suck.

    But it does not change the fact that QWebView does not render some [probably, a huge amount of] web sites properly.

    For examples, I selected web pages which show demos of menu controls from two of the leading .NET controls manufacturers:
    (1) http://demos.telerik.com/aspnet-ajax...defaultcs.aspx
    (2) http://samples.infragistics.com/2010...r/Default.aspx --> select "WebDataMenu" --> select "Client Events"

    Is there a solution?
    I set all those JavaScript-related properties to "true" (even those which are "true" by default), but that did not help.

    What am I missing here?
    Please advise.

    Thank you very much.

    -- Egor

  2. #2
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWebView JavaScript problem with ASP.NET menus

    I found an answer to my question:
    NO, there is NO solution.

    I assume that there is no solution because the same problem happens even if I am looking at the same web pages in the latest Google Chrome and the latest Apple Safari.

    Since both are based on WebKit, I suppose the problem lies not with Nokia's implementation (that is, QWebKit/QWebView), but with the WebKit itself: probably, in how WebKit handles some JavaScript.

    However, the same problematic web pages are displayed properly in Internet Explorer 8 (Trident-based) and in Firefox 3.6.13 (Gecko-based).

    Oh, well...

    Other than this rare issue, QWebKit is a *very* attractive solution.

Similar Threads

  1. Speed up QWebview javascript
    By Diegol in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 23rd March 2012, 11:10
  2. javascript communication with QWebView
    By bittuthegr8 in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2010, 13:12
  3. Debugging JavaScript from QWebView
    By thiagoalencar22 in forum Qt Programming
    Replies: 0
    Last Post: 30th October 2009, 11:12
  4. how Adding JavaScript to QWebView
    By Houda.Qt4 in forum Qt Programming
    Replies: 9
    Last Post: 12th July 2008, 22:44
  5. Adding JavaScript Obj to QWebView issues
    By bpetty in forum Newbie
    Replies: 2
    Last Post: 13th May 2008, 20:44

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.