omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. 0x77

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    0x77

    @0x77

    0
    Reputation
    944
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website 10c8.github.io Age 24

    0x77 Unfollow Follow

    Latest posts made by 0x77

    • RE: WebView.eval_js behaves weirdly

      I think I found the issue: I was trying to call eval_js while the AJAX request was running (synchronous request, async: false). Python was waiting for the AJAX request to timeout before running js_eval.

      posted in Pythonista
      0x77
      0x77
    • WebView.eval_js behaves weirdly

      I have some code that runs something like this:

      call = '({})({})'.format(code, args)
      result = js.eval_js(call)
      
      print(result)
      return result
      

      That return value then is sent as a response to an AJAX call from JavaScript to a Bottle server (which made the previous code run).
      If I don't run eval_js and set result to anything - for example: result = 'hello' - the response is sent correctly, but if I use eval_js, firstly it freezes Pythonista for a few seconds, then it prints the correct result (from the eval_jscall), but the response is empty.

      I guess the UI is breaking the connection, somehow, corrupting the response.

      posted in Pythonista
      0x77
      0x77