I am developing a web form using python cgi which has two list boxes. On selecting a value from the listbox1, the list box 2 should get auto populated with appropriate values (which are taken from the DB). I have written a javascript function to get the selected value from the list box1. But I am struck with passing the values from the javascript to the python function written in server side in which I have written the DB related stuffs.
I am attempting to develop a completely web-based set of tools that can match the functionality of a set of Tcl/Tk programs that are used in our control system environment. I believe that I can do everything that the Tcl/Tk tools are doing except this one thing:
The Tcl/Tk app allows the user to pick two points on their screen (which defines a rectangle) and then automatically grabs that potion of the screen as an image and embeds it into the Tcl/Tk app as an object which is then uploaded to a database when the user has submitted the Tcl/Tk form.
I would like to have a web-page with a form that allows file-uploads (this I can do), but I would like the page to include an embedded Java applet (presumably) that allows the web-client to capture a portion of the screen and automatically attach it to the html form which can then be uploaded to a database when the client submits the form.
An important requirement of this project is that it not require the user to install anything prior to visiting the web-page. The applet (or whatever) can be installed but not a separate program. I really want this entire function to be provided from the web-page. I can provide more information if necessary, but I though that a broad statement of the problem would allow more people to chime-in with their thoughts. I am eager to find out how this might be possible.
I am attempting to develop a completely web-based set of tools that can
match the functionality of a set of Tcl/Tk programs that are used in our control system environment. I believe that I can do everything that
the Tcl/Tk tools are doing except this one thing:
The Tcl/Tk app allows the user to pick two points on their screen (which defines a rectangle) and then automatically grabs that potion of
the screen as an image and embeds it into the Tcl/Tk app as an object which is then uploaded to a database when the user has submitted the Tcl/Tk form.
I would like to have a web-page with a form that allows file-uploads (this I can do), but I would like the page to include an embedded Java applet (presumably) that allows the web-client to capture a portion of the screen and automatically attach it to the html form which can then be uploaded to a database when the client submits the form.
An important requirement of this project is that it not require the user to install anything prior to visiting the web-page. The applet (or
whatever) can be installed but not a separate program. I really want this entire function to be provided from the web-page. I can provide more information if necessary, but I though that a broad statement of the problem would allow more people to chime-in with their thoughts. I am eager to find out how this might be possible.
I'm working on a javascript-only application that queries an in-memory database, at times requests (all internal to the JS app) are lengthy, so I need to post a "Processing..." overlay atop the clicked UI tab to provide user feedback that something is actually happening. For the life of me I cannot figure out how to push the "Processing..." content to the screen while the DB lookup is underway. It appears that there's only one shot at updating the display, and that's when all JS processing has concluded (ie, the data has been looked up and is displayed).
I need to know when the client enters fullscreen mode and can't figure it out. I've tried to create an alert when self fullscreen equals yes but can't get the alert to work. code...
Inside client control I generate a button, with script to run.I want to call object's Print() method when this button is clicked, the result value must be passed to Print() as well.How can I do that?This is my object:
I need to have this setup as a client side cookie (javascript disabled - no problem).
I need to store in the cookie page name, first name and last name (and there are about 4 more items). Should i save a different cookie for each item here (all javascript examples show this) or can i do some thing like this?
I want to invoke a Client side javascript function and pass the value of the ID. How can I accomplish this such when a user clicks "Open" he goes to a new window with the same ID.
I tried this but it does not work: On Server side: sSql = "SELECT DISTINCT " + "'Action' = '<center><a href= 'javascript: NewWindow('+cast(ChangeRequest.ChangeRequest_ID as nvarchar)+ CHAR(34)+)'>Open</a></center>',"
On Client side: function NewWindow(myID) { window.open("ChangeRequest.aspx?ID="+myID,"WindowName","width=500,height=600"); } </script>
I have tried to search for the answer to this, but came up empty. I am writing a form checker (and submit) in jQuery, and am testing with Chrome. Once I do my validation, if all is ok, I simply submit the form using...
$("form#courseForm").submit(); and here is my form tag. <form name="courseForm" id="courseForm" action="courseDetail.asp" method="post">
In IE it works fine with either POST or GET methods in the form tag, but in Chrome it will only work with GET.When I try to use POST, the form does submit, but I don't get any data sent to the page at all. The only thing I am doing different than usual, is the form does not have a submit button. I am using a "button" tag and using jQuery to capture the click event. <button type='button' name='courseSubmit' class='blueButton'>Save Changes</button> why the POST isn't sending the data in Chrome? Simple workaround is to change it to a GET and it will always work, but I see that as a bandaid fix, and not really a solution to the problem.
I'm using a javascript-based countdown timer that currently uses the client's system time to calculate the countdown. I assume that this line of code is where this is performed:
Code:
I'm trying to make the script use server time instead as some people may have wrong dates/times set or live in different time zones etc.
So what I did was use a bit of php:
PHP Code:
This gives a result but now the countdown is 30 days off. I am testing on my local xampp server (which also uses system time) so there should be no discrepancy. I also tried adding
Code:
But no difference.
I can post the whole script if required but it is reasonably long.
Named anchors and browser back button? Go here and click through the nav items at the top. Now click the browser back button! See how you have to now go back through all those named anchors? Is there some way using JavaScript (I imagine) to bypass all those?
I would like to get a web client's IP where the client is behind a firewall. I googled but hasn't found any solution with javascript that work's. There seems to be a java applet that can do this, but i would like the applet to put it into a "hidden" tag or into a textbox on the HTML page, so when the user clicks "OK" it will be posted to my PHP script.
In my html page i've to show a grid with some data retrieved from an xml file ... i need to this beacuse i've to use online, on a webserver and offline with all files on a usb key, cd, etc ...
which is the best way to accomplish this?
I suppose a solution it could be via javascript:
-locally open the xml file that contains the data e then render then grid. Now i wornder about the best way to do this ... i've read about xsl transofrmation and so on ... if it's possible i'h to achieve this with a cross-browser solution!
Is it possible to add a js function to a loaded web page on the client side? E.g. IE is viewing google, can I add a javascript function to that instance of IE viewing google? I am trying to hook browser events such as button clicks and get information such as edit field text.
I want to create a link that a user can click which will create a popup telling the user their ip address. I have:
var ip = new java.net.InetAddress.getLocalHost().toString(); alert("Your IP address is: " + ip.substring(ip.indexOf("/")+1))
but this does not seem to work. It says the ip is 127.0.0.1. Strangely, this piece of code used to work but all of a sudden it doesn't for some unknown reason. Can anyone tell me what's wrong with the above code?
I want to know about a method for detecting client's IP which is running behind a proxy server. Is there any possible way in Javascript to get the IP address of the client's machine which is using proxy.
Is there an easy way to detect the local language settings of a client browser or system?
I want to for example determine if the users browser or system is set to English, French, or Italian and display a message in the appropriate language.
I know there are restrictions on the client side in this regard, but thought I would ask. Can you determine a files size on the client? I purchased one of those upload to server applications. But I do not want to send large files. Their application only allows me check the side after sending the file to the server (after the fact). I need to know the size before hand. Just like validating text in a textbox before submission, I want to check the file size on the client before submission. Is there any way to do this on the client?