Any Way To Detect Which Textarea I Am In?
Jul 23, 2005
Is there a way to detect which textarea the cursor is positioned in? I
would not want to attach 'onkeypress' to all textareas to detect which
one I am presently in ... or is this the only option?
View 2 Replies
ADVERTISEMENT
Jul 23, 2005
Can you pick out just the text that a user has selected in a TextArea using
JS?
View 5 Replies
View Related
Feb 14, 2009
Can Javascript be used to detect a certain url and then "not" write some html according to that url and also detect something on the page and "then" display some html?.
Example: I'm working on a volusion site that uses asp. There's basically only one page that's changed dynamically. I would like to display some html when and only if the cart has any items in it. But also not to show up on the check-out pages.
The page dynamically displays "Your cart has 1 item in it..." when the visitors puts something in their cart.
So could javascript detect when this is displayed then write some html and then also detect if the url is showing the cart and then not show the html?
View 24 Replies
View Related
May 13, 2011
How would i change back to the default length of textarea?
I have this comment area that after clicking submit i will append the new comment in the list of comments through ajax... i got one problem though, everything is working perfectly well except for the textarea that won't change back to it's default size...
EXAMPLE:
The problem is that the textareawon't change back to it's default size // let's say that the default size is rows=3
View 2 Replies
View Related
Nov 5, 2009
I've been trying to fix this.
Code below:
View 11 Replies
View Related
Jun 2, 2009
I was making a website, all looked great, untill I started IE7. there, it really looked like crap.Now I'd like to just make another css file for IE6 and/or IE7 but not for IE 8, because it does look wel at that browser.
View 6 Replies
View Related
Jul 23, 2005
How can I detect the press of CTRL + V in an input of type text?
View 4 Replies
View Related
Jul 20, 2005
Is there a way to detect the height of a TD tag?
View 2 Replies
View Related
Jan 24, 2009
how I might use JavaScript to detect the overflow of text in a DIV. Currently, I have the CSS set to Code:
overflow:auto
However, having scroll bars are pretty tacky. Instead, I'd like to be able to detect the overflow, which would then add a small <a href> link that says "More."
View 5 Replies
View Related
Feb 20, 2011
I was wondering how I could detect if a user has ad-block or ad-sweep or any other ad blocking ad-ons for that matter. I want to be able to detect this because if they do have ad-block I want to display an image in the place where the blocked ads are. That way theres not all this empty space
View 1 Replies
View Related
Jul 24, 2007
In the current world of browsers, there are quite some different brands, IE, Firefox, Opera, Netscape, etc.
Is there a better (more widely acceptted way) to detect which browser I am using?
Someone may use: navigator object and check the indexOf, while others may use the object detection such as document.all, window.opera,...
View 1 Replies
View Related
Aug 24, 2011
i was developing a blog and I came across may site have recaptures to prevent spams.but my opinion is using recaptures will avoid the number of users put comments in the site as an example you can consider myself that doesn't like that feature.problem is how to detect the spams ? Is there any mechanism to detect, if so I want to set it to my site.
View 4 Replies
View Related
Aug 30, 2009
I have this script:
PHP Code:
<script type="text/javascript">
function move_nav_2(){
alert("im ok!");
[code]...
But cant work on IE neither Chrome.
View 8 Replies
View Related
Feb 4, 2010
Can someone show me how to detect height within a DIV tag, and redirect? For example if the height is 0, redirect to some other specified site
I've read this but still no idea how to implement to redirect
View 1 Replies
View Related
Mar 28, 2011
How can I detect that user use IE7 or IE6.
I made a google search but I was confused.
For example does this link works ok for IE7 or IE6?
Meaning that navigator.appName returns "Microsoft Internet Explorer"
View 19 Replies
View Related
Oct 1, 2011
Is there any way I can detect if there is a scroll bar on the right of my web page.
I use a javascript drop down menu and position it precisely with certain pixel count. It's a photo gallery.
However, if the picture has an extra size, the menu looks ugly with a scroll bar on the right. I've tried every method found on Google search but it's not working.
View 3 Replies
View Related
Mar 17, 2003
Pardon a silly question, but what's the best way to determine if a variable is an array in JavaScript? I need to treat it differently depending of if it's a string or an array.
View 2 Replies
View Related
Jul 23, 2002
Has anyone tried working out this one?
How to detect IE4 without wrongly detecting IE5.0 (IE5.0 usually returns a navigator.appVersion of 4.0)
Here's the code im working with using substring of IE version:
// <head>
<script language="JavaScript">
this.version = navigator.appVersion;
</script>
// <body>
<script language="JavaScript">
if (navigator.appName == "Microsoft Internet Explorer"){
if (version.substring(0,1) <= 4){
if (version.substring(22,23) <= 4){
document.write("This Browser is IE4 or lower!");
}
else{
document.write("This Browser is IE5 or higher!");
}
}
}
else{
document.write("This Browser isn't IE!");
}
document.write("<br>This Browser is " +version);
</script>
The version string usually return's something like this:
4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Can anyone see any problem with using this method?
View 2 Replies
View Related
Sep 14, 2009
Working on the basis that MOST Internet users to visit the site I have built, have IE6 or later, I would like to add a browser-detect capability that ONLY focuses on IE6 and sends the user straight away to the alternative page. If using a browser older than IE6 neither the real page, nor the alternative, will work anyway, so it doesn't matter which one fails for them. I've lost my Javascript book (shoot me in the head!) and trying to find browser detect code online, I keep finding massive reams of code where the intention is to detect exactly which browser is being used. I'm not bothered, unless its IE6.
The site works fine in Opera, Firefox and IE8, I had to tweak it slightly to work fine in IE7, but for IE6 it would completely ruin the feel of the site for everyone else if I were to tweak the main site. So, please if someone could paste the code that would say "If user's browser is IE6, then auto-redirect to this page",
View 4 Replies
View Related
Sep 30, 2010
How can I do something like "browserTab.onfocus = myFunction" by which I mean that "myFunction" would get control any time something in it's browser tab gains focus? E.g., when the user switches from a different browser tab or a non-browser window. I don't need to know what got focus, just that something did in that tab. "window.onfocus = myFunction" with event capturing works fine except when the main window contains frames. Doing document.getElementById('iframeId').contentWindow.addEventListener('focus',myFunction,true) to add an onfocus handler to the iframe's document works in Firefox except when the frame's content comes from another site, which is my case and I cannot modify that site. I'd rather not poll using document.hasFocus().
View 2 Replies
View Related
May 17, 2011
For some security reasons I need to disable the some specified browser add-ons for my web application.
View 1 Replies
View Related
Mar 3, 2009
I am currently trying to write some javascript that detects mouse movement in some way or another. This is for a website vistitor tracking script i am writing. The purpose would be to detect if the vistor is human or robot. Right now myfunction() grabs the info and inserts it into our database if any mouse movement is detected. But the script executes every time the mouse moves on the same page. So we are getting multiple log entries when we only want one.
So my question is this: Is there a way to once javascript has detected mousemovemnt once, to not detect it again? here is my code document.onmousemove = function() { myfunction();} I am not all too familliar with javascript and will probably need written out examples to grasp this.
View 5 Replies
View Related
Jul 23, 2005
I would like to generate a page of links including some of the pdf properties (title, author, version, etc.) for a folder full of pdf's. Is this possible from Javascript?
View 4 Replies
View Related
Jul 23, 2005
Is there anyway to detect if scrollbars were made visible in a
textarea? I'm not talking about initial setting of the scrolling
attribute, but rather whether scrollbars have been added either
horizontally or vertically based on the users text input?
View 2 Replies
View Related
Jul 23, 2005
I have a webpage in which a media player is embedded.I would like
to close the page at the end of the video. Can I detect the end of the
file so as to close the page programmatically?
View 1 Replies
View Related
Nov 7, 2005
I have a text box where the user enters their employee email address.
What I want to occur is when the @ sign is pressed it will
automatically add the rest (ie. mycompany.com)
I know the code required to alter the value of a text box but I dont
know the event trigger or code to detect the keypress.
View 8 Replies
View Related