ajax

ModalPopupExtender + ASP.NET AJAX: Can't page grid

I'm trying to page and sort my datagrid wich is inside a modalpopupextender but I can't page it in any way, already tried with , put the updatepanel inside, outside, in the middle (loL) and it does NOT work. modal popup does not get closed but the grid just dissapear. Code: Protected Sub Page_Load(ByVal sender As Object, ByVal e As Sy...

Ajax UpdatePanels scroll on partial page update.

I set the AutoPostback property of a textbox to True so I can process the TextChanged event on the server and, based on what they typed in the textbox, appropriately display a message in an update panel. The problem is, when the partial screen refresh is performed, no control on the screen has focus. 99% of the time, when the text in...

ASP.net Ajax and Page Events

During Asynchronous postback (Ajax) will Page_PreInt() ,Page_Init(),Page_Load() events fire again? ...

Refresh Div with Jquery at fixed time

I've got a php script that tells me when the next bus is due, and at the moment I'm refreshing this into a div, using jquery, every minute or so. Now, because I know the time at which the data will change (after the bus has come), I want it to refresh the div at this time (or just after, doesn't really matter). I should point out that I...

ajax(search suggest) funny character problem

ajax(search suggest), if input funny character(like Ô) and submit it, "?" is displayed in *.asp. ( response.write (request.form("str"))) i am using xmlhttp.open("post", "*****.asp", true); xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send("str="+escape($("str").value)); and the...

PHP, jQuery and Ajax Object Orientation

I'm a fairly experienced programmer getting my head around PHP and Ajax for the first time, and I'm having a bit of trouble figuring out how to incorperate object oriented PHP into my ajax webapp. I have an admin page (admin.php) that will load and write information (info.xml) from an XML file depending on the users selection of a form...

ASP.NET AJAX UpdatePanel problem

I'll try and be concise: 1) I have a dropdownlist with Autopostback set to TRUE 2) I have an UpdatePanel that contains a Label. 3) When the downdownlist selection is changed, I want to update the label. Problem: Focus is lost on the dropdownlist, forcing the user to click on the dropdownlist to reset focus back to the control. My "so...

Unit Testing rich Views for ASP.NET MVC

If I have a rich AJAX-driven GUI in ASP.NET MVC, how would I unit test that effectively using a framework like NUnit? ...

jQuery Validation plugin results in empty AJAX POST

Hi, I have tried to solve this issue for at couple of days with no luck. I have a form, where I use the validation plugin, and when I try to submit it, it submits empty vars. Now, if I remove the validation, everything works fine. Here is my implementation: $(document).ready(function(){ $("#myForm").validate({ rules: { field1: {...

JQuery - Nested AJAX

All, I am trying to perform a nested AJAX call using the following code. The nested call doesn't seem to work. Am I doing anything wrong? $.ajax({ type: 'GET', url: "/public/customcontroller/dosomething", cache: false, dataType: "html", success: function(html_input) { $.ajax({ type: 'GET', url: "/public/customcontro...

jQuery $.get() not working in Drupal 6

So I am running into this problem. I am trying to use $.get() to interact with a REST application within Drupal 6.16, which uses jQuery 1.2.6 I have a test page on the desktop where I run the following code, and it successfully runs the alert. url = 'http://api.twitter.com/1/help/test.xml'; $.get(url, function(){alert("WORKING!!");...

Facebook Connect login button not rendering

I'm trying to implement a Facebook Connect Single Sign-on site. I originally just had a Connect button (<fb:login-button>), which the user had to click every time they wanted to sign in. I now have the auto login and logout features working. That is, my site will detect a logged-in Facebook account and automatically authenticate them if ...

jquery ajax call from link loaded with ajax

//deep linking $("document").ready(function(){ contM = $('#main-content'); contS = $('#second-content'); $(contM).hide(); $(contM).addClass('hidden'); $(contS).hide(); $(contS).addClass('hidden'); function loadURL(URL) { //console.log("loadURL: " + URL); $.ajax({ url: URL, ty...

How to easily upload files without form submission (with jQuery + AJAX)

So I have some form processing code which processes the standard text inputs and also uploaded files (through the $_FILES array) I want to have the submission done through AJAX Will jQuery's post(). method still pass that stuff through -> $_FILES or do I need to do something special? ...

asp.net mvc client side validation; manually calling validation via javascript for ajax posts

Under the built in client side validation (Microsoft mvc validation in mvc 2) using data annotations, when you try to submit a form and the fields are invalid, you will get the red validation summary next to the fields and the form will not post. However, I am using jquery form plugin to intercept the submit action on that form and doing...

CI+JQuery+Ajax problem

Calling the ajax called URL works well without ajax eg. http://localhost/ci/controller/method/param_value. But using ajax it doesnt work. Following are the code segment, i have just started with JQuery+Ajax with CI. Here is my controller: <?php class BaseController extends Controller{ public function BaseController(){ parent::Co...

Rails : fighting long http response times with ajax. Is it a good idea? Please, help with implementation details.

Hi, everybody! I've googled some tutorials, browsed some SO answers, and was unable to find a recipe for my problem. I'm writing a web site which is supposed to display almost realtime stock chart. Data is stored in constantly updating MySQL database, I wrote a find_by_sql query code which fetches all the data I need to get my chart dr...

ajax search suggest escape encoding

if encoding using escape(data) in javascript, how to decode it in server side? I use ajax to post encoding data with escape javascript function, how can I decode it at the server side with classic asp ...

CSS visibility property not working on Webkit browsers after jQuery ajax success callback

The problem: I make jQuery .ajax calls by clicking on some cursor images in order to navigate through a book catalog replacing the content of a div with the ajax response (plain html). There is a cursor image that only shows if the book has more than 1 picture, that is controlled by php code that renders directly the HTML given in the aj...

dynamically add listener to ajax created content in jQuery

I am trying to get the html value of a linked clicked. The links are created dynamically with Ajax so I don't think .bind will work and I don't have latest version with .live $('div#message').click(function() { var valueSelected = $(this).html(); // picks up the whole id. I juust want single href! alert(valueSelected); ...