ajax

What does .d in JSON mean?

Hi, I have a .NET webmethod that I have called from jQuery. The method returns some HTML markup that I display within a DIV element. Once I have the response I use $("#div").html(result.d); My question is, what does the .d do? I don't like using code I don't fully understand? Could I get the same result using Eval? ...

Migrating Delphi App to Java or to Web App

We want to migrate UI rich application from delphi to java or Web Application. Reason is that we want application to be portable on all Operating Systems. Current Components and Modules of Application in Delphi : In Delphi we are utilizing TWebBrowser component to display HTML content We are playing mp3 that is extracted from FileSt...

IE not updating display after callpback pane updates the DOM

I have an update panel in an ascx page using .Net 3.5. The user enters data, initiates a callback, and ajax updates the DOM. Usually everything's all hunky dory. Once in a while the DOM gets updated and IE doesn't bother refreshing the display. The entire updated area appears to be blank. Once the user does something that would trigge...

Flash using AJAX or other dynamic data request, what is the current state of the art?

I am doing initial design work for the back end of a site that will use mainly Flash for the front end. I am not a Flash dev myself, and I don't care about general comments for or against Flash. What I want to know is: What is the current state of the art in communicating with the server to use dynamic content? Is AJAX an option? Wha...

Using SharedObject for client-side persistence?

Has anyone used Flash's SharedObject mechanism for client-side persistence? Are there big gatcha's? Size limits? ...

AJAX timeout issue in MVC

I have an ASP.Net MVC application. I am using an AJAX request on a page which requires user authentication to fire an action on another controller, which returns a view to update a table on the page. The action that the AJAX request makes also requires authentication. The issue comes up when the user lets their session timeout and the...

How to show a loading graphic while a file is getting uploaded?

The file should be uploaded in the background via Ajax or Iframes. I should be able to detect via javascript when the upload has completed, so I can hide the loading graphic and redirect the user to a new URL. Using Jquery is fine. ...

AJAX in the control panel of a WordPress widget

I'm trying to figure out the best way to implement an AJAX-y slider on the control panel of a WordPress widget. Because the sidebar admin itself is AJAX, I want to make sure that my solution doesn't conflict with what's already in place. The goal of the slider is to default to basic options but allow the user to opt-in to advanced option...

Google anlytics code doesn't track ajax generated page

Hi In my site we have only one default.aspx page and we renders each htm pages into default.aspx. now we have added google anlytics code into each htm pages but google analytics report only shows one page default.aspx in tracking. anyone can help on this how we can track for each page? Thanks in advance. Regards, Sagar ...

How to create a servlet to return a database query in a certain div

I need to create a very simple application: I need to have a form that submits data to a servlet The servlet then queries a database to retrieve a list of reports based on the criteria given by the form The returned list of documents has to displayed in a div on a .jsp page I am not sure about the last one (number 3). I know how to c...

AJAX+hebrew

I send by XMLRequest hebrew letters to Servlet ,at xmlRequest it's still hebrew ,in servlet i receive wired letters,.Java works on Unicode how to convert letters from textarea to Unicode t send to servlet ...

Isn't AJAX on pageload a bad thing?

I've seen this on nerd dinner and other sites. On page load (in JavaScript, via the browser), an AJAX request will go out to get some data from the same server that rendered the initial page. The data will be small and there are no technical limitations that would have otherwise prevented them from just pulling down that data in the fir...

Help! About 500 errors a day from ScriptResource.axd

I get more than 500 exceptions daily from ScriptResource.axd (ASP.NET website). It seems to comming from the Ajax Update Panel but I am not sure. Anyway, is it possible to fix these exceptions? ...

How to implement CrateAndBarrel.com alike shopping-cart ?

We are looking for approach to implement shopping-cart that keep shopping items at the bottom of the page, just like CrateAndBarrels http://www.crateandbarrel.com/family.aspx?c=837&f=28291 The visitor should be able to add shopping item to the cart by clicking the item's "+ Add to Cart" button. From my understanding, for CrateAndB...

I want to trigger an event every single time data changes in an HTML text input field regardless of focus

How do you catch the client-side event when a browser changes an input text field using the browser's autocomplete feature for a plain HTML input field? (This is the small dropdown on input fields that is supplied by the browser, I know that you can disable it with "autocomplete=off" in some browsers per input field.) I'm already bindi...

How do you provide JSON response data in .NET?

Without using any third party tools, what is the ideal way to provide JSON response data? I was thinking of having an ASPX application page to just return the json string response. Any ideas? ...

trigger php function request when google maps marker is moved

When a marker is placed, I want to call a php function (in another file) with the latitude and longitude as input and output the result in a div on the page. So whenever the marker is moved, it updates the div with the latest result of the function. I know I'd need javascript to do this but I'm not very familiar with it and any help wou...

In XStream is there a better way to marshall/unmarshall List<Object>'s in JSON and Java

I'm using XStream and JETTISON's Stax JSON serializer to send/receive messages to/from JSON javascripts clients and Java web applications. I want to be able to create a list of objects to send to the server and be properly marshalled into Java but the format that XStream and JSON expect it in is very non-intuitive and requires our javas...

Refresh dropdown in parent, when user closes popu window

I have a three step registration process, all on one page, the last of which requires the user to select a saved payment method or input a new one. Obviously, I want to collect that new data over SSL. Step 2 of the process involves showing the user a Google map, and the GMaps API doesn't play nice with SSL. My solution is to use a popu...

JQuery - what is the best way to fire a MVC controller action via JQuery?

Basically, I have several Radio Buttons in a filtering column. For example, if I am in the \Catalog\Flooring\Harwood section I have Radio Buttons for [Area Rugs], [Carpet] & [Stone & Tile]. So, what I want to do, instead of embedding an tag under the Radio Button I'd like to fire a JQuery event and do a regular post back to the server...