0
votes
0answers
8 views

Django insert multiple objects with unique form

My django project is a kind of football league managerial. Let's say I have a team and every player of the team is an object. Each team has 25 players. The tactics (18, 11 first-strings, plus 7 on ...
0
votes
0answers
36 views

Plotting distance from multiple values [on hold]

I'm looking for examples on nearest/farthest neighbor-algorithms that can accomplish below. Also suggestions for implementation. Any ideas and methods using languages/software in tags are acceptable. ...
1
vote
0answers
8 views

Unable to display the events on fullcalendar in django app

Following the same steps as mentioned in using jquery fullcalendar in django app, I am still unable to display my events on the calendar itself. Need some advice on this!! I am kind of new to this and ...
0
votes
0answers
13 views

Using a proxy with JavaScript and other plugin requests in Qt

I'm trying to use a proxy with Python and Qt. I found it pretty easy to set up a proxy for the QWebView using QNetworkProxy.setApplicationProxy(), but had a lot of difficulty getting the proxy to work ...
0
votes
0answers
18 views

D3 On Click Show Slide Out Panel - Django, jQuery

Goal: When a node is clicked a slide out panel is displayed containing detail about that node. I've gotten as far as sending the data to a view with an on click event. That data is then used to ...
-2
votes
1answer
36 views

Where can I find intermediate/advanced project based web programming tutorials online? [on hold]

I'm looking Particularly for web programming using php/python/frameworks/javascript...(ie. building a webapp or mobileapp/forum or anything interesting/fun from start to 'finish' etc.) or just ...
-1
votes
1answer
25 views

Need to download a PDF using a url

I have a link to a page which has an embedded PDF. I want to download that pdf file using any code, but i cant. The only way to download it is by clicking on the download button, or setting the ...
-2
votes
0answers
14 views

How can i upload javascript programs to web using google app engine

i have recieved a file from my friend and he says it to upload it using gae (google app engine) but i only know using python .I tried to embed javascript in html but did'nt work out for me. thanks in ...
0
votes
0answers
37 views

Image upload preview javascript

I am trying to make a image preview before upload. But when i am trying to upload them, there are upload only the latest ones. Example: Firstly i upload 3 images(and it appears 3 file selected), then ...
1
vote
1answer
22 views

How to Call Python Visualization inside Javascript/HTML

I have a small web application done in HTML/JS. I wanted to use a Python Visualization inside in that application. Executing Python component gives the HTML content, which I want to embedded inside ...
1
vote
1answer
17 views

Pyton POST request same JS/PHP

I'm not good in js/php, but i need to convert code below to Python. Javascript version: function api_query(key,keyId,url,post,body,signature,cb){var method='POST'; var date=new Date(); var ...
0
votes
0answers
24 views

How to handle scrollable pages like soundcloud.com using Matlab/R/Python?

I would like to retrieve a source code of the first N pages from soundcloud.com/explore, but the problem is that I have to somehow preload them first. For now what I do is using some browser and ...
1
vote
0answers
15 views

Openlayer: Cannot select feature from AJAX loaded values

I have a problem on how to add an event from AJAX loaded values. The code below works fine when the option values are pre loaded but when it is from AJAX, it cannot click a feature. Here's the ...
0
votes
1answer
18 views

WTForms only submits first form [on hold]

I have a blog page where users can add their replies and that works just fine. I also have an edit feature, but it isn't working. Just the first one does. When for example, I submit the second or ...
-2
votes
0answers
30 views

Developing desktop application [on hold]

I'm interested in developing applications such as spotify, skype, evernote and etc. How does one start developing for applications such as that. Are they web apps? Desktop Apps? What tools would be ...
0
votes
1answer
11 views

list of all selected items from django select2 plugin

How can i pull out the list of all selected items in django select2 plugin? So, I select 5 options in a select2 field and i want to use javascript and pass the list of selected options using an ajax ...
0
votes
0answers
16 views

