Results 1 to 2 of 2

Thread: How to execute a small piece of javascript code ?

  1. #1

    Default How to execute a small piece of javascript code ?

    I have a piece, very simple, embedded in a html page.
    <script language="JavaScript">
    var x='abc’;
    var y= 'xyz';
    function encoded() {
    var encoded = x.substr(0,1) + y.substr(0,1) + '012';
    return encoded;
    }

    Now I want the result of encoded();

    What Toolkit should I use, QScript ? QWebkit ? I don't know much about Qt Classes, but do know C++ for years. Any help would be appreciated.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to execute a small piece of javascript code ?

    Read about QScript and QWebkit.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. execute a small piece of javascript code ?
    By cornucopia in forum Qt Webkit
    Replies: 2
    Last Post: 28th February 2012, 14:00
  2. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41
  3. Replies: 1
    Last Post: 1st June 2006, 12:46

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.