Results 1 to 3 of 3

Thread: execute a small piece of javascript code ?

  1. #1

    Default execute a small piece of javascript code ?

    Is there any easy way to execute a piece of javascript replied from HTTP server ?

    Is Webkit too big for this problem ? but it is integrated in Qt instead of spidermonkey engine.

    Thanks

  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: execute a small piece of javascript code ?

    Did you try QScriptEngine?
    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
    Sep 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: execute a small piece of javascript code ?

    You did not even to get the Script replied by the HTTP server
    look into the Fancy Browser Example and search for evaluateJavaScript
    Thus you can write your JavaScript into the Qt Application
    If you want to start JavaScript in interaction with web sites use normal html event handling

Similar Threads

  1. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 22:41
  2. Replies: 1
    Last Post: 1st June 2006, 13:46

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.