I have a form that I auto focus at startup of the page with jquery. I also have change event handlers in place for whenever an input changes.
If I change the value of the first field that was autofocused, and then move to the next field, the change event handler doesn't fire. If I remove the autofocusing, and just focus manually, then...
This should be really simple but I can't get it to work, how do I disable and add a class to an input? Let's say I've got an input field with id = name, this is how far I got,
$("input#name").attr("disabled");
What am I doing wrong here? Any help would be greatly appreciated, thanks in advance!
...
http://www.ika-world.com/search.php?view=weltkarte
See link for example.
Image is a PHP created PNG image. When viewing just the image, then no link actions are present.
I cant figure out how the link actions are added. Please help.
...
Hello
I have to change "unknown" contents of XML. The structure and content itself is valid.
Original
<blabla foo="bar">
<aa>asas</aa>
<ff>
<cc>
<dd />
</cc>
</ff>
<gg attr2="2">
</gg>
...
...
</blabla>
becomes
<blabla foo="bar">
<magic>
<aa>asas</aa>
<ff>
...
I am not entirely sure if this is possible or not, I am pretty knowledgeable when it comes to jQuery and JavaScript in general, but this one has me stumped. I've created a simple plugin that clears a text input on focus and then displays the default value if nothing has been entered.
Is it possible to fade out just the text itself insid...
I am looking for a solution where I can mark couple of hotspot area in an image. Found JCrop is very well designed for that. But it allows single area to be highlighted but I want a JavaScript solution where multiple area can be highlighted. Can JCrop do this or are there any other API available?
...
I've got a JS file that I want to add to Admin>Add Content>Certain Content type
After looking at template.php and checking out the function theme_preprocess_node
I tried to add the JS through drupal_add_js(...) but no go.
Now, I know that there's a similar question however my case is about adding
a JS file to a certain page and nothi...
Need to apply a var to a statement if its conditions are met, this syntax isn't throwing errors but its not working.
<script type="text/javascript">
$(document).ready(function(){
var action_is_post = false;
//stuff here
$(this).ready(function () {
if ($("#stepDesc0").is(".current")) {
action_is_post = true; ...
I'm trying to convert characters like < and > into < and > etc.
User input is taken from a text box, and then copied into a DIV called changer.
here's my code:
function updateChanger() {
var message = document.getElementById('like').value;
message = convertHTML(message);
document.getElementById('changer').innerHTML =...
Hi, all.
I'm trying to use JS to turn a date object into a String in YYYMMDD format. Is there an easier way than concatenating Date.getYear() Date.getMonth(), and Date.getDay()?
Thanks,
IVR Avenger
...
My jCarousel (on the left) randomly scrolls to the next one, but only halfway, leaving all the others out of sync.
Does anyone know how to fix this? It just started happening randomly (though I do get my list items dynamically).
I've tried margins, paddings, heights, etc.
Update
It seems to happen whenever I add new items to the caro...
Possible Duplicate:
.Net Component for JavaScript Obfuscation?
Anyone know a way to obfuscate javascript before it's outputted to the browser? I was using
http://www.javascriptobfuscator.com/
But I'm hoping there is a library that can do this on the fly.
Help appreciated.
...
I'm using a jQuery plugin called Tablesorter
to do client-side sorting of a log table in one of my applications. I am also making use of the tablepager add-in.
I really like the responsiveness that client-side sorting and paging brings to the party. I also like how you don't have to hit the web server or database repeatedly.
However I...
I'm learning JavaScript, and I can't understand why you'd make methods that aren't 'privileged,' that is, that aren't defined in the constructor but rather the class' prototype.
I understand the idea of encapsulation and all, but you never encapsulate parts of a class from the rest of it in most of the OO world.
...
I'm trying to implement Ryan's Railscast #197 in a system with Questions, Answers, and (multiple choice) Options. http://railscasts.com/episodes/197-nested-model-form-part-2.
I have successfully implemented the nesting among these forms/partials.
The simpler 'check box' way to delete records works properly.
The problem occurs when I tr...
The official examples of exposing a Point class seem to assume that there will be a fixed number of instances of it in your program. It is not clear how new instances are allocated in the C++ code, when new is called in Javascript.
How would you expose a class that can have multiple instances? For example, an Image class:
var img1 = ne...
Possible Duplicates:
What does this expression mean !!
What does the !! operator (double exclamation point) mean in JavaScript?
Here is a snippet from Prototype Javascript Library :
Browser: (function(){
var ua = navigator.userAgent;
var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
...
Hi,
I've this:
JSON.parse('{"130.00000001":{"p_cod":"130.00000001","value":"130.00000001 HDD Upgrade to 2x 250GB HDD 2.5\" SATA2 7200rpm"}}');
http://www.jsonlint.com/ says it's perfectly valid json.
But on execution I have a JSON.parse error.
But, if I change my code to:
JSON.parse('{"130.00000001":{"p_cod":"130.00000001","va...
Hello guys, I want to put an IRC client in my webpage. I know there are many clients but not opensource ones (I didn't find any). So, do you know some free and open source projects to implement an irc client on a webpage?
And what do you suggests in term of implementation? I mean is it a good idea to have one made in flash?, one made i...
I made a web page that uses jQuery: http://benmccormack.com/demo/MichaelMassPsalm/Psalm16Mode5.html
When you change the selection in the combo box from Higher Key to Lower Key, all of the music images are supposed to change their source to be images that represent the lower key signature. This works great in IE8, but it won't work in S...