webpage

How to embed an interactive matplotlib plot in a webpage

笑着哭i 提交于 2019-11-30 07:09:41
I have been searching how to embed an interactive matplotlib widget (like this one: http://matplotlib.org/examples/widgets/slider_demo.html ) in a webpage. The final aim is to make an educational page. I hope I am not duplicating the question. What google finds is always how to embed the plot as a still-shot, in an image format. I thought I can do something with ipython notebook or plotly or gjango . But I got confused. Is it possible at all for intractive plots? I appreciate your guides to which direction I should think and work on. Thank you. In summer 2015, I'm facing a similar task: embed

What happens when we refresh a web page?

人走茶凉 提交于 2019-11-30 06:13:35
I was hoping if anyone can answer a fundamental question that I have regarding refreshing of a web page. I have a dotnet webform where a user fills in some details and clicks submit. The code behind of the webpage has about 20 functions to perform. Now assuming, when the user clicks the submit button the web page is executing the 5th function and meanwhile the user refreshes his browser; What will happen to the already processing page? Will the page be terminated immediately? or will it be allowed to run till it executes the 20th function? or will the page running be destroyed and a new page

Grabbing text from a webpage

穿精又带淫゛_ 提交于 2019-11-29 23:41:15
问题 I would like to write a program that will find bus stop times and update my personal webpage accordingly. If I were to do this manually I would Visit www.calgarytransit.com Enter a stop number. ie) 9510 Click the button "next bus" The results may look like the following: 10:16p Route 154 10:46p Route 154 11:32p Route 154 Once I've grabbed the time and routes then I will update my webpage accordingly. I have no idea where to start. I know diddly squat about web programming but can write some C

How can I call ajax synchronously without my web page freezing

半腔热情 提交于 2019-11-29 23:34:12
问题 I have some javascript that fires off about 100 calls to a php script. the php script uses up a lot of memory and takes a few seconds to complete, then returns a json response of pass or fail. I don't want the ajax calls to be asynchronous as the server would come to a grinding halt running 100 instances of itself, so I tried using synchronous, the only problem being it freezes the webpage while it calls the script one call at a time. How can I fire off the ajax calls one at a time and not

How might I obtain a Snapshot or Thumbnail of a web page using PHP?

六眼飞鱼酱① 提交于 2019-11-29 12:02:06
I need to create Snapshots / Thumbshots / Site preview a-site.com. There are some site as thumbshot.org that meets with I need. But I do not want to use an external service, not to depend on others for my project (What would happen if they close the site?) For this reason, I am looking for some project to let me do this. Any idea? On windows you can use GD's imagegrabwindow() function. Edit: The help page actually shows you how to grab a screenshot from IE. There isn't anything in the PHP library to do this - you're looking at setting up an external application (with a queue) to take images,

Internal navigation rejected: <allow-navigation not set> in Cordova on iOS

﹥>﹥吖頭↗ 提交于 2019-11-29 10:37:36
问题 I have built an iOS app using Cordova. The app tries to load a web page e.g. http://yourdomain.com/home in index.html. But, the page stays white blank with error in console "Internal navigation rejected - <allow-navigation> not set for url='http://yourdomain.com/home'". I have already set <access origin="http://yourdomain.com/home" subdomains="true" /> and also tried by setting <allow-navigation> tag. But the page stays blank. am I missing anything else? Please guide. After adding the

How do they make real time data live on a web page?

北战南征 提交于 2019-11-29 08:18:27
问题 How do they do this? I would like to have web pages with data fields that change in real time as a person views the web page. Here is an example. How do they do this? JQuery? PHP? I need to connect my field data to mySQL database. 回答1: I did it with JavaScript timer set execution in milliseconds, each time timer executed function that queried Server with Ajax and returned value(possibly JSON format), then you you update your field with the value. I did it each 5 sec and it works perfectly. In

What happens when we refresh a web page?

谁说我不能喝 提交于 2019-11-29 06:05:52
问题 I was hoping if anyone can answer a fundamental question that I have regarding refreshing of a web page. I have a dotnet webform where a user fills in some details and clicks submit. The code behind of the webpage has about 20 functions to perform. Now assuming, when the user clicks the submit button the web page is executing the 5th function and meanwhile the user refreshes his browser; What will happen to the already processing page? Will the page be terminated immediately? or will it be

Creating custom variable in web.config file?

岁酱吖の 提交于 2019-11-29 04:41:17
问题 I want to create a variable in web.config file and to use that variable in web forms. How can I achieve this?? 回答1: in web.config: <appSettings> <add key="message" value="Hello, World!" /> </appSettings> in cs: string str = ConfigurationManager.AppSettings["message"].ToString(); 回答2: You may try like this: <appSettings> <add key="id" value="12762"/> <add key ="url" value="http://localhost:10982/Redirect.aspx"/> </appSettings> Then you can use using System.Configuration; and use it like this:

A simple website with python using SimpleHTTPServer and SocketServer, how to only display the html file and not the whole directory?

旧城冷巷雨未停 提交于 2019-11-29 04:07:40
问题 How do I only display simplehttpwebsite_content.html when I visit localhost:8080 ? So that I can't see my filetree, only the webpage. All these files are in the same directory btw. simplehttpwebsite.py #!/usr/bin/env python import SimpleHTTPServer import SocketServer Handler = SimpleHTTPServer.SimpleHTTPRequestHandler server = SocketServer.TCPServer(('0.0.0.0', 8080), Handler) server.serve_forever() simplehttpwebsite_content.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http: