ajax

Non-working Rails link in Firefox

I have the following Rails link generating code (I have removed potentially 'industry secret' stuff, sorry for the odd names, but the length of variable names and values match) <%= link_to_remote "FOUR", :method => "get", :url => {:action => "testing01_four_log_info", :fourth_name => "LA1", :testing01_num => "123"} %> This code gener...

javascript or php - what is most efficient for updating?

I have several update methods in a javascript file, used for updating my ajax application, like so: function updateByPk(layer, pk) { url = "get_auction.php?cmd=GetAuctionData&pk="+pk+"&sid="+Math.random(); update(layer, url); } function updateByQuery(layer, query) { url = "get_records.php?cmd=GetRecordSet&query="+query+"&sid=...

deleting mysql records with ajax

I would like to know the best way to delete records from a live database and refresh the page instantly. At the moment I am using ajax, with the following javascript method: function deleterec(layer, pk) { url = "get_records.php?cmd=deleterec&pk="+pk+"&sid="+Math.random(); update('Layer2', url); } if cmd=deleterec on the php pag...

How can i create a Gridview to make Ajax calls to webservice .

I Have a Gridview . I wanted to display data from Webservice via Ajax calls in ASP.net Please ,let me know the solution for this. Thanks in Advance. ...

What is the purpose of the Assemblies node in Web.Config?

When creating a new ASP.NET AJAX Web Application in Visual Studio 2005, the default web.config contains the following section (inside the compilation node): <assemblies> <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </assemblies> Whether or not the assemblies node ex...

Tools for Ajax load testing

Hi all: There seems to be a lot of stress/load testing tool that support AJAX. I am wondering how well does these tool implemented. Do they only record http request and replay it? Is it the right way to test AJAX app? How does google test their ajax apps? Any suggestion welcome! ...

Updating ASP.NET label while processing

I have a method thats run on a button click, with 4 labels. What I need to do is update a label after each block of code executes. I've tried threading, updatepanels, etc and can't seem to get anything to work. I thought the timer would work, but it only ticks when you're not inside a method. The code looks something like this: private ...

Ajax control toolkit Rating Control- Override RatingBehavior.js

Rating control in ajax control toolkit will not raise event if user clicks on current rating star becuase in behaviour js it has checking if (this._ratingValue != this._currentRating) , so i want to override this method without changing js and building tookit. How can i do it , can i extend rating control and overide RatingBehavior.js or...

How do I solve this error in my application when I put it on my server?

When I deploy my ASP.NET application to my server I get this error: add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" I have installed IIS and AJAX but this error occurs anyway. What am I doing wrong? ...

jQuery forms.js with multiple forms per page

I would like to submit information to a mySql database using php and ajax. The page that the info is being sent from (form.php) has multiple forms that are generated from a "while()" loop. On success, I would a response to update a div above the particular form from which the data was submitted. I am currently using jQuery and the jqu...

javascript function arguments in Jquery

Dear all I am using the JQuery and Javascript.I have onclick event ,that calls the javascript function. How to extract the arguments of function_A and function_B in JQuery And Is it Any Best way to do It? I need to Do ajax Call after javascript Click.Is any performance based issue ...

What does it mean when a js error points to a part of the viewstate?

I am fairly inexperienced with asp.net ajax and am having a problem where a javascript error is thrown (object not found). The debugger then stops and points to a substring of my viewstate it looks something like the following (not exactly this since my viewstate is huge) with the section between the ellipses highlighted: <input type="...

.getJSON produce a Download of a File ASP.NET MVC

I code a .getJSon, It does the job but I get IE to asked to download the file. Here is the code <script type="text/javascript"> $(function() { $('#id').click(function() { var dateReport = "01/01/2009"; $.getJSON('/Report/SendReport', { date: dateReport}, function(response) { if (r...

jQuery ajax method using a callback to update an elements class

Hi, I want to fire a function when an image is clicked, and that function will hit a URL passing it a parameter and then update the containing div's class with the value I get back from the URL. Can someone help me with code for this? My DOM looks like: <div class="c1"><img src="/images/hello.jpg"/></div> My URL is http://www.examp...

'Destination DIV' disappearing in simple jQuery AJAX call

Edit: Important: It is extremely unlikely that anybody who has come across this will have the exact same problem as me - check my answer below for my very obscure solution. There were however some useful responses that may apply to other's situations. Good luck if you're having a similar problem. I've got a really simple jQuery AJAX c...

Ajax locally testing

Hi.. im new to this Ajax thing . and i wanted to try this http://labs.adobe.com/technologies/spry/samples/data_region/SuggestSample.html neat little Autosuggest form. But this does'nt work anymore ..when i save it locally. this is what i've done so far : Firefox -> save pages as ..(index.html) new folder ( test23 ) also saved the pro...

Assign ColdFusion Client Variables Using Javascript

Is it possible to assign variables to the client scope using JavaScript? More specifically, I'm trying to assign a value after it is returned from an AJAX call. I understand that ColdFusion is run on the server side and JavaScript on the client side, but with the proliferation of AJAX, I'm curious if something like this might be possib...

Can I prevent window.onbeforeunload from being called when doing an AJAX call

I have an AJAX-based grid control. We hook into the window.onbeforeunload event to check if they have unsaved data and if so present them with a message "Are you sure you want to navigate away...you have unsaved data...". All this is good. But AJAX calls also trigger window.onbeforeunload and so if the grid has unsaved data and we ma...

HttpContext and AutoComplete Extender

I am using AutoComplete Extender from Ajax control tool kit. I have a webservice that this extender uses. In the web method I need to access a value "empid" which is present in my aspx page. I placed this value in HttpContext's Items collection in my aspx page. HttpContext.Items["empid"]=; In the web method I am trying to access the ...

AJAX Call to PHP script gives me 500 Internal Server Error??

Hi I make an AJAX request like so using JQuery: $.ajax({ type: "GET", url: "getvideo.php", data: 'videoid=' + vid, I use firebug to tell me whats going on and it tells me a 500 internal server error has occurred? wtf Here is part of the script concerned: $videoid = $_GET['videoid']; $get = new youtubeAPI(); $get...