jquery

Roundabout jquery in document Strict

I am useing Roundabout jquery at: http://fredhq.com/projects/roundabout/ in document Strict, but it dont woking in IE. This is my source: HTML: <ul class="roundabout"> <li><a title="#" href="#"><img alt="product 1" src="images/product-1.gif" /></a></li> <li><a title="#" href="#"><img alt="product 2" src="images/product-2.gif" /...

Jquery - Invalid label error

Hi, i get the error invalid label {"ok" : 1, "msg" : "Uh, we had a sligh...ne here now, thank you. How are you?"} my js code $.ajax({ url:"http://my.doomain.com:27080/_hello", success:function(data) { alert('Load was performed. '+data+''); }, dataType:'jsonp', error:fun...

Prevent Jquery autocomplete options from closing after each selection

I am using Jquery UI's autocomplete for multiple selectable values. All is good except the list of options closes after each selection. I would like the options to stay open until the user decides they are done making selections. I have looked through the documentation and I don't see any way to keep the options open. Any ideas? <meta c...

A jquery plugin that will open images,sqf,flv in a lightbox style.

hi, does anyone know of a good stable jquery plugin that will support images,swf,flv that will pop up in a lightbox style type of window. thanks ...

How to position div boxes to each other

See http://www.kaizoku.nl/beta/index.html I have 3 div boxes on my site, each has the property display set to none and with the jQuery function ShowHide I make the box visible on click. Now the problem I have is that the boxes dont respond to each other visibility, what I would like is that when I click for example box 1 which is above ...

apply javascript functions to all objects in a css class

I have this code: $("#SidingPainting").hover( function() { $(this).addClass("ui-state-hover"); }, function() { $(this).removeClass("ui-state-hover"); } ) however I have many, like a hundred divs that I want to apply these same functions to! Is the...

jQuery dialog erratic behaviour

I am having a problem with some jquery dialog code. The window opens ok the first time and if I submit the form, it returns the message in the div. However, if after closing the dialog, I open it again, it still retains the message and has not cleared. Also, when I press the submit button, it will open the php page twice. It seems to do ...

jQuery selector equivalent to ~ but reverse

Hi, This does not seem to be in the docs of jQuery API, so it probably does not exist, but just wanted to get confirmation from fellow experts. Is there an equivalent to $('prev ~ next') but for previous siblings? (No methods, just selectors) ...

Does ASP.Net have a future?

With all browser compatible JS libraries (like JQuery, MooTools), asynchronous data transfer and web services, does asp.net has any future? A very good web application can be designed with loads of web services and JS library based UI. Why one should use heavy ASP.Net? I don't see ASP.Net having any place in future enterprise software de...

jQuery Autocomplete Validation - How to make a selection required?

I'm using jQuery autocomplete on a text box so the user can select a trade. I need to make this a required field. I'm also using jQuery Validation. Here's my autocomplete cpde: $(\"#trade\").autocomplete({ source: " . $tradeString . ", maxHeight:100, autoFill: true, minLength: 3, close: function() { $(\"#form\").val...

javascript/jquery shorthand code and active function

I have this code i would like to know if there is a shorter way of writing it? also which code do i need to make an active tab stay active when on the relevant div thanks $(document).ready(function () { $(".overveiw").click(function () { $(".div1").show(); $(".div2").hide(); $(".div3").hide(); $(".div4").hide(); ...

jQuery Tools Scrollable: add a class to focused item

I'm using the jQuery Tools Scrollable plugin to scroll through some items horizontally. I want to add a class to the focused item in a Scrollable instance. I've determined that could add an '.active' class to the focused item onSeek, and onBeforeSeek I would remove '.active' from the item that has it, but I'm having trouble writing the ...

Using jQuery to add class to first TD on each table row

Hey folks, I have a table I'm working with that is like such: <table width="100%" border="0" cellspacing="0" cellpadding="0" id="tablecontent"> <tr class="tablerow"> <td>This is the td I want to add a class to.</td> <td class="cell2">Stuff</td> <td class="cell3">Stuff</td> </tr> <tr class="tablerow"> <td>This is th...

Trigger event with newly created anchor elements

I'm using the fancybox lightbox plugin in jquery. It hooks into anchor tags such that the following pulls up an image that is chained with the other images referenced with rel = "example_group": <script type="text/javascript"> $(document).ready(function() { $("a[rel=example_group]").fancybox(); }); </script> <body> <a rel...

jQuery: How to make a clear button??

I have a search field, and I need a clear button. I currently have the button, but I don't know how to do it, I have 6 textfields, 2 comboboxes, and 2 multiple select lists How do I clear all of them in one clear function?? I know the HTML way, but I am using Grails and the type="reset" does not work. That's why I want a jQuery way o...

jQuery AJAX post with fileupload

I have a functional page posting data to a Page WebMethod [WebMethod()] public static string sayHello(string pTest, string pText) { return pTest + " - " + pText; } which I call using this jQuery $(document).ready(function () { $("#sayHelloButton").click(function (event) { var name = $('#name').val(); var text = $('#text')...

Silverlight and "z-index"

I have a Silverlight clickable map and a sliding panel (jquery) that drops down. Despite giving the panel a high z-index, it still slots behind the silverlight app. You can see this here: Problem in action... To activate the sliding panel, click "Translate" at the very top left of the window. Is there anyway to let such a "sliding pa...

Detect new $_SESSION variable without refresh. Maybe AJAX?

Hi there, I'm currently building a website which fetches youtube videos and flickr images and lets users comment on them on the website. While having it's own commenting system, the website also has an option to login with youtube/flickr to comment on youtube or flickr with their usernames. I'm doing this by opening a popup window (re...

jQuery 'Enter' and 'ESC' simulation

Hello, I want to simulate a couple of clicks. A 'Save' and 'Cancel' anchor clicks. I have this as my enter simulation $('.group').live('keypress', function(e){ code = e.keyCode ? e.keyCode : e.which; if(code.toString() == 13){ $(this).find('a.saveChanges').click(); } }); and this as my esc simulation $('.group'...

jquery: 2d transform (scaling images) plugin and IE

The following snippet works everywhere it needs to except IE7: //Assess Stage 1 function stage1() { $("#prevBtn").hide(); $('#cs_contentToSlide').animate({ left:0},200, function() { $("#cs_house").fadeTo(10,1); $("#cs_social").fadeTo(10,.3); $("#cs_pie").fadeTo(10,.3); $("#cs_house").animate({scale: '1.1...