Tagged Questions
-2
votes
3answers
53 views
Jquery focus/submit acting weird in Chrome-Browser
Actually ( on the website ) i have a form which is in a Box.
So not to exhaust the limited place in that box, the contact-form pops up to its full size, only when the inputs (textarea, select, too) ...
2
votes
1answer
88 views
Is onpropertychange equivalent to oninput?
Is it reasonably fine to bind an event handler to an element both on the 'input' and 'propertychange' events to target support for IE8 and other browsers?
$('.element').on('input propertychange', ...
0
votes
1answer
117 views
Javascript code not working on Chrome
I have this javascript on a separated file:
function calcularPontos_a()
{
var totala = 0
var a1 = parseFloat(document.getElementById("a1").value) || parseFloat("0")
var a2 = ...
0
votes
1answer
36 views
is there a way to access serverside ajax responses as temporary files?
In ancient times IE6 under MS windows XP at least let us access to ajax responses as files in the local filesystem under "temp" folder.
Is still there a way to access ajax responses as temporary ...
2
votes
3answers
106 views
Why does this event handler use “e = e || event”?
Can someone explain me what does this line of code means:
function(e) { e = e || event; e.returnValue = false; return false; }
Why is the parameter named e?
If I change it to 'myparam' will it ...
3
votes
1answer
256 views
Capture CTRL+S cross-browser with ExtJS 4.x and avoid browser action
I want to stop default browser action CTRL+S and have my RIA save the form data while user press this key combination for our application.
We are using ExtJS 4.1.x
Similar solution here using ...
0
votes
1answer
50 views
javascript error whithin iframe
i have this error while running a html file in chrome
iframe Unsafe JavaScript attempt to access frame with URL http://my_server.com/param from frame with URL ...
0
votes
1answer
136 views
window.setinterval function behaving differently in different browser engines
I have written a funtion window.setinterval followed by two if conditions. Working absolutely as I wanted in firefox,opera,IE. In webkit engines, the function is not being carried forward.
x = ...
8
votes
2answers
141 views
Where in the Javascript event chain does the browser's “return to original position” occur following refresh?
I have a busy webpage with lots of widgets. It takes a second or two to load sometimes.
When I hit refresh from some location other than the top of the page, I can see that the page loads as if ...
4
votes
4answers
2k views
input type=“submit”, onclick handler calls this.form.submit(), and returns no value
EDIT: Please read carefully all the way through the question before you consider answering it. I am not asking about the advisability of using an inline event handler in production code, nor am I ...
2
votes
4answers
275 views
Detect if an element is visible (without using jquery)
I'm trying to detect if an html element I gave an id is visible or not without using jquery.
The context:
In the forgotten user password page, I have a form where the user enter his login name and ...
0
votes
1answer
153 views
IE8 e.preventDefault() only works once (ignored after ajax submission)
I'm submitting a form using AJAX with help from the jquery form plugin. It works great EXCEPT that the e.preventDefault() only works once in IE8. After the second submission the page redirects to the ...
0
votes
1answer
489 views
document.readyState on DOMContentLoaded?
In browsers that support the event DOMContentLoaded and the property document.readyState:
When DOMContentLoaded fires, can I assume that the value of document.readyState will always be either ...
0
votes
1answer
290 views
JQuery - Cross-browser solution for detecting text input change, including copy and paste into the field?
I started using $('#myInput').bind('input', function() { but this does not work in IE.
What is the best cross-browser solution to detect any change to a text input field, including if the user copy ...
2
votes
3answers
394 views
jQuery empty() , click() and memory management
Just wondering how is this managed from the memory point of view.
Let's say I have this HTML page.
<div id="container">
<div id="someID"></div>
<div>
and the following ...