Results 1 to 3 of 3

Thread: javascript emulation

  1. #1
    Join Date
    Jul 2011
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default javascript emulation

    Using Windows XP-Firefox, I can log onto a password protected website, then load a separate (local) web-page containing a Javascript app, and then use that Javascript app to “explore” the password protected website. In effect, the local web-page inherits the authorization granted by the initial sign-in.

    I’ll soon be migrating to Linux-Firefox-Qt-C++. Can the above functionality be emulated with Linux-<some web browser>-Qt? For example, can a QT app be similarly imbedded in a Firefox web-page? Alternatively, can the QT app be (Javascript[?]) – launched from the web-page and still be inheriting the appropriate authorization?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: javascript emulation

    The easiest way to do what you want is to use QWebView to login into the page and then use the web view's network access manager to do the exploration. Since QWebView has a complete javascript engine available, you shouldn't have any problems.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2011
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: javascript emulation

    Interesting; seems like QWebView may make my question redundant. However, I'd still like to know whether a QT app may be imbedded into a web page similar to the way java (or javascript) applets run. I'm specifically interested in _not_ having the QT app involved in the login. Rather, I want the QT app to _inherit_ the login-generated authorization to explore the website, just as an imbedded java applet would.

Similar Threads

  1. load project and emulation
    By amadanes in forum Newbie
    Replies: 1
    Last Post: 7th May 2011, 22:15
  2. How to get javascript var value in qt
    By ram4soft in forum Qt Programming
    Replies: 0
    Last Post: 12th April 2011, 15:55
  3. web browser emulation using Qt
    By Ricardo_arg in forum Qt Programming
    Replies: 3
    Last Post: 7th April 2011, 15:00
  4. Replies: 9
    Last Post: 29th November 2010, 12:12
  5. Javascript
    By ale301168 in forum Qt Programming
    Replies: 0
    Last Post: 6th September 2008, 23:23

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.