Some jQuery use cases call for letting the user know (usually through some animation) that something on the page has changed. For example, the user enters a format string in a text box (with codes for different tokens that can be replaced), then 1 second after the user is done typing, a different area of the page updates a live preview ...
Hi,
I'm using jQuery to build a sort of image gallery for my client's products, so that he can edit, delete and add images related to each product when editing it without having to reload the page on each request (using ajax).
Everything works fine, except for this :
As you can see in the image above, I have space for 3 images (wich ...
I have a site built with simple templates; header.tpl, navigation.tpl, body_home.tpl, body_about.tpl, body_anotherpage.tpl, etc. The navigation.tpl contains jQuery and is used to dynamically build a drop down navigation menu. When an element is clicked on the first drop down menu, the next is built based on what element was clicked. At s...
Does anyone know how can I get all values in the select by Jquery?
Example:
<select name="group_select" id="group_select">
<option value="a">A</option>
<option value="b">B</option>
<option value="c">C</option>
</select>
Which I want to get all option values (a,b and c) from select (without selected any option) by using jq...
This is a pretty cool jquery popup technique for an image. Does anyone know the best way to get a similar thing working to get a div-enclosed table as the pop-up? What I'm trying to do is let the user hover over an image to get a bigger version of the image plus a caption and other details.
...
I'm trying to figure out how to check the class of a childNode. I currently have a list like this:
<li>
<a href="#">Link</a>
<ul class="children">
<li class="current"></li>
<li></li>
<li></li>
</ul>
</li>
Previously, an additional 'active' class was being applied to a ul which contained a li.current...
I've written a JavaScript application that runs off Prototype & Scriptaculous. I'm thinking of rolling it out in as an open source product & would like it to be able to run on jQuery as well — I typically use jQuery for most of my other apps, except the site this app was originally built for.
I was originally thinking about building two...
Hi,
I have a anchor tag that when you click on the "Up to the Top", it will move the web page to the top of the page. My anchor tag is #PAGETOP.
My question is, I am using the jQuery UI Dialog and basically would like to programmatically activate this #PAGETOP anchor so whenever the page always loads at startup, would like to ensure th...
I am loading in html via AJAX and appending it to a DIV but I want to be able to select the newly loaded in html and apply a hide().fadeIn() to elements in that newly appended html.
Current function looks something like this
wall = new Object();
wall.showWall = function (options) {
// Use this to initiate the comment wall
$.ajax(...
I have to build an AJAX driven web site using java both for the presentation and the back end layers. What would be a good choice? JQuery looks like a very good javascript library to use. What would be good java web framework that integrates JQuery well.
...
I am using a webservice to return a string called by $.ajax method. How do I get the value ?.
$.ajax({
type:"GET",
url:"ajaxService.asmx/Save",
data:{},
success:function(msg){
//getData(serviceURL, controlLocation,divname,controlID);
}
How do I get the return...
Does anyone know how can I remove keypress from input with jquery?
Example:
<input type="text" keypress="cleanMsg()" id="cleanMsg" name="cleanMsg">
How can I removed the keypress="cleanMsg()" from input by using jquery? Or anyway to replace keypress="cleanMsg()" to keypress="Msg()"??
...
I'm trying to use the jQuery BlockUI Plugin to block a jQuery dialog while it performs a sorting algorithm. The function that sorts works like this:
doSort : function() {
$("#sort_dlg").block();
// sort... takes a few seconds
$("#sort_dlg").unblock();
}
It works, kind of. The dialog doesn't get blocked until AFTER the so...
Hi,
Am I able to include as an include, an external jquery.dialog.js file that consists of the following:
$(document).ready(function(){
$(function() {
location.hash = 'PAGETOP';
});
$("#dialogou").dialog({
autoOpen: false,
closeOnEscape: false,
resizable: false,
modal:...
Hi,
I am using a jQuery UI dialog but instead of duplicating the dialog setup 5 times, I was wondering if I can somehow pass the div id as a parameter into the document.ready() call or when I call the div in question?
For example>
$(document).ready(function(){
$(function() {
location.hash = 'PAGETOP';
});
$("#dialogou").dialog...
Update, Solved:
After all this I found out that I was calling an old version of my code in the update ajax.
'boardControl.php' instead of 'boardUpdate.php' These are the kinds of mistakes that make programing fun.
I'm writing a browser gomoku game. I have the ajax statement that allows the player to play a piece.
$(document).ready(fu...
I am using swfupload for uploading files and I have this problem:
In Internet Explorer, I have to use destroy(). Otherwise it crashes
http://demo.swfupload.org/Documentation/#destroy
In Firefox, if I use destroy(), it crashes.
So the solution is to detect browser type and only destroy in Internet Explorer. Is it how it works? Or did ...
I want to make an ajax call (using JQuery) in an ASP.NET MVC application and return a boolean value, how can I do this?
Thanks
...
I have been trying to get a function working with JQuery to add or subtract form input fields. I have been using an example I found as a starting point.
Here is what I have so far:
<script type="text/javascript">
$(function(){
// start a counter for new row IDs
// by setting it to the number
// of existing rows
...
I'm building a live price quote form with jQuery, using a series of select menus. I've come up with the code below, which grabs the default values from each select menu and adds them together:
$(document).ready(function(){
$('select > option:selected').each(function() {
var value = $(this).attr('label');
total = parseFloat(total) ...