Tagged Questions
0
votes
1answer
18 views
Python for Google App Engine: 405 Method Not Allowed
Hello when testing out the GET and POST methods of I am continually getting 405 Method Not Allowed The method POST is not allowed for this resource. The plan is for users to post both name and ...
4
votes
1answer
56 views
Is it possible to run native python code in chrome?
I was wondering if it is possible to run native python code in chrome instead of javascript.
I have seen projects like pyjs or brython, but what they do is compile python to javascript. While those ...
0
votes
1answer
30 views
D3 - Loading data from JSON doesn't work
I'm starting to learn D3 and it seems like a powerful framework. I'm trying load the following html from simple python webserver. I can see that the .json file is loaded, but I don't see that json ...
0
votes
1answer
32 views
append new criteria to actual search url during paging
I am having hard times to append a new criteria to the existing url
say, i have this url after search-submit:
/found_items/?state=bla&score=bla
and in the result page, i have a paginator, i ...
0
votes
2answers
38 views
Evaluate javascript on a local html file (without browser)
This is part of a project I am working on for work.
I want to automate a Sharepoint site, specifically to pull data out of a database that I and my coworkers only have front-end access to.
I FINALLY ...
-1
votes
2answers
29 views
Scraping a url ending in .js using python
I am trying get some historical earnings data from a website using python. The url for data ends in .js (which is a javascript link). The problem is if I use urllib.urlopen to read the link, it ...
1
vote
1answer
47 views
Python Index Error List of index out of range
I have a python code which send serial command to a device and get reply from it.
def control(command):
serialport= serial.Serial ("/dev/ttyAMA0", 9600, timeout=0.5)
...
-3
votes
1answer
28 views
how to load remote javascript into a page
I am having trouble getting a web irc client to load on a page. The client is remote javascript not hosted on my main web server. I am using drupal 7 CMS and can't seem to figure out how to get the ...
1
vote
1answer
40 views
python code from javascript using ajax
I have seen this topic: ajax request to python script where they were trying to do exactly what I need but there is one information missing.
$.post('myPythonFile.py',{data},
...
0
votes
0answers
38 views
Facebook API, login redirect loop
A facebook app I am developing used to login without trouble, but suddenly the login does not work. My code for logging in is:
FB.getLoginStatus(
function(response) {
if (response.status ...
1
vote
1answer
56 views
Drive API: DeadlineExceededException when updating a file
I'm receiving DeadlineExceededException on Google App Engine when updating file via the Drive API (PUT method).
I'm playing with the sample Python application ...
1
vote
2answers
66 views
Using the inspect element feature in google chrome to scrape web sites [closed]
I am trying to scrape a web site. The traditional HTML parsing through "urllib2.urlopen" from Python or "htmlTreeParse" in R, fail to get the data from the web page. This is done intentionally by the ...
2
votes
1answer
24 views
Easiest way to wrap a canvas tag + javascript in a Python program?
I'm creating a cross-platform game using cocos2d-javascript and would like to create a PC version that looks native. I understand that with little modification, I can have my cocos2d-javascript ...
1
vote
1answer
43 views
Java Script giving invalid syntax error while trying to set value from django server
i am trying to set value from django server in my javaScript file
views.py
def convert(input):
if isinstance(input, dict):
return {convert(key): convert(value) for key, value in input.iteritems()}
...
0
votes
1answer
63 views
How to detect if its Android or iPhone from which a user is visiting my website? [duplicate]
I am building a webservice using Python at back-end and Front end as HTML, JS, Ajax etc. My webservice has a particular need that it has two different kind of response for those visiting using Android ...