ajax

How to control ASP.NET ModalPopupExtender after AsyncPostBackError

Hi there, I have a pretty simple question which I'm sure somebody has come across before. I am using an AJAX ModalPopupExtender to initiate an Ajax request. In the event of an error I want to raise an alert and hide the Ajax ModalPopupExtender. My attempts of hiding the ModalPopup extender and displaying the exception as an alert have...

Textbox loses focus during async ajax call using jQuery

Hi all I have been working on on an AJAX chat application using php, mysql. It's almost done now; the only issue I am facing is that the textbox where the user types his message to post a reply keeps losing its focus during the async ajax calls. What is happening here is that I have two divs which are being constantly updated with two ...

How to improve asp.net AJAX autocomplete performance

My web site has city,state and zip code autocomplete feature. If user types in 3 characters of a city in the textbox, then top 20 cities starting with those characters are shown. As of now, Autocomplete method in our application queries sql 2005 database which has got around 900,000 records related to city,state and zip. But the respo...

ASP.NET MVC and AJAX

I have a view which is composed of top, left and bottom headers and a main contents pane. Suppose that during an AJAX request I need to update the HTML of the top, bottom and main panels (the left header should stay the same). I was wondering what would be the best way to accomplish this. The first thought was to put the main contents ...

Support for encoding query string or POST data in YUI ?

How do you encode a javascript object/hash (pairs of properties and values) into a URL-encoded query string with YUI (2.7.0 or 3.0.0 Beta) ? I want to do the equivalent of Object.toQueryString() from Prototype: I need this to encode parameters for GET and POST requests with YAHOO.util.Connect. It turns out YAHOO.util.Connect has a set...

Returning a CollapsiblePanelExtender over/through ajax/javascript

I would like to be able to return a programmatically generated collapsible panel extender through javascript along with it's panel and so on. I've got the panel and associated tables going through just fine however when I try and attach the cpe it breaks. and returns an error: The cpe panel and such are being generaged by a WebService ...

Anyone have experience with Telerik's RadGrid Paging?

I am having an issue with the paging system on Telerik's RadGrid (AJAX). First take a look at this screenshot: As you can see, the First/Last Prev/Next buttons are there, but there is no markings on them. Also, the dropdown (thats where those values are coming from) and whatever that 'select' is are really messed up. Here is my desig...

c# updatepanel with timer page_load

I'm experimenting with some AJAX now. I have a custom control which appears on my masterpage in which there is an update panel and a timer. The timer fires and the panel updates and everything is dandy. Except that there are some operations that I don't want it to perform on every refresh. It seems like the entire page lifecycle happ...

How to "refresh" a window in IE without the window stealing focus?

I have a page on which, periodically, I must change the URL to incorporate some GET parameters in the background using JavaScript, such that the page refreshes using the new GET parameters. So, for example, I'll periodically do window.location.href = window.location.host + '?' + ss; or window.location.search = '?' + ss; Where 'ss'...

jQuery $.ajax(), $.post sending "OPTIONS" as REQUEST_METHOD in Firefox

Having trouble with what I thought was a relatively simple jQuery plugin... The plugin should fetch data from a php script via ajax to add options to a <select>. The ajax request is pretty generic: $.ajax({ url:o.url, type: 'post', contentType:"application/x-www-form-urlencoded", data: '{"method":"getStates", "prog...

ASP .NET MVC Ajax link that gets executed onmouseover

In my ASP .NET MVC application i have a link that refreshes "the preview data box" after each click. I've done this using this code: <%= Ajax.ActionLink("delete", "DeleteItem", new AjaxOptions(){UpdateTargetId="casePreview"}) %> Now I would like to change the behaviour in such a way that the preview data box is refreshed each ...

How do you get the text inside the new HTMLEditor in ASP.Net Ajax Control Toolkit?

How do you get the text inside the new HTMLEditor in ASP.Net Ajax Control Toolkit? ...

Ajax with in Ajax. Is this possible

I have a php page. This has multiple images which looks like tabs. With in this php page i have a div which will load different PHP pages on click of different images i mentioned before. This is done using Ajax. This much of it works fine with no page reload. This is done to simulate the tab operation without page reload. This much of it...

ASp.net Ajax examples for the beginner

Hi I am looking for some good collection of examples on AJAX in ASp.Net. Please share some excellent links. Also if you think there is a good resource which can help me learning - please share it. Thanks ...

Jquery Ajax and php classes

I'm trying to learn how to use oop in php. I'm also fairly new to jquery. Is it possible to make an Ajax request to a php class method? I've only ever sent Ajax requests to a file specifically for that purpose and that returns the data I need. Sorry if I haven't explained myself very well. ...

Get the response data into the jQuery ajaxComplete function

Hi people, What i would like to do is send the return data from any ajax call and also have it avaiable in the ajaxComplete function. So when i have a $.post or $.get or $.getJSON and so on request like this: $.post(url, options, function(DATA) { $('output').html(DATA); }); i also want to get the same data into $.ajaxComplete(...

Jquery not working in Ajax calls

I have been trying to make ajax calls with Jquery. When doing so,I miss out the Jquery corners and scroll functionality doesnt work. But the same functionality works fine without Ajax calls. Can anyone provide a solution to this. My application is in Ruby on Rails and my Ajax call in ROR is as follows. (link_to_remote "tabname",:url=>{...

How can I change a dropdownlist with AJAX?

I have a form for registration where the user has to select his university. After this, the user has to select the faculty. When a value is selected in the university dropdownlist, I want to use AJAX to update the faculty based on the select university. How would I go about accomplishing this? ...

AJAX and NS_ERROR_DOM_BAD_URI error

Hi guys, I have been having the following problem, i think it's probably due to the fact that my approach may be misguided, but hopefully with your help i can sort this out! Basically, for my site i have a search provider (who has been paid, so i am not breaking any terms of use). When the search form is subbmitted i am directed to the...

UserControl with UpdatePanel programmatically create ScriptManager possible?

I'd like to use an UpdatePanel in my UserControl. The problem is the .aspx page the control is dropped on will NOT have a ScriptManager. I will need to create the ScriptManager in the UserControl. However if the UserControl is used, say twice on the page, then placing a ScriptManager won't work because you can only initialize ScriptManag...