Is there a small css 1 javascript function/library to retrieve elements?
Also do you know of some useful javascript tutorials? Also is there a tutorial that explains the jquery library line by line? ...
Also do you know of some useful javascript tutorials? Also is there a tutorial that explains the jquery library line by line? ...
Possible Duplicate: What’s the difference between Array() and [] while declaring a JavaScript array? What is the difference between these two methods of defining an array in javascript ? var arrayList = [] and var arrayListAgain = new Array(); ...
I am creating a survey form that needs to have each question and set of answers highlighted (by changing the background color) when the user focuses on them. .focus() and .blur() both work in Firefox and IE, but not entirely in Safari and Chrome. I also tried .focusin() and .focusout() with the same results. EDIT: Clicking does not fir...
Possible Duplicate: What is the JavaScript >>> operator and how do you use it? Mozilla's Array.prototype.map(), described in the Javascript 1.5 documentation, is implemented with the following: if (!Array.prototype.map) { Array.prototype.map = function(fun /*, thisp*/) { var len = this.length >>> 0; if (typeof fun...
I've been following the javascript questions here for the last few weeks, and I've found a common recurring theme. Almost any question asked on here that involves JavaScript gets answered with: "jQuery can do that" "there's a plugin for that" "jQuery can make your bed for you." Even questions referencing other libraries are answer...
So I've been looking into full development object oriented JavaScript practices, and wonder about the following examples. As I understand it, (and it makes sense to me) that the following 'secret' field is 'private' : var MyObject = function() { var secret = 'sshhh'; this.getSecret() = function() { return secret; ...
Hi folks, I'm trying to install this library for LZJB compression. PyLZJB LINK The library is a binding for a C library, the file is located here PyLZJB.so Unfortunately by copying to the site-packages directory when import I get the "Wrong ELF class" error. >>> import PyLZJB Traceback (most recent call last): File "<stdin>", li...
Hey guys, Consider the following code: index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <script type="text/javascript" src="script.js"></script> </head> <body> <form> <button id="getInfoButton1"></button> <in...
In ASP.Net I have a few custom controls I've made. I utilized jQuery where it helped also. Well, one problem I have now(with obvious, but "bad" workarounds) is that for each user control I need to execute some code from within pageLoad($(document).ready will not work with update panels). Well so now my problem. I need to have two custo...
how can i make the browser re-evaluate all my javascript after i make an ajax call. i am using mootools framework and i would like to reload the javascript added at the header portion of my html page ...
I'm injecting Javascript into a page w/ Greasemonkey, doing some processing on the body content (adding markup) then re-inserting the content. The problem is that all the events in the original content are lost, breaking things like onClick events that were added when the page initially loaded. My original idea was to do this (using jQu...
I'm looking for an open-source JavaScript project from which I can learn about good coding practices, patterns, etc. For example, the equivalent 'awesome code' example from Java would probably be the Spring project internals. I've thought about taking a look at prototype / jquery, but are there any better ones (by better I mean greater...
Okay I have an extensive ruby application running behind Ruby on Rails right now. This application needs form input but I don't want to refresh the page when I update the text box. What I mean is: I have a form that has two text boxes, one is called "starttime" and one is called "endtime". I somehow need to get the value of these text b...
This seems like I'm just missing some syntax or getting it wrong, but on an ie6 specific style-sheet this locks it to the top of the view-port and stays fixed despite scrolling: top: expression(0+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px'); But, this does not lock it to the bottom in the same manner: bot...
Hey, I have a JavaScript powered navigation bar used for the primary navigation on my website, www.marioplanet.com. I am having some trouble when I try to adjust the width of my nav bar to be flush with the rest of my page, and it appears to throw the height off for some reason. Any suggestions would be helpful and greatly appreciated!...
Hi, I'm struggling to understand the difference of the following 2 sets of code. The original code is from the famous Ninja tutorial and I have simplified a bit for myself. Question: I think I understand how CodeA works. Ninja.prototype.swung = false is assigning a new property into function Ninja(), and ninjiaA.swung evaluates to fals...
Hi there, there's a list of items on a page, some blank, with one example being: <div class="item itemask"> <div class="tophead"> <div class="itemnumber">30</div> <a class="article" href=""></a> </div> <div class="bottomhead"> points by <a class="userlink" rel=""></a> ago <a href="/item?id=">discuss</a> ...
I am trying to send a jquery sortable list of items to my MVC method for data processing. Currently I am trying to send it via the following code: var data = {}; data.projectId = projectId; data.publishedSectionIds = $('#section_list').sortable('toArray'); // Perform the ajax $.ajax({ url: '/Project/Publish', type: 'POST', dat...
There is a resize DOM event, even for generic elements but I can't find a event that is fired when the position of an element changed. I'd like to have an event that is fired whenever the geometry of an element is changed. It can be Mozilla specific, because I write a Firefox Add-On. Edit: Or is there a way to pin an element to another ...
Is it possible for a perl cgi script to segment its AJAX responses into numerous individual HTTP responses? Say I have this code: xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { onDataReceived(xmlhttp.responseText); } else if(xmlhttp.statu...