Here's my code:
$('#alertInfo').modal({
close :false,
overlayId :'confirmModalOverlay',
containerId :'confirmModalContainer',
onShow : function(dialog) {
dialog.data.find('.message').append(message);
dialog.data.find('.yes').click(function(){
if ($.isFunction(callback)) callback.apply();
...
Anyone know why .focus() makes the cursor go away but it comes back when you click in the text input box?
...
I am not able to use the address plugin for the below code to work. Need help writting the js. Pls help.
Objective: click on each link, the <div id='load'> will be populated with corresponding data and this should be back button enabled.
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<bod...
i have code like this. which is actually a form .which lets user updates his ratings . once he clicks on update or save . i do a ajax and save his ratings and give him the success message. but how can i refresh this div to show his new ratings and i need to block update / save for this user for next 2 mins .how do i do it ? i use jquer...
I have 4 serailized arrays that I want to pass to php for processing. What is the best way to combine them into a single array>
example:
serial_1 = $('#col1').sortable('serialize');
serial_2 = $('#col2').sortable('serialize');
serial_3 = $('#col3').sortable('serialize');
serial_4 = $('#col4').sortable('serialize');`
each serialized...
Hi,
For example I have this HTML code:
<div id="canvas">
<div id="root">
<div id="content">
<span>
<title>My SVG Example Title</title>
<ellipse id="svg_1" />
</span>
</div>
</div>
</div>
How can I innerHTML the <span> tag without changing the <title> tag ...
I have succeeded in loading a Google map using the gMap jQuery plugin and making it display several markers passed to it in a JSON object using the pattern demonstrated here under "Map with marker and info window". So far, so good.
Now I want to have a link on the same page which, when clicked, displays the info window for a marker on t...
Hi,
I am newbie to ajax here and I know somebody would have encountered this problem already.
I have a legacy app built on Spring MVC, it has a interceptor(filter) that redirects the user to the login
page whenever there is no session.
public class SessionCheckerInterceptor extends HandlerInterceptorAdapter {
public boolean preHandle(...
I have a JSON String in this format:
{
"supplier": {
"mov_10": "love actually",
"mov_1": "fare"
},
"quantity": 20,
"success": true,
"length":2
}
Now I want to create a select box below using the supplier object (using both the keys and values), like this:
<select id="selectme">
<option id="mov_10">love actually<...
Dear all,
How can i play an Mp3 file using jquery.At backend level i m using servlets/jsp.PLease suggest any other possible way to play mp3 file in a website.
...
I have a small problem, but I'm a bit stumped.
I am using the following code to do rollovers on my webpage
$("#mylink1 img").hover(
function()
{
this.src = this.src.replace("_off","_on");
},
function()
{
this.src = this.src.replace("_on","_off");
}
);
This works great for individual images, but I would like to roll over one...
Why the following code fails with:
Error: class_a_jquery_objects[0].parent is not a function
?
HTML:
<div>
<div class='a b'></div>
<div class='b c'></div>
<div class='c a'></div>
</div>
<div id='log'></div>
JS:
$(function() {
var class_a_jquery_objects = $(".a");
$("#log").append(class_a_jquery_objects.len...
I've been trying to create a controller in my project for delivering what could turn out to be quite complex reports. As a result they can take a relatively long time and a progress bar would certainly help users to know that things are progressing. The report will be kicked off via an AJAX request, with the idea being that periodic JSON...
I have this:
var $ul = $(this).children("ul");
$ul.animate({opacity: 0}, 1000);
$ul.delay(1000).css("display", "none")
It's for my dropdown menu, and I want it to fade off before it disappears using the display: none; CSS property. However, it appears that the .delay() cannot be used on the .css(); it doesn't work, the $ul just disapp...
I'm using a set interval function with jQuery to loop through a list of times on a calendar so that the individual divs can be refreshed. First I put this code on a page that was called via Ajax, but the function would never receive the new date variable set. It would just recognize the variable it saw when the page was first loaded.
Th...
i am trying to making php ajax based chat system....and i have developed it successfully...i am using jquery load() with setInterval to reload chat every 1 second and it works fine on my localhost....but when i uploaded it on my hosting server it also works fine ... but problem is that after few mintues of chat the server takes to much l...
I have a standard list...
<ul>
<li><a href="#">blah 1</a></li>
<li><a href="#">blah 2</a></li>
<li><a href="#">blah 3</a></li>
<li><a href="#">blah 4</a></li>
</ul>
And my jQuery:
$('ul li a').live('click', function() {
var parent = $(this).parent('li');
});
What I...
hello!
i inject a map on my div called "concessionario-map" with GMap, a jquery plugin.
Gmap
everything works fine until this morning.
now the debugger says:
ReferenceError: Can't find variable: G_NORMAL_MAP
i just search on google and i read some similar situation, but i dont find a case like mine.
please, can you help me?
thanks a l...
Hi, I've been trying to make a button toggle a class, as well as show another div below it.
Here is a jsFiddle example I have made for you.
The first function works perfectly, shows and hides the div, but also I want the button itself to add and remove a class, I thought this would work but I seem to be doing something wrong.
Thanks....
Hello!
The code below works fine in Firefox. However in Chrome and Safari it doesn't.
Essentially it returns an array of values, then selects them from multiselect. However in Chrome and safari it doesn't select the items from the multiselect.
$('form#movie select#movie_movie').click(function(){
var id = $(this).val();
$("...