I have HTML table with couple of columns with combobox in each row.when I select value in any of the combobox, I want to determine the column number of the combobox which is clicked.Is there any function which can be used to do this?
I am generating a series of links with the name of my clinics. Each has its id (ie permission0, permissions1 . . .) and shows the name of the clinic. When the user clicks on the link I need to show the details of that clinic, but for the moment I don't know how to tell createDialog() which link was clicked. Code:
I want to do is determine whether the selected checkbox is on or off. At the moment, when the checkbox is ticked or unticked the javascript returns false.
Any one have a way to determine the left pixel position of an element on a page (such as <input ...>, given a fixed value was not supplied originally. This needs to be done dynamically so several elements can be aligned by setting their css left values. Jquery is available if that is of any use.
I've been running around the web, including a search here, but haven't hit upon a solution that works. I'm trying to determine the document height of a web page. The following code produces a 0 (zero) onload, and again when the button is pressed. Right now, I'm working with Firefox 2 on Ubuntu Edgy. I'll worry about IE compatability later. Code:
Is there anyway using Javascript, one can determine whether or not the browser viewing the page supports a particular CSS property or value? For example, I know IE6 doesn't support the value of "fixed" for the "position" property, so is there anyway I can determine this with Javascript, without resorting to browser sniffing?
I want to make an if stament that will do a thing if the browser is Internet Explorer. Else if the browser is Netscape will execute other code. How can I make that?
if (Internet Explorer) {execute this code}
else if (netscape) {execute this other code}
?
PS-also, is there a tutorial or reference that sais what commands are supported by each kind of browser?(most important for me at the moment is knowing wich commands are supported by browsers to show and hide layers..)
While attempting to create a greasemonkey script in FF2 (don't ask), I discovered that the "let" statement was causing my code to fail. After confirming that this statement has been available since FF2 (js engine 1.7) [URL] became curious as one determines their javascript engine in FF. IE has a way to inspect the jscript engine, ala [URL] but I couldn't find anything similar for FF. Feel free to list links for testing engines in other browsers,
The title pretty much sums it up. How can you tell through JavaScript whether the browser successfully loaded a source from the HTML5 <video> tag? Is there a way to do this by simply referencing a property of the video element?
I was wondering if the was any way to determine the state of the caps lock key, on or off. Of course I can capture the key events and see whether the caps lock is pressed, but that does not help.
I have seen some example that looks at the characters entered in an input field to determine if the caps lock is on, but I was wondering if something is possible that is a bit more immediate to report the caps lock state.
I have very limited experience with Javascript. Can someone refer me to info on how to determine the referring URL and the search term used by a visitor just prior to his landing on my web page?
I am trying to update some values on the page when an img is clicked. There are many img tags on the page. I am not sure how can i determine which one is clicked.
Do i have to add an onclick event to my img tags with some id parameter or is there a possibility to detect which element is clicked on the page without calling a function?
Is there a way to determine which css file is applied to a page using js?I have a regular css file and a "print" css file linked in the html <head> and I want the js to determine which css file is being used to style the page and basically turn itself off if the print version of the css is being used.
I have found a couple different code snippits that allow you to determine when a page has finished loading in an IFRAME. However, what I need is a way to determine this when it is a form that is POSTing to that IFRAME (which is on a remote web site).
Basically on my page there is a button that submits a form to another website and the target = the IFRAME. However, I don't want to actually display the content from the other site (and so the IFRAME is invisible). I just need to know when the submission is complete. As a user you can tell by watching the status bar in IE to see that the submission is still processing, but I'm looking for a more elegant way to do this (as I want to tie it into a mechnism that will visually show the user the status of the submission in real time.)
How could I determine when ANY link on a page is clicked and what that link points to without having to add a function call into onClick of every href tag?
i'm dynamically creating an iframe on my page. the source for that iframe is a php page that prompts the user to download an excel file. sometimes it can take a little while for this file to be built by php.
i need a way to determine when the php page in the iframe is completely done.
I'm having an issue determining whether the mouse is increment or decrementing.
Code JavaScript: _self.mousedown(function(e) { var initialValue = parseInt($('#value').val()); var initialMouse = e.pageX;
[Code]....
As I move my mouse to the right, this returns true. When I move the mouse to the left, this still returns true; because the currentMouse value is still greater than the initialMouse value.
The code below displays a dynamic table with all its contents in the form of links.I wanna know as to how i can detect whether any of the links in the table has been clicked.As the table is dynamic i am not aware of the syntax of how to use the onClick evnt handler for these links. Code:
Someone told me that determining the exact location and current state of any JavaScript controls is pretty easy. Does anyone know exactly how this is done?