In IE7, clicking the textbox below changes the border to inset.
It works fine in the latest FireFox, but not in v3.0.10
<html>
<head></head>
<body>
<input type="text" readonly="readonly" value="hello" onclick="this.style.backgroundColor='white';" />
</body>
</html>
Strange quirk.
For those with IE8, is it fixed?
My workaround is to...
Jquery/programming newb here. I'm trying to dynamically assign a height to a ul to force some scrolling. My method is to detect how many items are in the list and then apply some math to calculate a height of my ul (I have tried height(); but it was not giving the right number; the ul is a grid of thumbnail images, displayed inline, show...
forgive the code being bulkier than necessary, will tidy it up in due course.
everything seems to be working and yet, when you click a link after it's content has already been 'active' nothing happens.
i'm sure it's something simple but i can't see it.
EDIT: the following code now works in FF and Chrome, but does not work in IE8. Any ...
I have a array of static images that I am using for an animation.
I have one frame image that I want to update the image of and I have seen a lot of tutorials on animating images with javascript just simply update the source of an image.
frame.src = animation[2].src; etc
When I look at the resource tracking in chrome, it doesnt look l...
Hi,
I'm looking for a multiple file upload button. the ones I've found are
swfupload
uploadify
and a jquery plugin: http://www.fyneworks.com/jquery/multiple-file-upload/
I want to integrate it in a django app. ATM the only one which is working without any problems and is in widespread use seems to be swfupload.
Am I right or am I ...
I want to be able to detect/pick apart strings like :
tickets at entrance per person
ballons pp
tree planting
i.e. a description followed by an optional "pp" or "per person"
I try (.+)\s+(per person|pp) and that works; but the pp|per person suffix is then not optional.
I try (.+)\s+(per person|pp)? or (.+)\s+(per person|pp){0...
I'm removing Prototype from my Rails 3 app in exchange for jQuery and trying to figure out how my controller should update part of the html page without using this Prototype helper:
page.replace_html( "content", :partial => "day" )
...
Possible Duplicates:
myVar = !!someOtherVar
What does the !! operator (double exclamation point) mean in JavaScript?
Came across this line of code
strict = !!argStrict
... here and wondered what effect the !! has on the line? Pretty new to JS!
...
Hi,
Im building an app in ExtJS and i have a form with a submit failure function like this:
buttons:[{
text: 'Bestil',
id:'button_bestil',
width:85,
handler: function(){
create.getForm().submit({
success: function(f,a){
//do stuff!
},
failure: function(f,a){
Ext.Msg.alert('Fejl', 'Error');
}
}); ...
Hi Gods,
I have a little problem with jquery validation. In IE 6 and maybee in IE 7 i got an error message: Expected identifier....
I minimised my code and it seems, if i cut out the following part, then everything is works fine.
Whats the problem?
I dont really understand where is the extra comma, so i decided i paste the hole vali...
Hi,
I would like to store all currently-pressed keycodes in a single variable by using bitwise operations when the key is pressed and when the key is released.
I'm not sure how to properly use bitwise operations, but I know this will be very simple to someone who does.
Once complete, it should be simple to see which key is currently d...
A website I am working on has to use the Facebook Connect "Old JavaScript Client Library" API (the new "JavaScript SDK" has not yet implemented all the features we need).
Additionally, we need to have support for multiple languages. I know that when using the new API, you may specify a locale when you initialize FB Connect (like so):
<...
So I created some tab using XUL. How can I write javascript code so that if I click on a button in tab 1, tab 2 will be shown?
Thanks
...
I'm looking to do a short term hack on a site. The site is a ASP.NET site with a master page. The body tag is in the master page. I'd like to specify which ID should be in the body tag from within various content pages. What I don't know is if you can have this type of access to the body tag when your JS is within the body tag. For...
How can i know if all loaded in div using jQuery
i want to do this after load all img in #slider div
var imgHeight = $("#slider img").height();
alert(imgHeight);
...
I have a button that calls a javascript function after an onclick event is called. This function validates my entries, and then creates an ajax object to populate my table of information. Everything seems to work fine, except when I add this code:
echo "$(document).ready(function() { $(\"#newDate\").submit( function() {
Valid...
Take it easy on me, guys. I have no idea what I'm doing.
I cloned the Git repository for the OpenLibrary/WMD fork based on my research that led me to this question.
I opened the wmd-test.html file in my browser, thinking it would be a full working example of the WMD editor in action. But all I see are two textareas, which don't appear ...
Possible Duplicate:
Location of parenthesis for auto-executing anonymous JavaScript functions?
Sometimes I see:
(function() { ... }());
and sometimes I see:
(function() { ... })();
I see both forms with and without arguments. They both execute the anonymous function.
Is there a difference between the two forms? Are t...
I am trying to changed the innerHtml property of a label in a js function to update values. I cannot seem to make this work as anticipated, any input would be great!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...
I have following event on button click
I am unable to find element i.e,Source Element in code
Event.observe(Generic_Large_Blue, 'click',
moZoltarCurrent.evt_ZoltarOnSubmit.bindAsEventListener(moZoltarCurrent, Item_TextArea, PriceInBox), false);
evt_ZoltarOnSubmit: function(e) {
var sourceElement = Event.element(e)...