jquery

Jquery expose overlay function

This function is not working, the popup (div #pop_member) doesn't show. I'm using jQuery Tools library. function run_expire(){ $("#pop_member").overlay({ expose: { color: '#212121', loadSpeed: 200, opacity: 0.9 }, closeOnClick: false }); } run_expire(); I want this popup to show when the page i...

What is the most efficient way to retrieve the column index for rows affected by "rowspan"?

Consider the following table: <table> <thead> <tr> <th scope="col" /> <th scope="col">A</th> <th scope="col">B</th> <th scope="col">C</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Apples</td> <td>Oranges<...

jQuery plugin for "more content alert"?

I'm trying to find a jQuery plugin for the following situation: I have a long DIV box that has a lot of important content in it. I've seen in different places where sites have a light overlay of a bar/arrows of some sort that float on the bottom of the screen if there is more content below, alerting the user that there's more. Any idea...

How do I get multimonth plugin of the jQuery datePicker to load with certain dates already selected?

well im using this script right here: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ and I have a multiMonth plugin and multiple select enabled. I want to be able to on load have certain dates already selected and those dates come from a database I found two possible clues to help me out, but since I have not strictly lear...

jquery: exclude checkbox from selection within table row

I have a table and have a jquery script that does two things: 1) When a row gets moused-over, the background color is changed by adding a hover class 2) The link contained in the row is used to make the entire row a link. <script type="text/javascript"> $(document).ready(function() { var target = 'table.mytable tr.allrows'; va...

jQuery - Drag and drop elements from list into separate blocks

Hi everybody, I'm trying to get an jQuery component similar to this http://www.dhtmlgoodies.com/scripts/drag-drop-nodes/drag-drop-nodes-demo2.html . Basically there is a list of available elements in a list, that you can drag and drop into several blocks. I have quite a bit of JavaScript development experience, but I'm quite new to jQ...

FancyBox Callback Keydown

I have been working on this code, and I can't seem to figure it out. Fancybox's callbacks don't seem to work at all. I have the keyboard bound to the pagination for this gallery. But I want to unbind the keyboard from the table when fancybox opens. When fancybox opens nothing changes.... What to do?? $(document).ready(function() { $('...

Is this an example of selectors?

I see the following piece of code input[type='button']text:visible:enabled:first What does this code do. Which feature of jquery is this? Is this selector example? Any links to read more on it? ...

Use attribute or selector

Which is better to select textbox: input[type=text] or input:text Which to use? ...

Find elements between selectors

Below is my HTML content <HR><HR><H3>Document_1</H3> <PRE>PART2_1</PRE> <PRE>PART2_2</PRE> <HR><HR><H3>Document_2</H3> <PRE>PART3_1</PRE> <PRE>PART3_2</PRE> <PRE>PART3_3</PRE> I want to wrap all the elements between <HR><HR><H3>......<PRE></PRE> into different DIVs. In other words I will have 2 <DIV>. I have tried...

How do I get the length of a textbox?

I am unable to get length of textbox $('input[id$=textinput1]').val().length returns nothing I cannot use $('#textinput1').val().length - although this works Update: My Element looks like this <input id="textinput1" type="text" /> ...

Custom jQuery function not working in Firefox

I have written one custom paremeterized jquery function for fadein and fade out. That function works fine in IE but not in firefox. The function is : jQuery.fn.dcFadeIn = function(newDiv) { var openDiv = newDiv; return $(openDiv).fadeIn(); }; <input type="radio" name="doc3" value="independentCall" class="radioButton" id="indM...

Seamless CSS class transitions with jquery

Hi, I'd like to use jquery.ui's class transition animations on my website. Everything works fine in Firefox, but jquery.ui throws when running the same animation in IE. This thread describes exactly the same problem I am having and mentions that there is a jquery.ui branch by Alexander Farkas which fixes it. Unfortunately the link to ...

How to remove or append box?

I try to remove one box i append in jQuery, but i can't get it removet after i add, sombody can tell me what i dit worng? function appendBox( id ) { $("#listContainer").append("<div id=\"appendbox["+ id +"]\"><a href=\"javascript:removeBox("+ id +");\">remove</a></div>"); } function removeBox( id ) { ...

jQuery AJAX call undefined error with special characters

Hi, I tried to make an AJAX call using jQuery, the data has special characters, e.g {'data':'<p>test</p>'}. It seems failed to pass this data in the first place. It will work if i just pass {'data':'test'}. encodeURIComponent and JSON.stringify failed here due to the special character < > /. Could anyone please help with it? Thanks. $...

Why is jQuery append duplicating my content?

When i use appendBox function below, first time it works fine and the same with removeBox, but second time it doesn't work properly: it duplicates my content. What is wrong? function appendBox( id ) { $("#listContainer").append("<div id=\"appendbox-"+ id +"\"><a href=\"javascript:removeBox("+ id +");\">remove</a></div>"); $("#addB...

How to get the div id's in a div in Jquery?

How do you get the id's in a div? <div id="container"> <div id="frag-123">ass</div> <div id="frag-123">ass</div> <div id="frag-123">ass</div> </div> Thanks! ...

how to stop displaying tooltip on some of the inputs in the form when using jquery tools

hi, im trying to use jquery tools tooltip (http://flowplayer.org/tools/tooltip.html#events%29on a form to show hints to the user. the hints come up on every single input field, even submit button. i would like to disable the hints on some inputs of the form. when i remove the title element from the input tag, the the hint still comes ...

Has anyone ever successfully tracked down uncaught exception during ajax request?

How do ajax know whether it failed or succeeded if server side doesn't echo anything back? $.ajax(error:..,success:..) I met with this exception in my test: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]" nsresult: "0x80040111 (NS_ERR...

What not to forget?

I'm currently working on an ajax-based application using PHP on the server-side and javascript(jQuery) on the client-side. I want to make sure my application is as secure as possible and need to know what things are absolutely necessary to do before launch of such application. What to check and what are the most vulnerable areas? I'm not...