ajax

How do you build a Single Page Interface in ASP.NET MVC?

Hi all, I want to build a webapplication with a "Single Page Interface", using ASP.NET MVC. I have searched if this was at least possible and I think the answer is: not by simple means (reading http://msdn.microsoft.com/en-us/magazine/cc507641.aspx#S2 second-last paragraph; that article is from May 2008, though). I found other example...

Search server for image and display it

Hi.. The user on my site can currently search a mysql db via PHP, and the results are displayed on the same page inside a DIV, thanks to ajax... What I need now is to display an image that is associated with the mysql results... Say the result has ID=250, then I want a piece of code to search in a folder for an image with the name 250....

Ajax - loadable php-script

Hello, I'm dynamically loading different content from db, using ajax. So, when I'm loading plain text - it shows correctly, but when there is a php-script in content, it wouldn't be interpreted by php-server, so I can see a code at the page. Could I load php script like this way? ...

C# ASP.NET Collapsible Gridview

Is there a way to create a collapsible ASP.NET gridview displaying a parent child relationship based on a check box click? ...

facebox-jquery problem in chrome and safari

Facebox is a jQuery-based, Facebook-style lightbox which can display images, divs, or entire remote pages. But, in Chrome and Safari you'll can have a bad experiencie when displaying post-submit form (the response). test here with Chrome: http://www.freecss.info/tutorial/contact/index.html "submitemail.php" (the response) is displayed...

ASP.NET AJAX Control Toolkit - Change Appearance of AsyncFileUpload Control?

Hi, I tried asking this at ASP.NET Forums but no one had a solution. I'm starting to think there isn't one. What I'd like to do is customize the look and size of the AsyncFileUpload control's 'Browse' button while hiding its textbox. Alternatively, hiding the AsyncFileUpload entirely and calling its functionality from a button whose ...

Why jQuery don't want to style piece of html inserted with Ajax into new page

This is my first post, so first hallo all. I have a little problem with Ajax and jQuery. On one page test.html i have one div with some paragraph and one img. On the index.html page i have only anchor for retrieval of that div using Ajax with jQuery. But all css(which i have set for that div only using jQuery) don't work after the succe...

addEventListener() question/weird behavior

I'm developing a game for Facebook. I'm using PHP and FBJS. I'm using addEventListener() to attach events to two buttons. Each button has it's own event handler which is a js function. The first event handler (loadNewCargo()) gets called with no problems. But the second event handler (discardExistingCargo()) causes the page to refresh wh...

Do I really need JQuery UI Tabs to switch back and forth between two Ajax loads?

Sorry if this was covered before in some way that I wasn't able to understand. I'm somewhat new to JavaScript/Jquery and I normally enjoy wasting hours, fighting my way through things until I figure them out, but my lack of knowledge may be causing me to complicate things where an easier solution unknown to me may be available. I've al...

Problem while Creating Dynamic ModalPopup

Hi, i want to create a modalpopup dynamically but i come across a problem.I pasted my sub here and i dont know what to do for that problem.When i want to show modalpopup,it says "Control 'mdldelete2' of type 'ModalPopupExtender' must be placed inside a form tag with runat=server." How can i solve this? Public Sub Raise_Alarm(ByRef p_P...

How to use AJAX in DRUPAL

I want to implement AJAX in DRUPAL 4.7 as I am beginner in Drupal can any one help me in this, it would be great if I get a snippet of Code. Actually in a page I have list of items is being there using pagination it is being accessed, but everytime when I click on the next button it relaods the page, Since in the same page I have other ...

Changing background image on succesive Ajax requests causes multiple GETs for same image

The title pretty much says it. I have an element that doesn't have a background image. I set one (a spinner) during an Ajax request using jQuery's css() method, then clear it with removeAttr("style") to revert back. Only one request is running at a time. This, however, causes a GET for the background image not just the first time, but l...

'Sys' is undefined javascript error

I am getting the following error: Microsoft JScript runtime error: 'Sys' is undefined While trying to execute: <head id="Head1" runat="server"> <title>Untitled Page</title> <script language="javascript" type="text/javascript"> //ERROR IN THIS LINE!!! Sys.WebForms.PageRequestManager.getInstance().add_endR...

Ajax chat polling bandwidth efficiency.

I've written a small web application which is basically a JQuery powered chat client within the browser, to get the posts I'm polling the server with an AJAX request and then appending any new replies, I'm worried about making this as efficient as possible while not losing the realtime feel. http://darklightweb.co.uk/RealTime/ I can't ...

Ajax: injecting code into Internet Explorer

I'm having trouble getting the follow code to work in Internet Explorer, it doesn't seem to want to execute the code sent back from the server via Ajax, it just does nothing: var ajax = new ActiveXObject('Microsoft.XMLHTTP'); ajax.open('GET','http://fromsitewebsite.com/javascript.js',true); ajax.setRequestHeader('Connection','close'); a...

Accessing XMLHttpRequest from the success ajax event in jQuery

According to the doc, the 'error' ajax event gets passed the XMLHttpRequest object, 'success' does not. http://docs.jquery.com/Ajax/jQuery.ajax That's a shame, because I would like to be able to access the HTTP status code in success. I am doing so successfully with error. error: function(data){ alert(data.status) } Any leads would...

ASP.NET & Ajax: query string parameters using ISO-8859-1 encoding

Hi there, folks Here's another one for you to help me solve: I have an ASP.NET website that uses AJAX (asynchronous) calls to am .ashx handler, passing a query string parameter to get some information from the database. Here's an example of how it works: Client-side (Javascript) code snippet that makes the asynchronous call to the han...

Is there a Java API for Google's AJAX Search API

Does anyone know of a Java library that provides a structured interface to Google's AJAX Search API http://code.google.com/apis/ajaxsearch/? I could only find Java API's for their old SOAP based interface. ...

all ajax ready event on jquery

i'm using $(document).ready but that will not work for all ajax ready. I need a callback event after all ajax load finished in jquery. How to write this event using jquery? ...

extendedDataTable resize

Hi All, I am using richfaces's component extendedDataTable and I need to extend the grid height to show all the rows without using a scroller. To do so I have added a java script method to run on page load. This method aims to resize the grid. The reason that I couldn't do this in code isI dont know the height of each row as it is not...