I have implemented an "unsaved changes" warning using techniques described on these pages:
http://stackoverflow.com/questions/140460
http://kenbrowning.blogspot.com/2009/01/using-jquery-to-standardize.html
This works well except for a DropDownList on the page. It does an AutoPostBack, and I want onbeforeunload to fire because unsaved ...
Hello,
How to get multiple keys code ?
i.e for Ctrl+g what is the key code ?
The key code for ctrl is 17 and for g is 71. Should i use the key code 88 (17+71) for ctrl+g ?
or for shift+alt+1 etc
Any suggestions, is this possible ? I am using jquery and is there any plugin for this ?
☺☺☺☺
...
I am experimenting with a Javascript function which stuffs nodes into a position. Something like appendChild(document.getElementById("foo")) . However, I do not have full control over the surrounding code and it is likely that some elements will have identical IDs. Consider the following:
<div id="foo">
<span id = "bar">456</span>
<s...
I want to write some Debugging Tools. First of them would be a Smalltalk like object browser. But i need some API's to extract methods from objects, dumping local and global variables and the stacktrace.
It's okay if this is Webbrowser specific. But please tell me which Webbrowser has an documented API for this.
EDIT: I would prefer a ...
Hey guys,
I've got a html / php form which will add values to a a database. I'd like to implemented Google maps so that when a user clicks on a location on the map it will automatically add the latitude and longitude of the location which they clicked at to 2 fields on the HTML form (the Latitude and Longitude fields). How would I do th...
By default my ExtJS forms want to put the submit button in its own little div below the form field elements, making things look like this:
______________
|blah blah |
--------------
| /submit/|
______________
Big and ugly. I want something like this: http://gowalla.com/api/explorer
Obviously this would be a snap to do in ...
I would like to get some advice on structuring my javascript code and jquery functions. I like to use JQuery for dom event handling and ajax etc. I have written what seems like poor code in the past where my entire js file consists of a bunch of anonymous Jquery functions.
I am wondering - what does a "well structured" javascript file...
Hallo all. I have a little problem.
I have a function. Let’s call it :
function rowClick ()
{
}
Anyway, the question is:
How can I bind this function to a click event without it being called?
What I mean is, if I do this:
$("#holder").click (function(){ rowClick(); });
the rowClick function gets called while registering it to t...
I have a two forms on a page.
The first one has several quantity text boxes that are populated with their respective default values on page load, which can obviously change. Also there may be 1, 2 ,3 or more of these text boxes on the page, so a script would have to account for this. Each text box will have a sequential name of "Quanti...
How to make progress bar in my page, that show how much flash file got progress in dwonload.
...
I am looking for a javascript that makes the text inside the textbox to disappear once the mouse is inside the textbox and reappears on default.. it has to be a javascript...
...
Hi all,
I am trying to create a draggable div with an image. I could drag a div with some text, but whenever I replace the text with an image dragging not working fine.
Please check this link, If you replace the image with text, it will be able to drag the text on the window,but it wont work if we replace the text with an image as it is...
Hi folks,
performing a GET in order to send data to an API before a user leaves the page can be seen as a performance issue.
Is there an alternative or a way a developer can optimize the client side javascript?
One of the great examples is:
Google Analytics!
...
Hi,
Can any one tell me how to navigate thro the ajax tabs using java script in asp.net?
Thanks in Advance
...
Hello,
I need an advice on how to add "Go to top" link on the bottom of the page, but only when the page is longer than the browser window size.
The algorithm would be:
check the page height
calculate the footer and header height
compare the sizes
find last element before footer (e.g. by id)
insert link to #top-menu
(Assuming pure ...
Hello !
Is it possible in JavaScript to do something like preg_match does in PHP ?
I would like to be able to get two numbers from string:
var text = 'price[5][68]';
into two separated variables:
var productId = 5;
var shopId = 68;
Edit:
I also use MooTools if it would help.
...
Hey,
Just a follow up from a previous question. I've got the following form..
<body onload="initialize()" onunload="GUnload()">
<form action="welcome.php" method="post">
Name: <input type="text" name="fname" /><br/>
<br/>Description: <BR>
<TEXTAREA NAME="description" COLS=40 ROWS=6></TEXTAREA><br/>
<div i...
Hello I am trying to find the keycode for ampersand and underscore. I should not allow my users to allow to enter ampersands and underscores. I was taking a look at one list, and it mentions 55 as the keycode for both 7 & ampersand, and another list says that 55 is the keycode for 7. So if I return false when my user hits the keycode 55,...
Please check this site: pixeli.ca/works/italia
There I work on the site. The problem is when I just open this address, it doesn't show two panels using jScrollPane properly - these look like narrow horizontal stripes with content inside them. Then I click any of the top nav bar items and it becomes what it should be - all looks fine. Wha...
Hey guys,
I've got the following Google map on my website..
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(53.347247,-6.259031), 13);
map.setUIToDefault();
GEvent.addListener(map, "click", function(overlay, latLng)...