How to fetch data from my google analytics account to use on site?

Consider that I am owner of http://ethernalsite.com On my website i've added google analytics script and it's happily collecting data about my precious visitors. I would like to create page views ...
0
votes
0answers
22 views

Generate the bar graph from xml file

I am a C++ (Linux) developer trying to make a bar graph by reading an XML file result.xml. I need to generate a bar graph (shown below) based on the value of "state" field in the XML file. The bars ...
0
votes
0answers
36 views

What does it mean to say “Javascript doesn't have the concept of modules” [on hold]

I stumbled upon this question when I read "Javascript doesn't have modules" . Is there a difference in doing var module = ( function(){ var key1 = value1; var key2 ...
0
votes
1answer
26 views

Can't get json through ajax and flask

I am trying to make a simple web application for logs show. On the web side: python 3.4 and flask and on the client side it's simple web form with ajax. Flask: import json from flask import Flask, ...
1
vote
1answer
28 views

Uncaught SyntaxError: Unexpected token & while rendering a Django template

I'm trying to draw a line chart using "https://www.google.com/jsapi", and passing data from a Django view; this is my template <head> <script type="text/javascript" ...
-2
votes
0answers
21 views

Looking for simple planning poker web app in ruby or python [on hold]

I'm looking for simple app for SCRUM's planning poker. Do you know of any? It could be as simple as choosing name and assigning a value. Then just hit vote button.
0
votes
1answer
60 views

JavaScript code executes multiple times

I have created a simple webpage that does basic image processing. I have used php to upload the images and Python (cgi-scripting) to resize them if their width or height is over 600px or 400px ...
0
votes
0answers
14 views

Django Ajax - Dajaxice.myapp is not defined

I'm trying to implement Ajax functionality into my website. This seems to be a moderately common problem, but all solutions to it I've found online have been simple, like forgetting something in the ...
0
votes
0answers
42 views

How to Load a javascript file and execute its functions with given parameters in Python 3.4?

For example, a js file called x.js (it's very simple just for explanation): function func2(x, y) { return x + y } function func1(x, y) { return func2(x, y) } Now the module name is ...
0
votes
0answers
13 views

Mechanize Python: How can I determine the Javascript processes behind a clickable li tag?

So basically I am automating a process with Mechanize and I am stuck. I need to be able to press some buttons automatically, but they appear to be Javascript-like buttons: <li ...
0
votes
1answer
29 views

Why can't my Django view receive data from a created tag in my Django template?

Django view: if request.method == 'POST': myData = request.POST.get('tester', None) print myData Django template (jquery and javascript): var i = document.createElement('input'); ...
0
votes
1answer
38 views

With Flask and Angular, how do I make $scope variables available to a python function

I am kind of a beginner so I don't even know the best way to do this or what to call what I am trying to do, but I am making an event posting app which will have a header of the month and year like in ...
0
votes
0answers
28 views

jquery ignore element's html changed

i'm trying to reload albums when changing artist in select2 element (http://ivaynberg.github.io/select2/). at start i'm retrieve new data from controller when artist changed my.js ...
1
vote
1answer
34 views

Holder.js in Google Appengine (python)

I want to load a placeholder image using holder.js in a static template. In static template index.html I have: <img src="/static/holder.js/200x200"> I have handlers set in app.yaml for ...
0
votes
1answer
17 views

Minification error with django compressor

I'm using an automatic minification tool called django compressor. However django compressor minification seems to introduce errors. Updated script with semicolons: Before: var app = ...
0
votes
1answer
19 views

How can i get next page after submit form using Ghost.py

I'm using Ghost.py for filling form. After submit form i get same page. Code: url_local = 'url' gh = Ghost() page, name = gh.create_page() page.open(url_local, wait_onload_event=True) ...
0
votes
1answer
25 views

How to print formatted python output for javascript?

I am trying to capture the stdout when I print on shell. I get output like this: ************* STARTING healthmonitor *********************** Aug 28, 2014 5:17:58 AM ...
0
votes
1answer
17 views

AngularJS $http posting object containing array strange behaviour

I have a function which uses $http to post params. The thing I don't understand is that the filters param contains an array. However, the server interprets this array as a key/value pair for each ...
1
vote
1answer
45 views

AngularJs data binding in ajax html response

I'm using python/django as an backend aplication with complex forms structure. I got an angular controller which makes and request to get suitable form. I found an django-angular package that adds ...
0
votes
0answers
19 views

Using typeahead.js with Django [duplicate]

First of all, I nearly don't have js information at all. I want to autocomplete an input according to this model's title field: class Baslik(models.Model): user = models.ForeignKey(User, ...
0
votes
1answer
19 views

Python toDataUrl Equivalent

I am trying to do the exact same thing in python as what I can in JavaScript. In JavaScript I can easily draw on a canvas and then use toDataUrl(imageFormat, quality) to get the image in base64 ...
0
votes
1answer
29 views

why so much XHR polling when using app engine Channel API

I am trying to use the App Engine Channel API to avoid polling for updates in my client. The problem is that I see an continuous stream of XHR packets sent in the Chrome console after starting a ...
0
votes
1answer
22 views

Python Selenium execute javascript function [closed]

The source of the wepage of interest is like this: Pages={ "xxxxx": [ {grouptitle:"sometitle", id:"someid", title:"sometitle". hidden:"false", locked:"true", script:"openPage("xxx-xxx");", ...
0
votes
1answer
28 views

how to call python script from javascript?

I have a backend python script where it retrieves the data from the sqlalchemy engine. And I would like to show the data in a search box where you can scroll down the list of data and select it. I ...
0
votes
2answers
30 views

Javascript execute python file

I'm building a house monitor using a Raspberry Pi and midori in kiosk mode. I wrote a python script which reads out some GPIO pins and prints a value. Based on this value I'd like to specify a ...
0
votes
1answer
28 views

Element following user message

I have created a unique web chat using websockets and python for the server. It's very basic at the moment however there's a feature I'd like to implement but I'm not sure as to how I'd go about it. ...
0
votes
1answer
40 views

run python script using ajax

I have the python script which export data from a database. The script executes the exportData function() I would like to run that on the website by clicking a button via ajax. This is want i have ...
1
vote
5answers
89 views

Regex replace new lines in between start and end

I have a string that includes new lines. Between the lines that are """, I want to add semicolons just before \n. Example input string: print and not affected """ This is my game dead or alive ...
1
vote
0answers
37 views

Using Selenium to parse a page for links that do not exist in the source

I am looking to find a way to code a script in python that can extract the link to each item in my Steam inventory. For those who do not know what that is here is an example: ...
1
vote
1answer
40 views

Python: Is there a way to get HTML that was dynamically created by Javascript?

As far as I can tell, this is the case for LyricWikia. The lyrics (example) can be accessed from the browser, but can't be found in the source code (can be opened with CTRL + U in most browsers) or ...
0
votes
4answers
2k views

Working with POSTed json objects in Django

I am trying to figure out how to deal with POSTed json objects in Django. I'm POSTing a json object to the server and want to use it like a python dictionary. here is my js: $.post( ...
16
votes
5answers
4k views

Javascript function similar to Python range()

Is there a function in Javascript similar to Python's range()? I think there should be a better way than to write the following lines every time: array = new Array(); for (i = 0; i < ...
6
votes
2answers
499 views
+200

Google analytics illegal cookie breaks Python backend

In my feed that is published to feedburner I have Russian characters in campaign name in tracking settings Feed: ${feedUri} ${feedName}. The problem is that it results as incorrect __utmz cookie set ...
0
votes
1answer
410 views

Getting started with Qooxdoo

i downloaded Qooxdoo, then ActivePython and installed it as in this tutorial http://qooxdoo.org/documentation/1.1/helloworld. When I follow the instructions I get the following results: ...