ajax

how to upload file using javascript

how to upload a file using javascript ...

How do I host a Google gadget? How does it work?

I just spent 5 hours by checking Google gadgets websites and FAQs, but I still have no idea how to host a gadget. What I've figured from reading the Google documentation: I can write gadgets with XML, JavaScript etc.. Gadgets can be added to iGoogle etc.. Google can host the gadgets for you. Gadgets can be hosted anywhere else??? Al...

How to serialize data from processing.js to rails application ?

Hi I am creating a simple canvas using processing.js , how to pass values from rails application to Processing.js void drawBox(int bx, int by, int bs, int bs){ strokeWeight(3); stroke(50,50,50); // Test if the cursor is over the box if (mouseX > bx-bs && mouseX < bx+bs && mouseY > by-bs && mouseY <...

How to go about validating AJAX cascading drop down lists

Hiya, I am using the AJAX Cascading drop down list but want to add event validation e.g. the compare validators. As the cascading drop down list requires the page event validation to be disabled what is the best way to do the validation? Thanks Andy Validation Attempt: I have tried to use a custom validator which calls a Javascrip...

javascript ajax variable question..

Hey there, new to AJAX, JS.. Im trying to add to a Javascript/Ajax search script that I've put together. Previously, it had a single search field, called search_word, I added one called search_date. $(".search_button").click(function() { var search_word = $("#search_box").val(); var search_date = $("#datepicker").val(); var ...

Cross domain AJAX requests using JQuery and YQL

Hi , I need to use YQL (Yahoo Query Language) to perform a cross domain ajax request then bind the XML response into a JSON object and retrieve a value from the XML. The link shows how this is done using the YQL service as a proxy for cross domain requests: http://ajaxian.com/archives/using-yql-as-a-proxy-for-cross-domain-ajax For e...

ASP.NET MVC pagination problem?

OK, This is starting to get mildly irritating. I tried to implement Twitter style paging using ASP.NET MVC and JQuery. My problem is that when not using Request.IsAjaxRequest() (for users with javascript turned off) it works fine, obviously posting back the whole page. When I run the code for Request.IsAjaxRequest(), it skips entries...

How to remove HTTP specific headers in Javascript

Is it possible to, before sending a http message, remove some specific http headers using javascript / XmlHttpRequest ? I'm using a proprietary browser, so there's no way to do it using browser specific solution. For example, I want to remove the header 'Authorization' before send the message POST /social/rpc?oauth_version=1.0& ... HT...

Should we be using JQuery for Mobile AJAX Page Navigation?

I am developing a mobile site that will load page content using AJAX if JavaScript is enabled. I have been using the JQuery load() functionality to load page contents from other static pages but I feel I am wasting precious bandwidth loading the entire JQuery library when I'm only using a small piece of it. With this said should we be av...

Jquery dependent dropdown doesn't work in IE

I have a 3 dropdowns: countries, states, and cities. States and cities are dependent of the previous form and loaded via AJAX. In Firefox and Chrome everything is ok, but in IE (8 in my case) when I select a state, the cities dropdown isn't loaded. It is like IE don't detect the change. It is not a load problem, because I have tested ...

Ignoring old multiple asynchronous ajax requests

I've got a custom javascript autocomplete script that hits the server with multiple asynchronous ajax requests. (Everytime a key gets pressed.) I've noticed that sometimes an earlier ajax request will be returned after a later requests, which messes things up. The way I handle this now is I have a counter that increments for each ajax...

jQuery getJSON response null for Firefox, works for IE

$.getJSON(service + "/GetJobTags", { tag: "a" }, function(json) { $.each(json, function(i,val) { alert(val.Title); }); }); It calls: http://127.0.0.1:20087/ClientService.svc/GetJobTags?tag=a This is probably of note, the service is running on a different port to the client application, wh...

jQuery ajaxForm "h is undefined" problem

I have a form that is brought up in a ajaxed modal which I am using for updating user details. When the modal loads I call a js function: teamCreate: function() { $j("#step1,form#createEditTeam").show(); $j("#step2").hide(); var options = { type: "get", dataType: 'json', beforeSubmit: before, // pre-submit callback succe...

JSon/Jquery request with a setTimeout always returns a "null" result? (for Twitter Search API)

I make a call to the twitter API. 100 posts are retreived + a properties that tells me what the next page to call is. So I wait 5 sec. and call that next page, but the JSon results in the callback function is always null the second time... I think it's probably a JQuery problem... Here's the code to test it if you want : <html> <head> ...

Ajax request gets to server but page doesn't update - Rails, jQuery

So I have a scenario where my jQuery ajax request is hitting the server, but the page won't update. I'm stumped... Here's the ajax request: $.ajax({ type: 'GET', url: '/jsrender', data: "id=" + $.fragment().nav.replace("_link", "") }); Watching the rails logs, I get the following: Processing ProductsController#jsrender ...

C# webBrowser control cannot find htmlElement after Ajax webpage update or in frame

Using webBrowser control in a winForm. but when the webpage is updated by Ajax or in a frame, I cannot use webBrowser1.document.getElementById et. to find that htmlElement. the element also won't show in the View->Source code in IE. any one can help? the untimate purpose is to find that htmlElement and simulate a click or other function...

how to upload a file from database without user interface in php

Help!!! i want to upload a file from database(or from local m/c) to server in php without user interface. Is it possible. Please Suggest. ...

develop an Ajax client like google maps with GWT

Would it be possible (and recommendable) to develop an Ajax map client like Google Maps with GWT? Would it be easier to use something like JQuery? ...

How to disable scrolling the document body?

I have a HTML which has lot of content and a vertical scrollbar appears as soon as the HTML is loaded. Now from this HTML a full screen IFRAME is loaded. The problem is when the IFRAME is loaded, the parent scrollbar still persists, I want to disable the scrollbar when the Iframe is loaded. I tried: document.body.scroll = "no", it did...

How do you update a TextField from a grails remoteLink?

Existing markup: <g:textField name="identifier"/> <g:remoteLink action="newId" update="identifier">generate new id</g:remoteLink> Corresponding HTML markup: <input type="text" id="identifier" name="identifier"> <a onclick="new Ajax.Updater('guid','/webapp/domain/newId',{asynchronous:true,evalScripts:true});return false;" href="/webap...