I'm working with JQuery to determine if an array, built earlier, with a determined number of indexes, is full or not.
When created, array looks like this :
,,,,,,
All I want to do is find if every position is filled or not.
So bascially, i'm trying to test if and only if
[x,x,x,x,x,x]
For example, if
[x,x,x,,x,x] or if [x,,,,,] ...
My requirements are the following:
I've got a rich webpage that at a certain moment loads a bunch of html on a div, via AJAX.
The HTML I retrieve does have javascript (...)
The retrieved javascript contains $('document').ready( ... ) parts
I can not modify the retrieved javascript; it comes from an external lib
I've got a javascript fu...
I'm looking for a JavaScript image editor, that allow editing large images. Something like what Google Maps does, the client side only shows a small part of the big image that resides on the server.
I know Pixastic and CanvasPaint, but them only allow editting complete images loaded in the browser side.
Does anyone knows something like...
The "mask" area I'm referring to is the dark background area behind the popup itself. Right now it looks perfectly centered up on a 1280X1024 resolution but any other resolution and the "mask" area is off-centered. It shows up pushed to the left of the screen.
Here's the JS, if you need the markup layout let me know.
$(document).ready...
I am using ajax to populate the multilevel checkboxes dynamically depending on the users selections. Like choosing one or more options from first checkbox group will update new checkbox list and so on. I am adding the checkboxes to div. All the checkboxes are arranged using the table structure inside the form element.
Now to access chec...
Will a javascript library like Prototype/Scriptaculous or jQuery help me create a dynamic form on a webpage where I can show a different set of checkboxes based on the value chosen in a combobox?
...
I quite often have to bind? some function that requires arguments. The solution I use is wrapping the function to bind inside an anonymous function.
function foo( arg_0 ) {
// do stuff with: arg_0
}
function bar() {
var abc;
// stuff happens
abc = 'some value';
attachEventHandler(elementId, 'click', function(){foo( abc )...
I am making a prototype and I want the search button to link to a sample search results page.
How do I make a button redirect to another page when it is clicked using jQuery.
...
Hi
I've inherited a web application which heavily uses Anthem.net. There is one operation which is acting slow and I've been asked to add a loading icon to signal the user that information is being fetched.
I started working on using the asp:updateprogress control which works normally on the page with asp:updatepanel. But when the trig...
Something I still don't understand when perfoming an http-get request to the server is what the advantage is in using JS fucntion encodeURIcomponent to encode each component of the http-get.
Doing some tests I saw the server (using PHP) gets the values of the http-get request properly also if I don't use encodeURIcomponent!!!
Obviuosly...
The following code is fairly self explanatory, but I am running in to an issue binding the click event to an element that has been created.
You can see at line 25 I am creating a div with id of 'overlay'. I then set it's css properties.
Then at line 65 I bind click to trigger the hiding of the modal. The problem is, it doesn't work. I...
So is this actually naming the loop to nextLoop? So when it says continue nextLoop, does it go back to the top right away?
var total = 0;
nextLoop:
for ( var i = 0; i < 7; ++i ) {
for ( var j = 0; j < 6 ; ++j ) {
if ( i < 5 )
continue nextLoop;
total++;
...
myColl.y = [y for each (y in myColl.y) if (y != myThing.getY())];
I understand what this is doing, returning all the 'y' items that are not the current one...
But, what is the concept called here with the brackets?
I would like to read up on what this is , syntax, etc.
...
Hi,
I'm building a table script and one of the functionalities is to convert XML, CSV data to HTML and vice-versa.
I found some similar scripts on the web, that converts CSV to HTML and vice-versa but didn't find for XML.
I'm writing the script from scratch, but I thought I'd better read few scripts before I write my own, to avoid mis...
In my work i changed the dialogue boxes for fancybox, all went dandy, even with minor problems, such as making it run on pageload, but nothing that i could not managed.
but now, I am facing a enormous obstacle:
IE6 and IE7 untamed behaviour. I need to change the url of the place where fancybox is going to show. I could not find anyth...
I have a Web application in maven that follows this structure:
src
`-- main
|-- java
|-- resources
`-- webapp
Is is better to put it in the main folder and then the maven plug in will try to move it or I should put it inside the webapp folder and why?
...
i have a php based fb app. everything is running fine, but I am unable to publish stories into the user's feed. i am attaching some code for better understanding...
EDIT: The problem is I am unable to show any fbml/xfbml dialog. I can retrieve information from facebook but the fbml/xfbml just doesnt show up. Even the profile pic is not ...
I'm trying to choose a JS framework to be able to stand the test of time (still usable and scalable in 5+ years), with a good solid code foundation for other programmers to code their own extensions or projects (from complex animation to multi-threading Ajax). These are the things I'm comparing:
Extensibility
Scalability
Consistent and...
I'm using javascript to simulate a disabled select element. I can't actually disable it as the .net validators fail, but that's another story.
I have the following function:
function preventFocus(e) {
if ($(this).hasClass("disabled")) {
e.preventDefault();
this.blur();
}
}
That is called here:
$("#ProvinceID").toggleClas...
I am trying to create a "porthole" using CSS. When I say porthole, what I mean is to make a portion of the screen see through so you can see whatever is behind the porthole and thats it.
I was able to get the effect I wanted by setting the background color of the body to the same as the foreground color, then using a porthole image whi...