hi;
i need get browser navigator handling example. i'm using example:
imagine for many tab opener.
open new tab and switch to main tab opener page and create new tab.
close first opened tab.
click browser navigator back button. focus last tab. re click back , focus main tab opener , re click back stay main tab and history back disabl...
I have sensitive files to download to users, and each user is permitted to download a given file exactly once. If the download fails, I want to permit the re-download, but not otherwise.
It's not sufficient to rely on logging/processing the file download request at the server - I need to know deterministically when the file is complete...
I'm trying to implement a JavaScript component that captures key-inputs and creates a command prompt interface for the web, I don't want to use text-fields
It's easy to capture input from keys as follows:
$('*').bind( 'keypress', keypressCaptureFunction )
but the bubbling of events is giving me multiple events per key-press, also, us...
i want to initiate a function when user finishes resizing of his browser window.
please suggest how to do in either pure JS or jquery.
Note: i want to raise the event only once and after user has done browser resizing.
...
what is the best practice/solution to maintain fonts size with different screen resolutions
...
i want to make a bbs forum that using much Keyboard event ,
so which is the best Keyboard event library,
thanks
...
I am trying to understand an issue where event-listener registration on plugins doesn't work in Opera unless i delay them.
In particular, this doesn't work:
document.onload = function() {
plugin.addEventListener("foo", function() { alert('onFoo'); }, false);
}
while delaying the addEventListener() call somewhat through e.g. an al...
I am trying to generate several divs which each should have a separate onclick handler. However, when I create multiple items in my application, all of the previous items have the same onclick event as the first one. Below is the code that generates the html based on an array or "Project" objects. How can I change this code to retain all...
Hi,
I have a strange JavaScript problem using window.location.href, which apparently only affects Firefox (I'm using 3.6).
Normally window.location.href would not be read-only, and this works perfectly in FF:
window.location.href = "http://google.com/";
However, when I call a function in response to an onunload event (), this doesn'...
Hi all,
I have a html page as below :
<table cellpadding="1" cellspacing="1" border="1">
<tr>
<td id="abc">
<div style="height: 23px; overflow: hidden; position: relative; height: 70px; width: 70px;
background-color: red" valign="top" id="dragable3">
<a style="...
Problem is when I press a key over a radio button, element MyFunc fires twice - once for "onkeypress" event, another time for "click" event.
Question "Why?" I need to handle this by two different ways, but now I can not recognize what initial event was. When I click a mouse it fires just for "click" event.
<ul>
<li>
<input...
Hi,
My first post so apologies in advance for being a noob!
I want to write a script which will click a button on an external website (one which belongs to someone else). The button is defined as follows:
<input class="btnAdd" type="image" src="/superstore/i/b/btnAdd.gif"
id="i61109534-a" onclick="return a(61109534);">
Basical...
Hi all-
I have a weird grid with different height columns. By this I mean, column 1 may have 4 squares that need to be filled while column 2 may have 5 and column 3 may have 2. For the purposes of this question assume they are static and the values are as follows:
Col | Height
---------------
1 4
2 3
3 5
4 ...
I have a scrollbar that has to follow some timeline. It is being constantly scrolled with .scrollLeft using setInterval.
I still want the user to be able to naturally take control and just drag the scrollbar away. If I can detect the user did that, I would just turn off the setInterval timer and leave the control to the user until he e...
javascript jquery event handling
if on event (for example 'click') binded one function for parent element and another handler function for child DOM element, which of them are called?
If all of them will be call in which order?
Thank you!
...
I have written a news scroller which uses the Prototype and Script.aculo.us libraries to scroll through the news feed at a set interval. There are buttons included in each news item that allow the user to manually scroll the news feed up or down manually. When the page is loaded the buttons are assigned event handlers for when they are c...
When I run the following script, the event always fires on page load. I am not sure what I am doing wrong here, I create the element, find it in the DOM then attach a listener, but it always fires the event when the page loads and not when the element is clicked.
<script type="text/javascript" language="javascript">
document.write(...
If the user begins typing, and the focus happens to not be on the only input control I have on the page, how can I set the focus to be on that input control in order to create a better user experience?
There are things that can have the focus, such as if the user tabs to a hyperlink or mouse clicks outside the input.
...
In jQuery, I've done stuff like this in the past:
$('#someCheckbox').click();
And everything works as if the user just clicked on the element normally.
However the same doesn't work in MooTools:
$('someCheckbox').fireEvent('click');
The checkbox doesn't get checked, nor do any of the bound event handlers fire.
Is there a way to d...
I understand that it is not possible to tell what the user is doing inside an iframe if it is cross domain. What I would like to do is track if the user clicked at all in the iframe. I imagine a scenario where there is an invisible div on top of the iframe and the the div will just then pass the click event to the iframe.
Is somethi...