ajax

Mouse over popup like addthis and sharethis??

does any one know how to create a mouse over popup like addthis.com and sharethis.com?? it should popup exactly on a button. and moreover it does not have anything inserted into Head tag.can be attached javascript with that link between body tag but not in head. any Ideas, Sample code?? ...

Do you know of a bleeding-edge HTML5 leveraging, legacy-ignoring JavaScript framework?

What's the best framework (sort of jquery, extjs, etc like) to use if I'd like to intensively use all the freshest technologies of the HTML5 stack provided by modern browsers (Firefox 3.6+ (Minefield especially), Safari 4+, Chrome 4+) and have absolutely no need to support any legacy browsers (incl. no need in IE support at all, no need ...

Ajax, multiple calls

Hello I wonder is it a good practice to do multiple Ajax calls? ...

Dynamic form generation without using nested models

Good day! I am a newbie at Ruby on Rails, and part of my previous tasks was to make a dynamic form generator using nested models, as seen in Railscasts 196 and 197 ( http://railscasts.com/episodes/197-nested-model-form-part-2 ). I have successfully implemented it using so. For my current task, however, I need to reproduce the same form m...

jquery $.getJSON only works once in internet explorer

I have a php function which inserts a searchbar into each page on a website. The site checks to see if the user has javascript enabled and if they do it inserts some jquery ajax stuff to link select boxes (instead of using it's fallback onchange="form.submit()"). $.getJSON works perfectly for me in other browsers except in IE, if I do ...

versoning error ajax control toolkit

Hi All, When i am running sample ajax application i am getting the following error. Error 1 Could not load file or assembly 'System.Web.Extensions, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. E:\Projects\Ajax Samples\W...

How to disable form submit if the username is not available

I have checked the user name availability. The problem is, even if the username is not available, the form is posting. Edited Code: <SCRIPT type="text/javascript"> $(document).ready(function(){ $("#emailch").change(function() { var usr = $("#emailch").val(); if(usr.length >= 3) { $("#status").html('<img src="imag...

How to run my php code in every X minute?

Hi Gods, i try to make a "status monitor" for our small network. After the page was load i make a ping for every IP which i addedd. Its, ok. But i would like to do this ping in every X minute, without reload my hole page. I can make it if i reload the page with header refresh, but i would like to do this witout reload. I think i have...

UpdatePanel does not fire on first click of link button

I have an update panel on an .aspx page. Within this aspx page I have a few ascx controls. One of the controls has my link button. When that button is pressed I'd expect to get the results I intend to get, but I expect to not see a page flicker or see the page postback. It does both. After I change some search information and click the l...

security token problem with ajax requests

when building apps I use a token to prevent attacks on the forms each time a form is rendered it gets a new ONE TIME security token that i include in the form as a hidden field. this token is also stored in the session. when the form is sent, the token is verified against the token in the session to make sure the form is legit. This w...

How does the Firefox website make its download stats page work?

On the Mozilla website, there’s a page showing (apparently) live download statistics for Firefox: http://www.mozilla.com/en-US/firefox/stats/ How are they performing their request to get the live stats data? I can not see a constant connection in Firebug. How is this working? ...

How can I force a jQuery plugin to refresh the data it has loaded?

I am working with jQuery Pagination, and a popup form. On saving the data in the form, how would I go about forcing the Pagination plugin to reload the data it would load for whatever page I am on, without reloading the entire webpage? Ex: Item 1 Item 2 Item 3 Add Item->Item 23->Save->Reload List Item 1 Item 2 Item 3 Item 23 http://d...

ASP.Net MVC - Need to send other data along with Partial View

I need to send some other data, ideally wrapped in a JSON object, down to the client. As well as that however I need to send a Partial view. Now I can only think of two ways: Send JSON object and then make another call to load contents of partial view into div. Send HTML for Partial View as a property of the JSON object and then load i...

jQuery ajax multiline "script" response

I'm designing a template creation tool, which uses a jQuery Ajax request that posts parameters to a PHP file. The PHP does the actual generation of the template's HTML. // Send for processing. Expect JS back to execute. function generate() { $.ajax({ type: "POST", url: "generate.php", data: $('#genform :input').serialize(), ...

load data from external file jQuery

Hi, I need to take data from external file and format it, the problem is, i want to have that data stored into a variable. Load method works for me, because i need to load not the whole document, but just a part of it, but then again, i want to load to variable and not to some dom element. $.get can do this, but it doesn't support select...

AJAX UpdatePanel.Visible Property not working with Javascript

I have code below. I want to hide the update panel by using Javascript (without going to server) when the user clicks Hide button. Although javascript funciton seems to be working fine in debugging, it does not hide! <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <script type=...

button inside modalpopup doesn't fire the event

hi, i've a simple search form with two textfield and on button. the result is displayed in gridview. All this is inside a modalpopup. the content of the modalpopup (the controls) are in the same page (parent page). i am not using iframe and updatepanel. the problem i've now is: when i click on the search button (btnFind), the event does...

How does the dispatch action call work in the Twitter sidebar

I would like to understand how the call for replies works as follows: <a href="http://twitter.com/replies" data="{"dispatch_action":"replies"}"> <span>@phwd</span> </a> This was taken from the homepage of Twitter. The section in particular being: data="{"dispatch_action":"replies"}" I believe (think), it is using Twitter's own twi...

$.ajax call throws error when browsing to another page before the request is done

This is a difficult question for me to Google, so here goes. I've encountered a problem in Firefox (does not happen in IE) where my Javascript kicks off a call to a service, which may take a little time to load. If the user navigates to another page before the call finishes, the error method of the jQuery.ajax() object is called. I am ...

AJAX Post Not Sending Data?

I can't for the life of me figure out why this is happening. This is kind of a repost, so forgive me, but I have new data. I am running a javascript log out function called logOut() that has make a jQuery ajax call to a php script... function logOut(){ var data = new Object; data.log_out = true; $.ajax({ type: 'P...