jquery

Making a lightbox support printing on web page

I know the idea is to use a separate stylesheet for printing that hides everything other than the lightbox when the user clicks the print button on the lightbox. It sounds easy but there are always some obstacles. So I would like to know if there is any working example that supports all major browsers. I searched in google and found ma...

jQuery and ASP.NET drop down problem

I have a drop down in an ASP.NET page. Whenever the value of the drop down changes an ASP.NET AJAX request is made to the server. I also attached a jQuery "change" event handler to that list to execute some code when the value is changed. So, probably two different event handlers are being attached to the same drop down, and it's causing...

how to compress more jquery file?

is there any way to compress more jquery base file? what i have is about 56K and i need a more light file because of dial-up speed(56k). ...

Adding delay to mouse out function.

I have one drop down menu, <ul> <li><a>link 1</a> <ul><li><a>link 1</a></li></ul> </li> </ul> I am using the following JS to use hover and show child menus. I want to add delay to the mouse out function (when the class of the LI removed) about 500ms, $('li').hover(function(){ $(this).addClass('over'); }, function(){ $(t...

jquery: analytics dashboard creation ?

need a dashboard to display fancy pie charts and other quantitative measurements displayed in graphical format.... any suggestions for jquery ? ...

Can i read data from web.config using JQuery ?

Can i read data from web.config using JQuery ? ...

Passing data to a jQuery click() function

Hi I have a simple span like so <span class="action removeAction">Remove</span> This span is within a table, each row has a remove span. And then I call a URL using AJAX when that span is clicked. The AJAX event needs to know the ID of the object for that row? What is the best way of getting that ID into the click function? I thoug...

JQuery $.getJSON appends a question mark to the request URL

I have the folliwng JSON request code on an ASP.NET MVC web application: var userID = 'id=' + $('#namesList').val(); $.getJSON('/Person/GetPerson/', userID, function(data) { $('#collar').text(data.collarNumber); $('#name').text(data.Name); $('#email').text(data.EmailAddress); }); Thi...

Jquery menu with less code

I'm using Jquery for menu created like: <div class="prof_info1">home</div><div class="prof_info2">info2</div><div class="prof_info3">info3</div> And Jquery code like: $(document).ready(function(){ $(".prof_info1").unbind("click").click(function(event) { $("#main").html('<img src="img/spin.gif" class="spin">'); location.replace("?&id...

How to select the IMG tag based on the attribute?

<IMG height="160" alt="Web Content Image" src="../image/journal/article?img_id=16505&t=1273484793531" width="240" pngSet /> I have the this code for the image , and I want to select the image based on the attribute "pngSet" I am trying this , but not working. $("img[pngSet='']").css('border' ,'1px solid red'); ...

jQuery date picker not persistant after AJAX

So I'm using the jQuery date picker, and it works well. I am using AJAX to go and get some content, obviously when this new content is applied the bind is lost, I learnt about this last week and discovered about the .live() method. But how do I apply that to my date picker? Because this isn't an event therefore .live() won't be able to ...

colorbox in IE8 throwing a wobbly

hi in FF and chrome, safari it is of course totally fine.. IE8 however, in compatability mode or not, doesnt load the overlay over the top (it just sits a t the top, scrolling the content down - although i guess this is because the overlay is at the top of the markup).. and it doesnt show the image im attempting to show , but shrinks the...

hide a element when i click outside

Hi, i have an element in my page. <div id="element">try</div> I want hide it when i click in others elements in the page. How can i do it? ...

jQuery Autocomplete - Multicolumn and Return Data rather than Value

I am currently using the DevBridge jQuery Autocomplete plugin - it works fine as is, however I would like to display the returned information in a multi-column view, but yet when clicked only return the first value. HTML <form class="form" action="index.php" onsubmit="alert('Submit Form Event'); return false;"> <div id="selection"></...

Jquery stop load function after too many clicks

How can I stop loading function after user is clicked too many times on link? Jquery code looks like: $(document).ready(function(){ $(".menu_rfr").click(function() { $("#main").html('<img src="img/spin.gif" class="spin">'); location.replace($(this).attr('rel')); }); $(".menu_clickable").click(function() { $("#main").html('<img src="i...

Attach fancybox/lightbox/idontknowbox function on an element

I'm developing a jquery gallery, and I want to parametrize the highlighter function to support any kind of lightboxes (fancybox for example). In my defaults I did something like: $.fn.mygallery.defaults = { functionHighlighter: null } so in the code, creating the item, I'll check this property, and if it's setted to a function, I ...

How to remove class Conditionally ?

$("li").hoverIntent({ sensitivity: 3, interval: 200, over: addOver, timeout: 500, out: removeOver }); function addOver(){ $(this).addClass('over').children('a:first').addClass('active');} function removeOver(){ $(this).removeCl...

Problem with jQuery selector and MasterPage

Hi, I have a problem with a master page containing a asp:textbox that I'm trying to access using jQuery. I have read lot sof thread regarding this and tried all the different approaches I have seen, but regardless, the end result end up as Undefined. This is the relevant part of the MasterPage code: <p><asp:Label ID="Label1" Associate...

jqTransform and ASP.NET does work, why ?

I get this message while pressing on ASP:Button in IE 8 in Compatibility Mode while my form has jqTransform applied to it. "A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$ButtonRegister="register..."). " Without it works fine, if i don't override Compatibility Mode with <meta http-...

jQuery focus on content of input / textarea - not working properly in IE8

I want the input fields on my site to select all the text when the user first clicks on them, but in IE8 the text is selected for a split second then reverts back to normal. Works fine in FF. My js code: $(document).ready(function () { //HTML DOM document is ready // Add this behavior to all text fields $("input[type='text'], t...