jquery

iphoto-like thumbnail view with jquery

Hi, I'd like to create an iphoto-like album thumbnail viewer, just with words, not photos. For example, when you mouseover over a div box, the div box text changes as you incrementally move right with your mouse. Does anyone have an idea about how to begin developing something like this? ...

Dynamically create checkbox with JQuery from text input

In my cms I have a checkbox group for categories. I would like to have a text input below that where the user can input the name of a new category and it will dynamically add a new checkbox with the provided name used for both the value and the label. How can I do this? ...

confirmation dialog in chrome -JQuery

I have a frameset with two frames: frameA and FrameB. frameA has an onbeforeunload method set. When the browser is loaded with the frameset and the user hits the REFRESH button the onbeforeunload method in frameA does not get called. Apparently only the onbeforemethod in the frameset page itself gets called because if I put the onbeforeu...

JQuery - IE6 - How to FadeOut and FadeIn simultaneously ?

I have a sequence of position absolute div, say <div>...</div> <div style="display:none">...</div> <div style="display:none">...</div> <div style="display:none">...</div> I wrote a simple slide code using jQuery currentDiv.fadeOut('slow'); nextDiv.fadeIn('slow'); It works perfectly in FF/Chrome/Safari/IE7/IE8, but not in IE6. I fou...

Using jQuery in ASP.NET MVC Content PlaceHolder

I have included jQuery as well as colorize plugin reference in my master page and I want to use it in my Content pages. My scripts are located in Scripts folder in MVCApplication. I am referencing it in my master pages as : <script language="javascript" type="text/javascript" src="<%= Url.Content ("~/Scripts/jquery-1.3.2.min.js")%> "...

Ajax XML issues with XSS validation

While using Ajax in web applications we use XML to transfer the data between server and client. However XSS validation comes into picture, So questions are, 1. Is passing XML like this is correct? 2. Are we exposed to security issues if we turn off XSS validation? 3. Can passing Ajax request with header (content-type = application/xml) ...

Find tags with no classes and add a class

Hi I need jQuery to add a class to any form element that has no class allready. I made up a function, the hasNoClass. Is it possible to do in the real life? Pseudo code: add class to "classless" form tag jQuery("form").hasNoClass().addClass("gotClass"); Alternatively it can be done by a "add class to 3rd form start tag on page. No clu...

jquery find('object') problem in ie6

I have a problem with ie6 when searching for an inserted object with jquery. I do something like this: var obj = $('<div></div>').html($('#embedded_video').val()).remove().find('object'); where in the embedded_video textbox i insert an object taken from youtube or so. This works great in FF and IE7&8 but does not seem to work in ie6. ...

iframe background image showing fine in Firefox but not in IE

Why IE not showing BG mage like firefox in Iframe? I do not have access of iframed page. any CSS or javascript solution ...

jquery alert plugin , jConfirm

Hi i got this script which works perfect when i am not using jquery's alert plugin. But i need to use alert plugin and after learning from a tutorial i implemented it. But the script does not seem to work. Can you suggest where i am wrong..Thanks <script type = "text/javascript"> $(document).ready(function() { var pos = $("tr.veri...

Combine Events - Event Handler Passing

I can't for the life of me figure out how you would do the following: $("select").change(function() { var cb = $(this).parent().next().find("input[type=checkbox]"); $(this).val().length > 0 ? cb.attr('checked', true) : cb.attr('checked', false) }); $("input[type=text]").keyup(function() { var cb = $(this).parent().next().find("in...

Validating broken up date width jQuery Validation plugin

jQuery Validation plugin is used to validate all form data: http://docs.jquery.com/Plugins/Validation Have 3 select fields for birth date: day, month, year. First: How i can make sure that user selects all 3 fields and 'invalid' icon is displayed only when one of all three fields is not selected. For example, now i have those 3 select ...

Update textarea with jquery

Trying to get current data from textarea with jquery and replace it with what server returns. so far q value is picked up right, instead of updating it with server returned content, it just replaces it with '&nbsp;' q = $('textarea#id_message').val(); alert(q) $("textarea#id_message").val('&nbsp;').load( '/process/url?html=' + q ); Up...

Jitter in Jquery Accordion Implementation

Please check out http://jsbin.com/omuqo for a demo of this issue. When you open a panel by clicking on the handle, panels below slightly jitter throughout the animation. In the demo, the below panels should remain completely still since all panels are of equal height. When you have a more complex accordion with panels of varying height...

Toggle results from a database

Hi, I'm pretty new to jQuery, php and Databases, but i managed to create a database en retrieve data with php from that database. After a searchterm is filled in, The data (retrieved from the database) will be displayed in the resultpage. For example: when searching for Netherlands you will get a couple of cities as a result. These ci...

JavaScript puzzle to solve : window.confirm = divConfirm(strMessage)

Scenario is : old site which has lots of JS code already written. If user want to change all the alert messages to new age jazzy Div based alert which are very common using JQuery, YUI, Prototype... etc. There are mainly tree JS dialogs 1. alert To changes this its simple we just have to write new funtion which will show the div po...

Self teaching resources for Jquery

Hi I'm a php developer looking to learn jquery, with no Javascript experience. Ideally, I would like a beginners self teaching guide in a book, that I can use as a reference. Any suggestions? ...

Basic drop-down menu (jQuery)

I'm using this currently: $(document).ready(function () { $('ul#nav > li').hover(function () { $('ul:first', this).show(); }, function () { $('ul:first', this).hide(); }); $('ul#nav li li').hover(function () { $('ul:first', this).each(function () { $(this).css('top', $(this).parent...

can i have dynamic date pickers using jquery by class selector

i have a dynamic html table and in one column i want a jquery ui date picker. A few questions: Can i have datepicker by class instead of id: $(document).ready(function(){ $(".datepicker").datepicker(); }); Can i create them on the fly if i i am adding in textboxes with this class using jquery? ...

addClass if ul exists (jQuery)

I'm building a simple dropdown where I'd like to add a class to parent if UL exists: HTML: <ul id="menu"> <li><a href="#">Parent 1</a></li> <li><a href="#">Parent 2</a> <ul> <li><a href="#">Sub 2.1</a></li> <li><a href="#">Sub 2.2</a></li> </ul> </li> </ul> So I'd like to: hide all nested (ul#menu > li > u...