Hello, I'm using $.ajax(options) method to pass the request to server based on username and password, but whenever I try to print the response by XMLHttpRequest object when response gets successful, I'm getting an empty value.
$(document).ready(function(){
$("#form").submit(function(){
$.ajax({url:"Chat.jsp",type:"POST",data:$("#form")....
After load content to page using
div.load('page.php');
I need get all of links from page to change them. So I wrote this:
div.load('page.php', function() {
links = $('a');
alert(links.length);
for(i=0 ; i<links.length ; i++
{
link = $('a:nth-child('+(i+1)+')');
alert(link.attr('href'));
}
});
Th...
I'm trying to use MVC2 client-side validation in a partial view that is rendered via $.get. However, the client validation isn't working. I'm not quite sure what the deal is.
[Required(ErrorMessage = "Email is required")]
public string Email { get; set; }
<% using ( Ajax.BeginForm( new AjaxOptions { Confirm = "You sure?" } ) ) { %>
<...
Thank you for looking at my question, as I appreciate your time.
Okay, so I'm trying to use jQuery's get function to call my php script which ultimately returns a variable which is a built template of the main content of my page minus my static header/footer, for which I would like to replace the "old" page content without the page rel...
Has anyone got any idea how this google code works?
i got the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Google AJAX Search API Application</title>
<script src="http://www.google.com...
Hey guys,
I'd like to create a toggle event for 2 different TD's in my table row.
the event should show / hide the next table row.
<table>
<tr>
<td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td class="clickable1">6</td> <td class="clickable2">7</td>
</tr>
<tr><td>this row should be toggled between show/hide once one of the clic...
For the sanity of my users, I want a 'mouseover' event to run after the selector has been hovered for half a second rather than as soon as they hover it.
I first tried a setTimeout function but that runs however long the element has been hovered, I didn't think it through too much I guess. I've also spent a day (on and off) searching (a...
I am writing an 'inline translator' application to be used with a cloud computing platform to extend non-supported languages. The majority of this uses jQuery to find the text value, replace it with the translation, then append the element with a span tag that has an unique ID, to be used elsewhere within the application. The problem ar...
I have a jquery headline like this:
<div class="mainGallery">
<div class="main">
<div class="mainDesc">
<h2> </h2>
<a class="mainA" href="#"> </a> </div>
<ul class="pg">
<li> 1 <a href="#" rel="Headline Title 1"></a> <span rel="Headline Lorem1 ipsum dolor sit amet"></span>
<p rel="images/1.jpg"></p>
...
I would like to use jQuery to make this:
<ol>
<li>item a</li>
<li>item b</li>
</ol>
<ol>
<li>item c</li>
<li>item d</li>
<li>item e</li>
</ol>
…become this:
<ol>
<li><span>1</span> item a</li>
<li><span>2</span> item b</li>
</ol>
<ol>
<li><span>1</span> item c</li>
<li><span>2</span> item d</li>
<li><span>3</span> item e</l...
Hi jQuery ninjas.
I need your help. I have made a really clean and simple example to illustrate my problem. I have build my own jquery plugin:
(function($) {
$.fn.setColorTest = function(options) {
options = $.extend($.fn.setColorTest.defaults,options);
return this.each(function() {
$(this).css({ 'color': options.color}...
I have few nested DIV elements. For example:
<div id='id1'><div id='id2'>content</div></div>
I attach event to DIVs event handler using jQuery:
$('div').click(function () {
//some code
});
There will be two events when user click on content. So there will be two simultaneous events. Is it possible to get inside event handler...
I found a great control with example here for mvc
It fulfills all my requirement but the problem is that it uses a js tree dll.
Should I go on and used that example in my application?
Do you people refrain from using 3rd party free dll in applications?
How will I tell that it will not expire or not cause problem later on
Forgive me if...
I have a div that has a 'home.jpg' image as background and I want the background to be 'another_image.jpg' when I click something. The thing is that I want the new background to fadeIn and not just to appear (by doing some .css('background', url('another_image.jpg')); )
Is there a way to do that? I've tried the bgImageTransition plugin ...
I cant figure out whats wrong. Its working when i tried to refresh only topics but it doesnt works when tried to refresh topics and page-links. ie. topics table's refreshing, and 'pagelinks' disappearing, i thought pure cannot reach - read second template node.
By the way, i tested their code, first message box show up all of nodes - in...
I try to get jQuery object of a submit button in a specific form (there are several forms on the same page).
I managed to get the form element itself. It looks something like this:
var curForm = curElement.parents("form");
The current Element has the context HTMLInputElement. The several techniques I tried to get the according submit...
Hi all,
Googling for the past week, but cannot finally decide which python web framework would be right for me. The web app I'm about to develop would be almost completely "pure" html with js (jQuery). Server side would have to do the following:
authentication
session management
caching
web services (almost all the on page data would ...
Hello,
I'm trying to use asp.net mvc's 2 client validation ( <% Html.EnableClientValidation(); %>) with a modal box (facebox). and can't get it to work. I've tried the following solutions and none of them worked:
www.phpvs.net/2010/04/26/manually-validate-an-asp-net-mvc-form-on-the-client-side-with-microsoftmvcvalidation-js-and-jquery...
Hi,
I have created image gallery slider, the images of which scale with the window size. My problem is I can't seem to create the right formula to ensure that the slider is at the right position when the window is scaled.
If I am at the first image and the slider 'left' offset is 0 then the scaling works fine and my offset is correct, ...
What is the behavior supposed to be when a jQuery accordion section's content is lengthy -- more than will fit on the page?
...