I have a controller (Spring-MVC) that generates a PDF report on a get request. The controller sets headers like "application/OCTET-STREAM", "Content-Disposition", "attachment; filename=\"" + filename + "\"" so that the user gets the save/open dialog forced to them. The controller gets a pdf generated and writes the pdf bytes directly t...
Where can I find an image uploader similar to the one here? I need this to work with PHP or RoR.
...
I'm making board game and i'm using jquery ui draggable effect for figures. On drag start I send ajax request to other page where I generate droppable places soo the figure can be drag and droped only on those particular places, but the problem is I must move figure twice to take effect. Does anyone know how to solve this problem?
I wou...
Perhaps it's a syntax error, but I never assume that. I have a -dead- simple AJAX test set up:
http://www.mcphersonindustries.com/bucket/api.php is a file with simply:
<?php echo "test"; ?>
And I have Apache as localhost with this jQuery bit running:
$(document).ready(function() {
function doAjaxPost() {
$.ajax({
ty...
I'm looking to post the following type of data to a server using JQUERY & Coldfusion:
foodID - int
foodDESC - text html text from a WYSIWYG (CKEDITOR)
--there will always be just 1 foodID and foodDESC per POST to the server but there can be a variable number of:
locationID - int
LocationDesc - text
--There can be 0-8+ of these.
Should...
I have a .each() that is running a loop to find the following below..
Given the following which builds during the .each loop
id - desc
313 - blah blah
213 - blah blah
313 - blah blah
323 - blah blah
How can I form this data in JQUERY to be posted to the server (coldfusion)
...
Hello,
I am designing a web site that plays music. The music player itself will be in a separate window along with the now playing list. I want to be able to refresh the now playing list when a new song is added to it from the main window. Essentially I need to figure out how to communicate between the two windows. I was only able to f...
I'm using json2.js to create a JSON object which JQUERY posts to the Server. The object looks like:
[{"locationID":"16","locationDesc":"XXXX"}, {"locationID":"111","locationDesc":"XXXX"}, {"locationID":"12","locationDesc":"XXXX"}, {"locationID":"11","locationDesc":"XXXX"}]
Problem here is that XXXX sometimes contains quotes like "we'r...
I've been having problems trying to setup APE on the server side... are there any video tutorials or any tutorials which are more detailed than the one provided on their site?
...
EDIT: This question is now redundant since Twitter no longer supports basic auth. I've left it up since it's relevant to anyone doing basic auth via AJAX on other services.
I'm developing a javascript App that needs, as part of its functionality, for users to be able to update their Twitter status. The App is designed to work on mobil...
hey all,
im making a username availability check in ASP.net using ajax updatepanel, but i keep getting the following error
The control with ID 'UserNameUP' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
im using the create user wizard, to create a new user but i want to check i...
Hi I am trying to scrape other people web pages (for the forces of good not evil). I am currently trying to do this with javascript/jquery from with in a browser. I am finding that the no data is returned from the jquery.get() success call back function.
My code.
$.get('http://www.google.co.uk/',
function (data, textStatus, XMLHtt...
I was looking at this answer and some other answers http://stackoverflow.com/questions/199099/how-to-manage-a-redirect-request-after-a-jquery-ajax-call/199156#199156
I can not get this to work. i check the XMLHttpRequest object in both success and complete. In both cases when there is a redirect instead of getting a 302 i get a 200 and ...
[Updated a bit] I have a Task model that has a :completed boolean attribute. If I click on it I want it to execute the 'finish' method. The main problem is that I am displays a series of checkboxes in a list and subsequent checkboxes after the first one are ignored. The method is never called for the given task/checkbox combo.
I have th...
Hi
Can any one tell how to use AJAXControlToolkit's Tab container in Master page.
My application has more pages, if I use tabcontainer i can include contentplace holder
for each panel.. but the problem is only the first page is being displayed for me,
when i click on the second tab nothing is being displayed ..
here is my application ...
While trying to GET a JSON, my callback function is NOT firing.
$.ajax({ type:"GET",
dataType:'json',
url: myLocalURL,
data: myData,
success:
function(returned_data){alert('success');}
});
The strangest part of this is that
my JSON(s) validates on JSONlint
this ONLY fails on IE7....
I have read-only Silverlight and AJAX apps which read static text and XML files from a PHP/Apache server, which works very nicely with features such as asynchronous loading, lazy-loading only what I need for each page, loading in the background, developed a little query language to get a PHP script to create custom XML files etc. it's pr...
I'm trying to get client-side javascript objects saved as a file locally. I'm not sure if this is possible.
The basic architecture is this:
Ping an external API to get back a JSON object
Work client-side with that object, and eventually have a "download me" link
This link sends the data to my server, which processes it and sends it b...
I have developed an AJAX based game where there is a bug caused (very remote, but in volume it happens at least once per hour) where for some reason two requests get sent to the processing page almost simultaneously (the last one I tracked, the requests were a difference of .0001 ms). There is a check right before the query is executed ...
I am learning jQuery and trying the following but the parameters are so foreign to me with all the embedded quotes I think that is my problem. Can someone explain the parameters and where quotes go and possibly rewrite my parameters line? (This is a live site to see the required parms).
function AirportInfo() {
var divToBeWorkedOn = '...