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've written some javascript using jQuery to replace any select lists with a div and ul alternative so that it will give me some more styling control and make the drop downs look the same cross browser. The below code works 99% for me but I have one issue. At the bottom of the code I have had to use .delay() to tell the code in a way to ...
Hello,
I would like to loop trough nested objects. here is my code :
var defaults = {
toolTips: {
printVersion: {
toolTip1: {
link_s: '#mm_tooltip1_link',
tooltip_s: '#mm_tooltip1'
},
toolTip2: {
link_s: '#mm_tooltip2_link',
t...
Consider the following code:
HTML:
<input type='checkbox' />
<div>Click here</div>
JS:
$(function() {
$('input').click(function() {
document.write($(this).is(':checked') ? "checked" : "unckecked");
});
$('div').click(function() {
$('input').click();
});
});
When the checkbox is clicked, the output i...
I've had to implement some changes to a user control that's used in a couple of pages. The user control contains some JQuery to handle a paging task (displays 3 months of data and hides 9 at a time). When the control is loaded, it will automatically display the current quarter and executes this code in $(document).ready().
The problem ...
i have created a menu using jQuery n hoverIntent. You can check it here
http://bit.ly/dnAEtt
To see the problem please, hover One then Two then Three then back to Two (please hover a little fast). All sub-menus will open but sub-menu under Two will not open.
This is a strange behavior, when moving forward sub-menus will open when you ...
Hi All
When using the each() function in jquery for a group of, let's say, 3 radio buttons, how do I retrieve the 3rd button so when it's checked something happens?
Basically how do I choose the element I want to work with from the each() function?
Here is my coding:
HTML:
<form id="orderDefinition" name="orderDefinition">
<fieldse...
I have a table with lots of rows.
I would like to select all rows that does not match some selector.
For example:
$('#my_table tr').each(function() {
if ($(this).find(".class_a.class_b[my_param='" + my_value + "']").length > 0) {
$(this).do_something();
}
});
Is that possible to do the same in easier way ?
...
Just starting learning about ajax requests using jQuery. I've tried looking at other posts on this but not sure how to implement it. Here's the code I have. Right now it's just getting the first 3 items. I want it to get 3 random items from the rss feed it's pulling. Here's what I have:
jQuery(document).ready(function($) {
$.ajax({...
I have to copy and paste the values of input type="button" (ie value="1.25", value="3.50") from a lot of pages. Is it possible using jquery or greasemonkey?
<td>
<input type="button" onmouseout="btnGiocataOut(this)" onmouseover="btnGiocataOver(this)" onclick="aggiungiScommessa(6659, 12, 22, 1, 125)" value="1.25" class="ris">
</td>
...
Hi,
I want to execute a function that is inside the jquery document ready closure.
But I want to execute it from a global context.
e.g.
$("document").ready(function () {
function myFunction() {
alert("test");
}
});
Is there some sort of "path" syntax I can write, to get inside the doc ready closure?
e.g. Here is som...
I am trying to use uploadify and an FTP connection to upload a file. I realized the directories weren't being created because the 'folder' var from the js is not getting passed. I am wondering if this is a scope thing. Anyway, here is the js:
$("#uploadify").uploadify({
'uploader' : '/lib/jquery.uploadify-v2.1.0/uploadify.swf',
's...
Hi guys, I am trying to send a variable with jQuery's getJSON function but it doesn't seem to be going through, I am also unsure of how to get the variable I have just sent in the waiting PHP file, do I just reference it via the name I sent it as, for instance if I send a variable called 'test', can I get it like this, $_POST['test'] on ...
Hi all,
I have an iframe with Js code to run, and i wan't to control the iframe DOM options and css style.
How can i do it? If you wan't to use jQuery, thats ok, but i preffer pure javascript...
Things that i want to modify:
- frameborder
- css styles (float, display, position, overflow)
- no scrolling bar
EDIT: The code run's inside t...
I have the following code:
<div id="elm0" data-color="color" data-size="size" data-more="more">something</div>
<div id="elm1">This element must get elem0 attr</div>
I know that I can get $("#elm0").attr("color") in a var and pass it to $("#elm1") but in my case I do not know exactly what attributes are there. I am looking for somethin...
Hi,
I am using jquery to achieve a variety of stuff in my pages, which includes showing and hiding div elements.
Now I also have the facebook JS SDK in the master page to check whether the user has signed out of facebook and making graph api calls.
The problem is sometimes, it takes a while for response from facebook to come and in th...
Hi, I would like to create something like this using ruby on rails.
Im not tied to jquery but it seems like this his what I want:
http://labs.abeautifulsite.net/projects/js/jquery/fileTree/demo/
The issue is I want to build the tree not based on a file system, but based on ruby code which pulls info from various models. In other words...
Hi,
Is there any ways to add different style class to all li in a ul tag using jquery/javascript/php.
Consider I have a list as follows
<ul><li>a</li><li>b</li><li>c</li><li>d</li><li>e</li></ul>
I would like to add as follows
<ul><li class='cat1'>a</li><li class='cat2'>b</li><li class='cat3'>c</li><li class='cat4'>d</li><li class='...
My master web page contain JS code to override standard alerts with custom jQuery dialog boxes.
<script type="text/javascript" language="javascript">
window.alert=function(alertMessage)
{
$.msgbox(alertMessage, {type: "info"});
}
</script>
In default.aspx web page onLoad method I am tr...
I'm using jQuery boxy plug in for Ajax modal pop up window and and populating it through Ajax. In that window populate combo box using Ajax first time it will populate. But when I close modal window and again open it and hit the button, the combo box does not populate.
I'm using php as server side language.
How to fix it and where am I...