Determining Row & Col Nr In Table?
Jul 28, 2006
Is there any way to determine the row & collumn number of a certain cell within a table?
I've looked at rowIndex and similar stuff, but I can not get it working. The info I found on this was minimal...
View 20 Replies
ADVERTISEMENT
May 12, 2011
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?
View 1 Replies
View Related
Jun 17, 2006
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:
View 2 Replies
View Related
Sep 9, 2006
I have some floating divs on my page.
When I click the div I want do display a menu over it, how can I
determine the position of the clicked div on the page?
View 6 Replies
View Related
Jul 2, 2009
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.
<form name="update_active" method="POST">
<input type="checkbox" name="active" onClick="updateActive(1, 'product')" />1
<input type="checkbox" name="active" onClick="updateActive(2, 'product')" />2
<input type="checkbox" name="active" onClick="updateActive(3, 'product')" />3
<input type="checkbox" name="active" onClick="updateActive(4, 'product')" />4
</form>
[Code]...
View 5 Replies
View Related
Oct 4, 2011
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.
View 4 Replies
View Related
Feb 24, 2007
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:
View 3 Replies
View Related
Nov 23, 2009
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?
View 4 Replies
View Related
Apr 26, 2001
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..)
View 15 Replies
View Related
Aug 17, 2006
I was wondering if there was any method for determining the existance (or no existance) of a given DOM element using its Id.
My problem is the following :
I have some ajax stuff that does some crazy things to my original document well... errr... such as simply adding some new layers with a unique Id.
What I wanted to do, from another JS function that is triggered later on, was to check if theses layers were existing or not before populating them.
For example something like :
if (document.getElementById("blah").exists){
//populate the thingie !
}
View 5 Replies
View Related
Oct 15, 2008
var someObj = {} Is there something I use to determine that someObj is empty? It's still a typeof object but has no attributes.
View 14 Replies
View Related
Feb 9, 2010
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,
View 1 Replies
View Related
Aug 19, 2010
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?
View 1 Replies
View Related
Jul 23, 2005
If a user is using a combination of Win98 & any version of MSIE, I
want to display a message. The best that I can do is the following:
<?
if ((strstr (getenv('HTTP_USER_AGENT'), 'MSIE')) && (strstr
(getenv('HTTP_USER_AGENT'), ྞ')))
{
echo"blah,blah,blah
";}?>
Is there a better (more foolproof) way?
View 4 Replies
View Related
Oct 27, 2005
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.
View 18 Replies
View Related
Feb 4, 2006
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?
View 1 Replies
View Related
Jan 23, 2010
In my html head tag i have a script like as below
$(
function
(
)
[Code].....
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?
View 3 Replies
View Related
Nov 18, 2010
I have several <a> tags with the class 'a-menu-description', and an equal number of divs with the class 'menu-description'.
I am trying to get it so that only one div opens for the appropriate <a> tag, but when I click any of the <a> tags, all of the divs open up.
Here is my code:
Does anybody know what I can add in so that only the div associated with the <a> tag opens as opposed to all of them?
[url]
View 5 Replies
View Related
Apr 14, 2009
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.
View 3 Replies
View Related
May 5, 2006
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.)
View 2 Replies
View Related
Jul 28, 2006
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?
View 3 Replies
View Related
Feb 4, 2009
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.
currently, this is what i have.
Code HTML4Strict:
<iframe onload="iframeLoaded();" src="report.php"></iframe>
the problem with onload is that it seems like it fires as soon as the page is even referrenced within the iframe...not completely finished.
View 20 Replies
View Related
Apr 20, 2010
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.
View 4 Replies
View Related
Feb 26, 2007
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:
View 9 Replies
View Related
Jan 18, 2011
I have a set of array indexed input fields i.e. field[0], field[1] etc.I have a change event handler associated to them using jquery:
PHP Code:
$("[id^=field]").change(function() {
// code here
[code]....
View 4 Replies
View Related
Aug 15, 2006
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?
View 10 Replies
View Related