Creating and handling JavaScript events inline in HTML or through a script.
0
votes
0answers
7 views
Elements in <li> in contenteditable sometimes don't receive keypress event
I created a contenteditable div. I want to lock text editing (in the example below, I want to lock "yes") within one of the children. Here's the html:
<div id="foo" contenteditable="true">this ...
1
vote
0answers
24 views
How to initialize new DOM contents using javascript and keep previous DOM somewhere else?
I have two pages:
page1.html
page2.html
page1.html is :
<html>
<head>Some CSS and JS goes here</head>
<body><a href="page2.html"></a></body>
...
-4
votes
2answers
61 views
Handle Multiple Clicks at Once in JavaScript [on hold]
I have a dashboard where a person can bookmark a particular link by clicking a star icon. I need to allow user to click on multiple stars and once user stops clicking then at once collect details of ...
0
votes
1answer
26 views
Javascript link not working in joomla
i'm having problems with a JS link
i have the following code
window.addEvent('domready', function() {
$('province_aw').addEvent('change', function() {
var index = ...
0
votes
1answer
37 views
pass an array of checkbox values to a Javascript string
What I want to happend with the following code is when a user checks multiple data centers and then selects a type of change it will automaticly refresh the description and Impact text area with a ...
0
votes
3answers
52 views
How to fetch the dynamically created element by its ID in jquery
Initially adding the element statically like below:
<td valign="top" id="description_div">
*<table class="des_box" id="comment_div">
<tr><td class="head" ...
0
votes
0answers
19 views
Generate classic context menu
I'd like to know if it's possible to generate an event 'contextmenu' on some elements like mails in gmail or hotmail. But I'd like to have a classic menu not the one customized by gmail or hotmail.
If ...
-1
votes
3answers
31 views
Using variable in setattribute function in javasscript
displaying NoN instead of city name. I have tried following code-
<script type="text/javascript" language="javascript" >
function submitcity(c){
...
1
vote
3answers
21 views
Map enter key to submit while not inside input
I have a form with multiple input boxes that I'm trying to get to submit when I press the enter key, regardless of whether or not one of the inputs is currently highlighted. That is, I want to be able ...
1
vote
1answer
54 views
What happens to event listeners when element is removed?
If, for example, I have series of event listeners created like this:
var els = document.getElementyById('myList').getElementsByTagName('li');
for (i=0;i<els.length;i++) {
...
-1
votes
1answer
36 views
Error with e.preventDefault on jQuery 1.9 [on hold]
When I had to change ".live" to ".on" in the latest versions of jquery other problem I came up with "e.preventDefault();".
jQuery('#navigation a').on('click',function(e){
e.preventDefault();
...
0
votes
2answers
18 views
How to include submit button name and values on form Serialize() ajax
i have trouble, my code doesnt work, because my server script side need a name from the submit button. Im using Ajax method, and im using data: serialize, when i has Click on Sumbit, it doesnt work. ...
0
votes
5answers
51 views
Unable to trigger checkbox change
I'm using jQuery 1.8.3. and I want to trigger each checkbox state change.
This code is working when I put it inside the click event:
$("#btn_off").click(function(){
$( "tr td input" ...
1
vote
1answer
20 views
Javascript-How to get all elements in “parentNode” whose id starts with same string?
I have a function that gets element's id and finds out its parentNode, now I want to find all the elements whose id starts with same string, in that parentNode.
Is there any function or way to find ...
-1
votes
3answers
21 views
What does the third parameter (false) indicate in document.addEventListener(“deviceready”,OnDeviceReady,false); [duplicate]
What does the third parameter (false) indicate in
document.addEventListener("deviceready",OnDeviceReady,false);
Can any one show an example script to show the difference