ajax

Utilising JSON values in Javascript

I'm originally a PHP programmer and have been struggling with this for at least 2 whole 9-to-5 days now. I've come a long way but I seem to have gotten stuck trying to figure out the last bit. It SHOULD be fairly simple, but somehow I can't seem to find anything that coulp help me figure it out. I have the folliwing jQuery code that ret...

jquery load php file - result is not complete

I'm trying to load or better reload a DIV with content from an included php file. so the file is included in the webadmin.php from the location webadmin/pages.php. Then i alter some data in the DB through serializing. Now I would like to reload the pages.php from the callback of the serialize POST with load();. This all works fine up u...

Ajax Upload using valums ajax upload plugin inside a form.

Hi , i just came across this ajax upload plugin and i wish to use it inside a form as shown in the demo page example 3. For some reason i am not able to make it work. I am not sure what parameters come into the function. For example here is my sample code. $(document).ready(function(){ var upload = new AjaxUpload('property_i', ...

jQuery Ajax (beforeSend and complete) working properly on FireFox but not on IE8 and Chrome

I am using jQuery ajax version 1.4.1 in my MVC application (though the issue I am discussing was same with the old jQuery version 3.2.1) as well, to check during customer registration if the username is already registered. As the user clicks on the "Check Availibility" button, I am showing a busy image in place of the check button (actua...

Ajax style loading with IceFaces

I have a page on which I show a list of objects which are loaded from a webservice. This may take a while. Now I'd like to do it the Ajax way and first show the page and then load the list. While the list is loading a animated should be shown. Can anybody give me an example how to do that with JSF/ICEFaces? Thanks. ...

Ajax vs webservices

what is different between ajax and webservices. Anybody provide with some examples? ...

What are the pros and cons when choosing ajax enabled WCF service in an asp.net webform application?

I have just experimented my first ajax enabled WCF service in a sample asp.net webform application... If i have 10-15 pages in my webapplication which involves add,edit,view and delete operations, is it possible to make them ajax post and get without using .cs(codebehind) of all pages... What are the pros and cons when choosing ajax en...

document.getElementById(somevar) not working.

hi, i have the code below but getElementById(setID) not working for me, i know it catches the id because alert(setID) working. any idea? function getdata(file, aID){ req = xmlHttpRequestHandler.createXmlHttpRequest(); req.onreadystatechange = Response; req.open("GET", file, true); req.send(null); setID = aID; } function Response() { ...

Dynamically adding TinyMCE-editor to textarea kills other instances

Hi, I have an html page with one or more textareas, each of which has a TinyMCE-editor (added to them by using tinyMCE.init({mode : "textareas", etc...});. At first they all work as they should, no problems. On the page is also a button that adds a new textarea to the page (using AJAX). In the handler of the AJAX call I append the respo...

Alternative to an Ajax upload form nested in another form

I have an HTML form to edit the details of a person in a database system I have at my place of work. Part of the form allows the user to upload a picture of the person. However, this is giving me trouble, because I'm trying to make the form more Ajax-y by letting the user upload the picture and see it successfully uploaded before they su...

ASP.NET MVC 2 One Route Works, One Route Doesn't

I have two routes in my ASP.NET MVC application. The first is working fine - it's an ActionResult that returns a view. The second is on the same controller and is an ActionResult that returns a Json response. It takes a couple of additional paramaters. This second route is working on my dev machine, but when I deploy it to the server ...

JSF navigation in a HTML DIV element without reloading the entire page.

I would like to know if it's possible to make JSF navigation rules inside a <div> without reloading the entire page, in an Ajax fashion (like as in Gmail). Suppose you have your application main page with this situation: <div id="main"> <div id="header"></div> <div id="menu"></div> <div id="content"> (JSF navigation inside ...

Jquery ajax call pass GridView DataKey

I need to pass a GridView DataKey (Primary key) as parameter in an ajax call JSON with jquery. However,i dont't to expose my primary key column in source code HTML.I've already tried to hide the TD (first column) of the table,but it doenst hide in source code. Here is the Jquery code: $(function(){ $("tr").each(function(){//hid...

msxml XMLHTTP for large json object works very slow on IE8 and quite good on Firefox - why?

Hi, I am creating an XMLHTTP object in Firefox and IE8 and i transfer a very large amount of data (json). In Firefox it renders it in 5 seconds, in IE8 it takes 30 seconds. Is there any way to make IE8 XMLHTTP works faster? Here is my code for creating the XHR object: function createRequestObject2() { var http_request = false; if(win...

WebResource.axd not rendered in HTML

Hi I'm having problems using the updateprogress control in ASP.NET. I've successfully created a small project using this control successfully, but when I created a simple .aspx page in my solution using the same code then it doesn't work. There is a mismatch in the rendered HTML code, where it doesn't work it is missing sections, e.g. ...

How to prevent $.getScript from loading the same file?

I am trying to load a file.js dynamically with $.getScript. I have several select options to load different script on each click. I just want to call it once and if possible remove it from the dom on clicking another option, but firebug says loading the same script again and again on the next subsequent clicks. Having tried several solut...

synchronous AJAX post from unload event: how to ensure user sees most up-to-date information from DB on next page load

When a user requests to edit an entry in our CMS we 'lock' it so that nobody else can edit it simultaneously, we release the lock when they submit their changes. However we need to handle the case where the user leaves the page through other links... my first attempt is to use jQuery to fire a synchronous $.ajax() call on $(window).unlo...

Jquery DataTables Plugin

Hello Everyone , JQuery noob here ... I have a Question regarding the DataTables Plugin.DataTables link. The Plugin claims that: A common use case for this is when you are displaying live information which could be periodically updated Being a newbie, I cannot figure out how to initialize the Table using Ajax, so that the ta...

Dynamic javascript - onclick not visible

I load html & JS code dynamically from webservice. I use prototype update method: placeholder.update(result.Static.html); // which also include javascript code Immediately after i loaded code, everything works fine: ProRegResetForm(); alert('reset done'); however, from control declared as <a href="javascript://" onclick="javascri...

AJAX Real Time and collaborative

Hi, I am trying to create real-time and collaborative application like - google wave for example. When user1 writes something at the same time it shows on user2 screens. I started a little research,and found some ways to this with Ajax - 1.every X seconds send request to the server and to check what is "happening" 2.timeout - long re...