ajax

handling a redirect from a cross-origin post in AJAX

We are trying to create a RESTful API that will be hosted on server x.foo.com. Client html applications (built in jquery) will be hosted on y.foo.com. I am dealing with cross-domain issues by setting the Access-Control-Allow-Origin header as described here http://www.w3.org/TR/cors/. So far so good, and I can now successfully make AJAX...

Reset cookie through ajax in php created in php using setcookie method

hi, i have create a cookie using setcookie method in php. i want to reset this cookie using ajax. but this doesn't work. if any one have an idea. please help. Thanks, ...

Servlet and error conditions

Hello I'm writing my first JAVA servlet and I have a question. May be it's important to say that my servlet will be called from Google Web Toolkit (AJAX) First thing that I do is to create PrintWriter and start to write in it my JSON output PrintWriter out = response.getWriter(); ... out.println("["); out.println(" {"); out.println...

How can i provide function as a url for ajax call

Hi guys, Here is my anchor tag, onclick of which i am going to call function which creates dataline chart: echo "<a id = \"#dhf\" class = \"graph_dhf\" href = \"javacript void(0)\" onclick=\"open_page('senddata($unm)', 'my_chart1');\">datalinechart</a>"; here open_page('url', target) function in ajax_navigation.js page which i set...

How to run javascript function from external site C#

I would like to download an image from external site using C#. The problem is image's source is generated on the server side using ajax and is not available from source code of the page. The JavaScript function which is called to generate image's source looks like this: xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==...

send an url parameter to server from url (PHP/JavaScript)_

http://nomilead.com/create.php?uid=abc&amp;key=c79a&amp;web_url=http://dinesh707.blogspot.com/ Here im trying to send the url as a parameted "web_url". The shown is an ajax request that sends to a php server back end. from php end im trying to capture this by $web_url = $_GET["web_url"]; but it does not work. Please help me out ...

HelpBallon.js in ASP.NET UpdatePanel

Does someone know, how to get the HelpBallon.js (http://www.beauscott.com/2008/03/02/helpballoonjs-version-20/) work in an ASP.NET UpdatePanel? After a postback all images are lost. ...

How to redirect a Java ResponseWriter?

For debug reasons, I want to see the ouput of my ResponseWriter directly in standard output. Because the response will be processed by JavaScript I am not able to see the output there. Is there an easy solution to redirect the ResponseWriter to standard output? ...

Jquery and livequery

I have some ajax that pulls information into a table and i am trying to use livequery to add a class to every second row $('a').livequery('click', function(event) { $(".scroll-pane table tr:odd").addClass("Odd"); }); The problem is that the class is only added for a short period of time and then it simply vanishes? I am using jquery ...

this.value is working on Firefox, but not in Internet Explorer?

I have an onChange event on a select. When I do an alert(this.value), it's working on Firefox, but not on Internet Explorer. Why not? This is the code: <select onchange="new Ajax.Updater('fiches', '/~project/index.php/folder/fiche', {asynchronous:true, evalScripts:true, parameters:'fiche=' + this.value});" class="input" id="fiche" nam...

Prototype Ajax call yields 12152 in IIS but only when running IE

We have an ASP.NET 3.5 app that relies on Prototype for Ajax calls. It is hosted on IIS 6 in Windows 2003 Server. It uses Integrated Windows Authentication. Here are the scenarios in which it works: Running on default site Running on new site when client is running Fiddler and IE Running on new site when client is running Firefox Ru...

Best Server-Side Data Storage Method for Simple Data

Hello! I'm coding a website that involves storing very simple data, just a very long list of names with no additional data, on the server. As this data is so simple, I don't really want to use MySQL (it would be a bit too clunky) so I'm asking what's the best way to store very simple data on the server. I definitely would favour speed ...

Visual Studio 10, JavaScript intellisense inside javascript.js file, and where is the MicrosoftAjax-vsdoc.js

I can get javascript intellisense going from and aspx or master page ie <script src="../../Scripts/jquery-1.4.1-vsdoc.js"type="text/javascript"></script> <script type="text/javascript"> $.isFunction( </script> gives me a drop down in vs2010. I do all(most) of my js coding inside a js file. How do I get intellisense drop do...

How can I keep AJAX from complaining when the window closes?

I have this... well okay not really this but this is the important stuff: window.onbeforeunload = function() { return 'you sure?'; } ... and I have this inside my $.ajax() calls: error: function(xhr, textStatus, errorThrown) { if (textStatus == 'timeout') { HandleError('Connection error.'); return; } ...

MS Ajax, Visual Studio, vsdoc MicrosoftAjax-vsdoc.js

Is there a vsdoc for ms ajax (MicrosoftAjax-vsdoc.js) ? ...

How do I remove the square brackets at the end of a JS variable name during AJAX calls?

I currently have the following javascript array: var stuffs = ['a', 'b']; I pass the above to the server code using jQuery's load: var data = { 'stuffs': stuffs }; $(".output").load("/my-server-code/", data, function() { }); On the server side, if I print the content of request.POST(I'm currently using Django), I get: 'stuffs...

MS AJAX HTMLEditor - Customize the Toolbars

I'm using the MS AJAX HTMLEditor component on a web site. However, I want to be able to customize the toolbars that are available to users. From what I've read, it seems to be handled with CSS but the documentation doesn't really provide exact customization code. I'd like my editor to look exactly like the one at: http://www.asp.net/ajax...

ajax response does not write to html page what to do?

languages used: html, javascript/jquery, and php 5.2 So I created this function that onclick creates a "group". For simplicity, we'll say this is a group (aka the response from ajax.): <div id="group1">Group #1</div> This is where the groups go: (html page) <div id="groups"> <!-- groups go here --> </div> So the user creates g...

HOW-TO: remote file access from a web server ?

Hello Everyone, We have a web application which which is deployed and used within an intranet. The application reads in text files from a specified location on the web server itself. Now we have a requirement of reading in text files from other machines as well, so i'm exploring possible options to implement this. Possible options i'v...

How can we send a HTTP POST request by using JavaScript?

How can we send a request using the HTTP POST method via javascript...without submitting a form? ...