ajax

Dynamic editor upload into web page. Need advice

Hello everybody, I am writing intranet site for tracking employees science activities in organization. There lots of editable information on each personal page (science degree, publications & so on) so I upload editor per request (user clicks "edit" and modal dialog with html editor: set of textboxes/comboboxes/autocomplete features & ...

IIS 7 problem which does not occur under apache

I'm hosting a little site using a JavaScript to draw a simple graph. It involves one html index file, some css and some js files. It has all been working perfectly on two different apache servers, but when I set up IIS 7 the ajax calls fail. I get no java debug errors in firefox that I can work with, or any kind of error message at all....

jQuery AJAX table to a page but now the colorbox overlays no longer work

Hi, I am using AJAX to dynamically update a page with a data table. When the table is successfully added to the page it contains some code reference to produce colorbox overlay pop ups. However, after the table has been pulled into the page these overlays no longer function. Any ideas? I assume they need to be re-initialised or some...

jQuery: How to parse a multidemensional array?

I'm not sure if the array is too deep or what, but I can't seem to get anything other than the keys and undefines. Help please! I'm using Codeigniter for development. Here is the PHP then the jQuery: $term = $this->input->post('search_term'); $this->db->like('book_title', $term); $search_query = $this->db->get('books'); $retu...

Help Needed With AJAX Script

Hello All I am working on an AJAX script but am having difficulties. First, here is the script: var xmlHttp; function GetXmlHttpObject(){ var objXMLHttp=null if (window.XMLHttpRequest){ objXMLHttp=new XMLHttpRequest() } else if (window.ActiveXObject){ objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") ...

Crossdomain settings in Google Chrome

Hi Folks, I'm wondering, in IE & Firefox you're able to setup the browser, to allow cross-domain calls. I can't find any option in chrome for that (actually, there are in general not too much options at all...) are there any about:config like things? Kind Regards --Andy ...

How to switch easily between ajax-based website and basic HTML website?

Hi, I have a website ( based on JSP/Servlets ,using MVC pattern), and I want to support AJAX-based website and basic HTML-based website. website visitors should be able to change the surfing mode from Ajax to basic HTML and vise versa, - as it applies in Google-mail. The Questions : What is the best way to achieve this goal easily? Sh...

Why does my Ajax'ed control not have the correct value in my event handler?

I have a RadioButtonList in an UpdatePanel. Say I click the second button (value of "1"). It posts back, and hits my event handler -- I can watch the POST go out in Firebug, and it is clearly sending the correct form value of "1" I can catch the event handler with a breakpoint, and check Request.Form and clearly see that the incoming ...

How to apply a .patch from codeplex / ajax toolkit

I have obtained the necessary patch for the asyncfileupload control in the codeplex / microsoft ajax control toolkit. However, what i have downloaded is a .patch (AJAXControlToolkit_Issue_Item_#24854.patch), and i cant see any instructions on what im supposed to do from here onwards? Edit: It's only a 13KB file, i can read in plain-tex...

Return unicode string from python via ajax

Hi! I have a small webapp that runs Python on the server side and javascript (jQuery) on the client side. Now upon a certain request my Python script returns a unicode string and the client is supposed to put that string inside a div in the browser. However i get a unicode encode error from Python. If i run the script from the shell (b...

Prototype callback functions swallowing exceptions

Hi all Using Prototype version 1.6.0.2. I have a common problem where exceptions are being swallowed when they are thrown in a callback function, typically when I am trying to handle the response to an Ajax.Request call. Here is a simple example: HTML markup: <input type="button" id="myButton" value="Press Me" /> Javascript: MYSI...

Android browser crashes on Ajax calls, when viewport meta tag is defined

I am building a web app, which is intended to run on the Android browser. When I have a webpage that contains any kind of viewport meta tag, like this: <meta name="viewport" content="width=400"/> My webpage crashes on ajax calls. It happens when using the emulator, the actual browser on my nexus one, and on a droid (all running Andro...

Whats wrong with this function? .each related

When I uncomment the alert the data is there... like: { 'Huishoudelijke hulp': 'Huishoudelijke hulp', 'Verpleging thuis': 'Verpleging thuis', 'Verzorging thuis': 'Verzorging thuis', '24 uurs zorg': '24 uurs zorg', 'Ondersteunende begeleiding': 'Ondersteunende begeleiding', } But instead of popula...

Comet, Ajax Push, Reverse Ajax

Hi Guys. Someone have any sample of Comet app .net? I need one sample how to persist connection of client in server? ...

Choosing between WPF and Silverlight

Hi, We have an existing web application developed using ASP.NET/Ajax We are planning to move it to either WPF or Silverlight. Can someone please compare these 2 technologies with respect to productivity,performance, maintainability,trade-offs, their pros and cons etc ? Also,could I also know the advantages/disadvantages of using Silve...

ASP.NET MVC : AJAX ActionLink - Persist Data

Hi guys, I'm really new at this and I was searching the web for an answer to my question and I couldn't find it, so here I am posting my question :) I'm trying to create a new record in my table Facility. For my goreign keys I'm displaying the choices in tables instead of a dropdowns. When the user clicks on the select link which is an...

Duplicate System.Web.UI.AsyncPostBackTrigger Controls keep getting inserted automatically, causing Parser Errors

I have an update panel with a number of [asp:AsyncPostBackTrigger...] controls, and everything was working fine. But now, something keeps inserting duplicate AsyncTriggers, and instead of simply being [asp:AsyncPostBackTrigger...] controls they're [System.Web.UI.AsyncPostBackTrigger...] controls, and I get parser errors as a result. So...

Mapping to a JSON method with url-pattern

I'm creating a Spring MVC application that will have a controller with 'RequestMapping'-annotated methods, including a JSON method. It currently has static content that resides in webapps/static, and the app itself resides in webapps/myapp. I assume that Catalina's default servlet is handling the static content, and my *.htm url-pattern ...

Timer causes dropdownlists to disappear permanently after a modal popup

On a fairly complex page, we're getting some unusual behavior with dropdownlists in IE6. To layout the basic structure, there are 2 update panels on the page each with a gridview presenting a master-details layout. In addition to the grid, each panel houses some dropdownlists for filtering the data in the respective gridview. Now what...

AJAX server calls on a JSF-centric app

I'm building a JSF 2 application. I wanted to integrate it with jQuery, e.g.: $.getJSON(contextPath + '/something', function(data) { // ... }); I need contextPath/something to return data in JSON. How can I do it? I know I can assign another servlet to this URL, but this approach does not seem to scale well. One could use a more scal...