These are 2 questions.
The first one:
I have an HttpHandler returning a zip file to download.
I have this line of code:
context.Response.AppendHeader("content-disposition", "attachment; filename=myzipfile.zip");
The question is: should I declare the ContentType (application/zip) also ?
The second question is:
I want to call this Http...
I have an httphandler that creates a zip file and returns it for download.
context.Response.AppendHeader("content-disposition", "attachment; filename=myfile.zip");
Is it possible to call the handler from a jquery ajax call?
If yes, what kind of dataType should I declare?
Thanks
...
This is a payment form to be posted to Worldpay payment gateway. It has all the parameters as per the WorldPay documentation and it works fine if directly posted.
But, now I am trying to
AJAX post the form first to my site (using jquery.form, and that part is working fine) then do some database operations
and then change the action...
Hi I hava a big problem. I have to get some JSON form localhost:8080.
The server side is a restful based jax-rs server.
@Path( "/m" )
public class M {
@GET
@Path( "{id: [a-z]{1,4}-\\d{1,4}}" )
@Produces( "application/json" )
public Response getCar ( @PathParam( "id" ) final String id ) {
final ResponseBuilder builder;
b...
I need to get the JSON object data out of the callback function so that I can process it later in page, not within the callback as I am now. It must be obvious to everyone else as I can't see anything written about it. Can anyone tell me how to do it?
Here is my code:
<script type="text/javascript" src="/site_media/js/jstree/_lib/jquer...
Ok so I have an autocomplete field that is making an ajax request every keystroke....which can slow things down alot. If you visit here and use the
email: [email protected]
pass: test12
If you have firebug open and start typing fast you will see all the see all the ajax requests. My question is can i cancel the previous request if there ...
$('#request_song').autocomplete({
serviceUrl: '<%= ajax_path("trackName") %>',
minChars:1,
width: 300,
delimiter: /(,|;)\s*/,
deferRequestBy: 0, //miliseconds
params: { artists: 'Yes' },
onSelect: function(value, data){
artist = $('#request_artist').val(); //this will return "The Killers"
//make an ajax request to "...
Hi,
I'm using the JQuery Autocomplete in one of my forms.
The basic form selects products from my database. This works great, but I'd like to further develop so that only products shipped from a certain zipcode are returned. I've got the backend script figured out. I just need to work out the best way to pass the zipcode to this script...
In JQtouch, any link is automatically convert into ajax call. I want to detect the moment the ajax call was send. This is so that i could insert a loading screen to let users know that the system is processing the submission.
I search through jqTouch API and apparently they only have callback events for page animation. Am i missing out ...
Please, show me how to get a random question, '$randomQuestion'(i.e., "What color is the sky?"), and matching answer, $matchingAnswer, from the quizID section of my SQL database, and then use jQuery to refresh the form, only? I started by creating the form and some JavaScript that may work.
FORM:
<form name="$quizID" action="http://as...
I was looking around for jQuery grid recommendations and came across this question/answers:
http://stackoverflow.com/questions/159025/jquery-grid-recommendations
In looking through the many jQuery grid solutions out there, it seems they all want to have the entire data set on the client. If I have a large data set (thousands/millions o...
Trying to send an array from:
<select name='galaddvenn[]' class='sel_add vl hidden' multiple='multiple'>
<option value='53'>name1</option>
<option value='352'>name2</option>
<option value='632'>name3</option>
<option value='543'>name4</option>..etc
</select>
...to/from Jquery with:
var ar = $("select#galaddvenn").serialize();
...
I have a UL with a bunch of LI's. Now, when I click on an LI I do an Ajax call and get a SPAN returned to me.
What I'd like to do is move the LI under the clicked one down and then fade in the new SPAN in the hole produced by moving the LI down.
I'm kinda not allowed to use an accordion in this instance if it can at all be helped.
Do...
Im trying to send a custom HTML object from my ASP 2.0 website to my webservice through jQuery ajax. But I cant get it to work.
Everything is parsed correct in my webservice when I drop the ObjectHTML part. But I get an error when I add the ObjectHTML part.
Is it possible to send custom javascript objects?
function SavePage() {
v...
Hi, i m using the "Flexigrid" to create the Jquery Grid (http://www.flexigrid.info/).
i m using it with the C#. from web site i have downloaded the XML file and using it in Jquery code.
My code is:
<script type="text/javascript">
//var lastsel3;
jQuery(document).ready( function() {
jQuery("#test").jqGrid( {
...
I have this AjaxQueue that i am trying to implement but I am having problems and even looked at the documentation and I am still unclear on how to implement it. I read it twice and still having troubles
Here is my code:
I want to wrap this in the Queue manager
$('#request_artist').autocomplete({
serviceUrl: '<%= ajax_path("artistNam...
I'm trying to implement flowplayer.org's JQuery tooltip
http://flowplayer.org/tools/demos/tooltip/form.html
into my webapplication (C#.NET).
I have the following script at Master.Page:
function createTooltip() {
// select all desired input fields and attach tooltips to them
$("#aspnetForm :input")...
Hello - We are trying to implement a functionality in our ROR application such that we are able to drag and drop rows between different tables. We tried using Scriptaculous Drag and Drop method but it does not works inside the table tags.
Can you point us to other alternatives like JQuery etc which might be useful.
Thanks
Supreet
...
I'm using the following jQuery plugin and it executes when there's a click action on the specified element :
http://www.andresvidal.com/labs/relcopy.html
I also created a click function for the same element, but I expected it to execute after the plugin. However that isn't the case, the click function always executes first, thus causin...
Below is the jQuery code I am attempting to use. It works well in Firefox, Opera, Chrome, Safari, but not IE7. I was at first suspicious that this was because of the :hidden selector not being supported in IE7, so I tried to simply .show() and .fadeIn() the element without conditions (you can see this from the commented out area).
if (...