Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor gurmukh's Avatar
    Join Date
    Feb 2009
    Posts
    54
    Hi there

    I have a QT application that evaluates some functions in a JavaScript file. Some of these functions rely on the XMLHttpRequest object to retrieve data from external sources.

    From my testing, it seems that when using the evaluate() method of the QScriptEngine, XMLHttpRequest is not supported.

    Aside from creating the solution in QT and exposing it to the JavaScript, is there another way?

    Thanks!

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by gurmukh View Post
    From my testing, it seems that when using the evaluate() method of the QScriptEngine, XMLHttpRequest is not supported.
    Webkit does support XMLHttpRequest.

    Quote Originally Posted by gurmukh View Post
    Aside from creating the solution in QT and exposing it to the JavaScript, is there another way?
    Another way for doing what?

  3. #3
    Regular Contributor gurmukh's Avatar
    Join Date
    Feb 2009
    Posts
    54
    Yes I know webkit supports xmlhttprequest but I'm not using the browser. I'm using JavaScript files only.

    I am asking if there Is another way round making an external request in JavaScript for qscriptengine instead of creating the function in qt.

  4. #4
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by gurmukh View Post
    Yes I know webkit supports xmlhttprequest but I'm not using the browser. I'm using JavaScript files only.
    I'm not sure QScriptEngine supports XMLHttpRequest, but QtWebkit does
    http://doc.trolltech.com/4.6/qwebfra...uateJavaScript

  5. #5
    Regular Contributor gurmukh's Avatar
    Join Date
    Feb 2009
    Posts
    54
    Ok I'm assuming from your response that implementing the solution in QT is the way forward.

  6. #6
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by gurmukh View Post
    Ok I'm assuming from your response that implementing the solution in QT is the way forward.
    Since you didn't indicate your goal it's really hard to say what is the right solution in your case.

  7. #7
    Regular Contributor gurmukh's Avatar
    Join Date
    Feb 2009
    Posts
    54
    Here's the goal:
    Quote Originally Posted by gurmukh View Post
    I am asking if there Is another way round making an external request in JavaScript for qscriptengine instead of creating the function in qt.

  8. #8
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by gurmukh View Post
    Here's the goal:
    Unfortunately, it doesn't tell me anything.

  9. #9
    Regular Contributor gurmukh's Avatar
    Join Date
    Feb 2009
    Posts
    54
    Admins, please close.

  10. #10
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Normally threads are not closed as someone may add or ask something relevant later.

Similar Threads

  1. XMLHTTPREQUEST
    By yynneejj in forum Symbian Web Runtime
    Replies: 7
    Last Post: 2010-06-08, 14:55
  2. Synchronous xmlHttpRequest
    By strider2k in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2009-12-21, 11:29
  3. XMLHttpRequest problem
    By kogan_y in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2009-12-18, 02:46
  4. XMLHttpRequest statud undefined
    By a.sichel in forum Symbian Web Runtime
    Replies: 12
    Last Post: 2009-05-19, 09:03
  5. XMLHTTPRequest 在CMWAP接入点无法得到结果
    By widsets in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 3
    Last Post: 2008-10-31, 07:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved