Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 61 in pywebkitgtk: no xmlhttprequest for file:// protocol?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pywebkit...@googlecode.com  
View profile  
 More options May 19 2011, 2:15 am
From: pywebkit...@googlecode.com
Date: Thu, 19 May 2011 06:15:06 +0000
Local: Thurs, May 19 2011 2:15 am
Subject: Issue 61 in pywebkitgtk: no xmlhttprequest for file:// protocol?
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 61 by zne...@gmail.com: no xmlhttprequest for file:// protocol?
http://code.google.com/p/pywebkitgtk/issues/detail?id=61

I use some ajax like

xmlhttp.open("GET","test1.txt",false);

find some question on chrome
http://www.google.com/support/forum/p/Chrome/thread?tid=171316324d167...

how to open --allow-file-access-from-files in pywebkit?

thx~


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pywebkit...@googlecode.com  
View profile  
 More options Feb 3, 5:02 pm
From: pywebkit...@googlecode.com
Date: Fri, 03 Feb 2012 22:02:18 +0000
Local: Fri, Feb 3 2012 5:02 pm
Subject: Re: Issue 61 in pywebkitgtk: no xmlhttprequest for file:// protocol?

Comment #1 on issue 61 by zmedico: no xmlhttprequest for file:// protocol?
http://code.google.com/p/pywebkitgtk/issues/detail?id=61

As a workaround for this, I override window.XMLHttpRequest with my own  
class that uses document.title to send commands to a notify::title signal  
callback on the python side. Then the python side uses a  
WebKit.execute_script() call reply to the request. For example code, see my  
commit here:

http://code.google.com/p/electroshocktherapy/source/detail?r=438ae498...

This allows me use file:/// URIs entirely (removing an http server from my  
app), which greatly reduces page loading overhead. It a little bit ugly,  
but it works very well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »