jQuery is a cross-browser Javascript library that provides abstractions for DOM traversal, event handling, animation, and Ajax interactions for rapid web development.

learn more… | top users | synonyms

1
vote
1answer
102 views

What's the protocol for a autoexecuting JQuery plugin?

I have a jQuery Plugin that I use myself which modifies the selected value of select items on a page. In my own code the plugin automatically executes as soon as it is included in the page this code ...
1
vote
1answer
660 views

use of script tag in different position of page [closed]

I found that sometimes the script don't run properly when I add script tag in the head section. But when I add script right before the ending tag of body it works fine. What is the difference between ...
1
vote
2answers
521 views

Can REST, Ajax and jQuery work well together?

I'm trying to use REST (usign spring MVC) as my Ajax backend but got some problems when using it with jQuery. REST best pratices recommend using HTTP status code, e.g. 200, 403, 401, etc, and I have ...
1
vote
3answers
513 views

Next step after creating mock-up screens

I have created some mockup screens for my app in HTML/CSS. I have 4 screens in total. They contain no client-side coding i.e. Javascript or jQuery. The screens themselves are quite bland at the ...
1
vote
1answer
264 views

Is the “jQuery programming style” a kind of Reactive programming?

jQuery is a Javascript library and framework, but when we are programming with jQuery into DOM problems/solutions, we can practice a style quite different of programming... We can read about jQuery ...
1
vote
1answer
302 views

GPL question : web application using Imagick and GhostScript => Which would be the final licence?

I am a bit confusing and I need your help to undertand my problem. I have developed a web application (PHP, JQuery) for one of my customer. Recently, my customer ask me to add a new feature ...
1
vote
1answer
464 views

How to submit a bug/fix for jquery unobtrusive validation?

I found a small bug in the microsoft mvc3 remote validation, concerning the clientside javascript implemented in jquerys unobtrusive javascript. The problem/bug can be fixed by adding a few lines to ...
1
vote
1answer
871 views

Does IE have more strict Javascript parsing than Chrome?

This is not meant to start a religio-technical browser war - I still prefer Chrome, at least for now, but: Because of a perhaps Chrome-related problem with my web page (see ...
1
vote
2answers
188 views

Finding the possible combinations of x switches out of y being true

I am working on an algorithm to find possible fills for gaps in text. My function will receive as input: (example) [false,"o",false,"b",false,"r"] representing the string "foobar" with some values ...
1
vote
1answer
169 views

Why do we program each file separately and place them in separate folders and how do all these file come together?

I was wondering how the cover flow effect is coded. I used this link which gave me the code on how it all worked out : http://luwes.co/labs/js-cover-flow/. I am completely new to complex programs so ...
1
vote
4answers
1k views

Is JQuery or Javascript capable for image processing?

My plan is to develop a web based application in the future. I think I can name it "Booth Reservation System" for the Events companies here in our country. One of the main functionality of the system ...
1
vote
1answer
120 views

Organisation of $(document).ready

I have some code that looks something like this, except rather than 2 sections, there are about 20, and they have real code in them: /*------------ * Contents: * 1. Load slider * 2. Check form ...
1
vote
0answers
245 views

What is the rule on passing around collections? List vs. Ienumerable vs. IQueryable

I do Entity Framework stuff using repository patterns that are passed to the controller to than be called by the client using jquery AJAX.. Is there any basic rules on in what format I should be ...
1
vote
1answer
366 views

Are there any benefits to removing unused script files in a web site/project?

VS Web sites/projects come loaded with several .js files, most of which I don't use (e.g., I use a CDN for newer versions of jQuery and jQuery-UI). I know it's safe to remove these unneeded .js files ...
0
votes
5answers
219 views

Why do we write the action to be performed by a function in jQuery inside the parentheses?

Generally whenever we're programming in any Programming language, say C, we would pass the parameters we need to pass to a function using the parentheses next to the name of the function. Whereas in ...
0
votes
1answer
2k views

Can jQuery be used server side? [closed]

I know that you can use JavaScript server side with node.js, but can we use jQuery for backend as well? Or will I just have to learn CoffeeScript instead of jQuery?
0
votes
2answers
154 views

Why don't browsers have the ability to differentiate between events triggered via input devices and scripts ex: element.onEvent()?

Why don't browsers have the ability to differentiate between events triggered via input devices and scripts ex: element.onEvent()? Wouldn't this be a very simple way counter attack web spam bots? Or ...
0
votes
4answers
313 views

What are the options for simple Ajax calls for a Java webapp?

I've got a very simple need and I don't know what are the options available. If I simplify, users see webpage like this server by a Java webapp server: [-] red [x] green [-] blue [-] yellow ...
0
votes
3answers
164 views

When/Where to create/assign event handlers to its elements

Lets say I have the following code // JS $(function(){ $('[data-mc=logout]').click(function(){ if (!confirm(myconfig.msg['asklogout'])) { return false; ...
0
votes
1answer
605 views

What is the pronunciation of $ / $. in jquery [closed]

When you are reading jQuery code aloud and you get to anything that uses $, do you pronounce that as "dollar sign", "jQuery", "jQuery selector". Is there some other pronunciational shorthand for the ...
0
votes
1answer
198 views

Should I use my own public API on my site (via JS)?

First of all, this question is far more different other 'public api questions' like this: Should a website use its own public API?, second, sorry for my English. You can find the question summarized ...
0
votes
1answer
58 views

Persist AJAX values [closed]

I have a simulator that pulls data from a DB - calculates and return JSON result to an ajax call that renders a table for the results. The calculation procedure are as follow: grab X number of data ...
0
votes
2answers
1k views

How to test functions or the code inside $(document).ready() using Jasmine?

I have multiple functions and a lot of code inside $(document).ready(function()). I am using jasmine to test the functions inside the ready function as well as the code inside ready() but when the ...
0
votes
3answers
332 views

What tools can I use for professional document-creation and -printing in PHP? [closed]

I'm in the process of building a new pledge management system for one of my clients, a charity foundation. I have already built one for them (it was done using Delphi), but its feature-set is a little ...
0
votes
1answer
171 views

Trying to do some Obfuscation, How should I approach this particular case?

I currently have an assignment that is really pushing my limits so I need some help on how to approach this. We have a set of 25 results We are using a jquery plugin to vertically scroll through ...
0
votes
1answer
138 views

Starting Web Development and interactive experiences

I'm new to web development and I'm a bit confused about the different languages and technologies in the web. I understand the basic is Html, Javascript, and Css. Then there's jQuery, ASP.net, Html5. ...
0
votes
1answer
113 views

What is the proper way to extract and pass parameters to call javascript functionality from my PHP page?

This is my situation: I have a search results page in PHP where most of the logic resides in a javascript file in order to avoid refreshing the page every time an action is performed. The first thing ...
0
votes
2answers
85 views

Intermittent flickering on mouse move [closed]

We have an internal website that is written in javascript and jquery and is only used in with ie8. Everything is fine but after a certain time, screen flickering starts to occur when the mouse ...
0
votes
1answer
261 views

How does jQuery's mechanism of event handlers work

I'm in the need of widen my perspective on the framework libraries, to be able to make well aware choices of if/which/when to add a framework to a website. One thing that got my attention was event ...
0
votes
1answer
63 views

What does &callback= do

I am trying to create a timer that ever x minutes it will call to a server, get a JSON file and do something with it. The merits of that system are not in question right now, the question involves ...
0
votes
2answers
2k views

Display error message with jQuery without reloading page

I created login form. When user clicks on login button this form shows up with some fade effect (jQuery). What I want to do is to display error message in this form when user inputs invalid data. ...
0
votes
3answers
334 views

API access question

FIRST, THE SCENARIO We have an internal system that is effectively split into 2 very separate parts across 2 sub-domains, our back-end administrative system for internal access only we will call this ...
0
votes
2answers
193 views

JavaScript (jQuery) And CSS Styling

Lets say I am building a jQuery plugin that has a number of non-configurable css attributes it needs to apply to DOM elements the plugin itself creates. Is it consider better practice to apply the ...
0
votes
1answer
633 views

Best practice for populating a dynamic popup menu?

I'm creating a dynamic popup menu whose contents depends on the state of what the user clicked on. Is it considered a better practice to create a template menu in html and modify which options are ...
0
votes
2answers
269 views

“Match Making” script, a way without involving the database and php?

I am writing a matchmaking script for a game through a web portal. For the past few days I have been looking into the different options and I believe the following approach would be the most optimal ...
0
votes
1answer
53 views

should this code be structured into an event capture and a method or put the functionality in the event capturing

I have adopted some jQuery code that has like 20 event-captures that look like this // used on menu#edit $('.show-headers-only-toggle').on('click',function(){ ...
0
votes
1answer
94 views

Technique to deal with occasionally blocking json api?

I have a web app that occasionally (after some idleness) will block a very simple request for small chunks of data (30~50 kb) up to 20 or so seconds. Assuming I can't refactor or modify the API, is ...
0
votes
2answers
442 views

Client = Html5 + CSS3 + JS + Jquery. Server =?

I want to build most of my functionality on the client. However I'm not quite sure which server-side web development framework can provide me with a nice REST endpoint to handle resources, business ...
0
votes
1answer
129 views

Suggestions for html tag info required for jQuery Plugin

I have written a tiny bit of jQuery which simply selects all the Select form elements on the page and sets the selected property to the correct value. Previously I had to write code to generate the ...
0
votes
1answer
800 views

With ASP.NET MVC actions, should I use web services?

In ASP.NET Web Forms if you want to use jQuery and call a method directly, you should either implement a web service, or use Page Methods. Also you can use Generic Handlers (.ashx files). However, in ...
0
votes
1answer
103 views

Is the jRails Project something I should use?

The jRails project is a drop in replacement for the Prototype/scriptalicious helpers already a part of the Rails framework. Are your experiences with this project positive? Does it do what it says on ...
0
votes
0answers
6 views

Bootstrap Active tab on modal hidden [migrated]

I am using Bootstrap as Framework for designing a form, the form has fields in several tabs, I added a onSubmit event that displays a modal if there are any empty field cancels the submit and focuses ...
0
votes
0answers
6 views

js: input file to json with for example JSON.stringify [migrated]

I want to convert a html input file to a json string like this: var jsonString = JSON.stringify(file); console.log( file ); console.log( jsonString ); Now, in my firebug: File { size=360195, ...
0
votes
0answers
51 views

Javascript Module pattern with DOM ready [migrated]

I am writing a JS Module pattern to test out code and help me understand the pattern, using a JS Fiddle. What I can't figure out is why my "private methods" on line 25 and 26, when referenced via DOM ...
0
votes
0answers
73 views

Penny auction concept and how the timer works

I am creating a penny auction site using PHP yii framework. The main consideration of the system is to update the database records of all active auctions (max 15 auctions) with the current ticker ...
0
votes
1answer
117 views

How to handle mutiple API calls using javascript/jquery

I need to build a service that will call multiple API's at the same time and then output the results on the page (Think of how a price comparison site works for example). The idea being that as each ...
0
votes
0answers
23 views

What syntax should I use to execute functions in jQuery Terminal?

I want to add feature, to jQuery Terminal, that will allow to execute commands from the server. Right now it only have formatting syntax that look like this: [[<list of one letter styles> ; ...
0
votes
0answers
75 views

Multiple long polling requests: bad idea?

I am designing a web server that handles multiple things such as a user-to-user chat, a user-to-group chat, friends request, forum etc. The chats have to be real-time chats, the friends requests ...
0
votes
0answers
55 views

jQuery UI Widget Factory namespace limitations

As I can read in this tutorial, "There is a limitation that namespaces be exactly one level deep – that is, we can't use a namespace like nmk.foo". What isn't clear to me (and something I was unable ...
0
votes
0answers
178 views

Javascript design pattern with jQuery Widget factory

I am using the jQuery widget framework for creating some graphical elements on a webpage, and I have a conseptual question about the overall structure of the code. I have 3 classes A, B and C which ...