I have a textbox in ASP.NET web form, and I need to catch the paste event from right-click context menu. But I can't see where I can catch the associated event.
The onchange event is no use, as this is only triggered when the input field loses focus. Neither does OnKeyDown event since it is not a mouse event.
Any solution?
...
I understand there isn't a way to interrogate a users IE settings directly due to security reasons, but is there a way to derive this answer with some other mechanism? I would like to stop a user from using my site if the setting "Check for newer versions of stored pages" is set to "Never". Any suggestions?
Is there a way I could te...
I'm trying to make a navigation dropdown with jQuery that looks like this:
<ul id="home" >
<li class="navtab"><a href="#">TABANME</a></li>
<li class="homesub"><a href="#">Some link</a></li>
<li class="homesub"><a href="#">Some link</a></li>
<li class="homesub"><a href="#">Some link</a></li>
</ul>
The <li> .navtab is vi...
IE has attribute readyState in document object, that indicates current state, e.g. "loading", "complete" etc.
Is there any way to find current loading state of document in Mozilla-based browsers?
I'm aware of DOMContentLoaded event, but it wont fit my situation, as my code can be executed after this event was fired.
Added: no, I can't ...
$('div#Categories > div.categories a#showhide').click(function(){
// Get the subManufacturers list
var subCatList = $(this).parent().find('ul#hiddenSubCategories');
// If collapsed do expand
if (subCatList.css('display') == 'none')
{
subCatList.slideDown('slow');
$(this).f...
I have Aptana and i installed Aptana Support for jQuery plugin.
Now i oped a javascript file, but can't see any jQuery Intellisense,
How to enable that?
...
I have noticed a weird performance thing in IE8 when using mouseover events on a table with many rows (100 in this example). I have tried a lot of different approaches but I can't seem to find any way to get it as fast as I like/need.
If I switch classes on each event the performance goes down in all IE versions, and If I use direct man...
Given this PHP code:
<a onclick="javascript:window.location.href='<?php echo $url;?>'"
What if there is a ' in $url?
I tried using json_encode($url) but it won't be able to handle this.
...
Hi,
I try to show to user a message with javascript. I have a button and this button does something like,
Label1.Text = "Hello world";
//javascript code
Firstly, label1.text will "Hello world" after user will see the message.
thanks.
...
I have an array of string-encoded hex values. I need to convert those strings to actual hex values and then be able to compare them (using standard less-than/greater-than/equals). What is the best way to accomplish this?
...
I have an html table of data with a drop down box in each row. If a user changes the value of the drop down box, I want the data in that row to change (based on a database call to lookup the associated data for the new value of the dropdown box).
As a basic example, suppose a table showed players on a basketball team along with their h...
Are there any APIs for helping running tournaments that can draw brackets, count scores, etc? Something on PHP/javascript would be nice but I can't find any.
Thanks.
...
You know what I liked best about obtrusive javascript? You always knew what it was going to do when you triggered an event.
<a onclick="thisHappens()" />
Now that everybody's drinking the unobtrusive kool-aid it's not so obvious. Calls to bind events can happen on any line of any number of javascript file that get included on your pa...
I'm just getting into asp.net mvc and jquery so this might be a "stupid" question.
I'm developing an mvc application which contains a Google Map.
I've used this blog post as an inspiration
http://mikehadlow.blogspot.com/2008/10/using-google-maps-with-mvc-framework.html
and it's working as expected.
The problem occurs when I want to...
Hello,
I have an image on a webpage and when the user hovers over it, another image appears. When then hovering over the appearing image, it flickers.
Anybody any idea why that is?
Tony
UPDATE: The first image does not dissapear when hovering, just another (smaller) image appears over the top in the left top corner. When now moving...
I have a textarea element in a Facebook application I want to limit, visually, to a certain number of characters. This is a code snippet I got from the web:
<script>
function textCounter(textarea, countdown, maxlimit)
{
textareaid = "ta1";
if (textareaid.value.length > maxlimit)
textareaid.value = textareaid.value.s...
Hi all,
I have a following requirement. I have a Gridview contains two columns
Model Name | Model Description
Model A | Model A Desc | Edit Update Cancel
Model B | Model B Desc | Edit Update Cancel
Model C | Model C Desc | Edit Update Cancel
Let's when user click E...
How can i get the latest cookie sent from a domain ?
eg :
cookies
1 - ABC
2 - ABC123
3 - ABC456
These 3 cookies has been sent from a domain, how do i find which one is the latest one?
Thanks.
...
Hi Overflowers!
I'm building a "channel chooser" for a set of mms:// streams (Microsoft Media Server): a simple web GUI that lets the user chose which channel to listen to. For reference, here is the list of streams I'd like to use. I would like users to be able to play those streams on my site with a simple "play/stop" control. Nothing...
I thought that escaping quote characters in javascript was done by either using the other style of quote
"xxx ' yyy"
or
'xxx " yyy'
or using a backslash to quote them
'xxx \' yyy\'
or
"xxx \" yyy"
but that doesn't seem to work in the problem I am currently working on.
The code I want to put in my generated HTML is: ...