jquery

jQuery - Compatibility Problem with Internet Explorer 7 and general buggy behaviour.

Hi, I have already asked some questions about this topic, I have made some modifications that users here suggested but I still can't resolve the problem. I've little known of JavaScript, I just modified a code from another page. I have this code that dynamically slides up a Div over an image when mouse over it. You can check it out in t...

How to structure my javascript/jquery code?

I am toying around with a pretty intensive ajax based jquery web application. It is getting to a point where I almost loose track of what events that should trigger what actions etc. I am sort of left with a feeling that my javascript structure is wrong, on a more basic level. How do you guys structure your javascript/jquery code, the e...

How can I intercept the F5-button-clicked event using jQuery?

Hi, I want to implement keyboard shortcuts using jQuery. Specifically, I want to fire an event when e.g. F5 is clicked. What kind of issues do you run into with keyboard shortcuts? Also, any online chart that has all the keyboard mappings to numbers? ...

JQuery AutoComplete results format?

I have a string of values separated by a space that I return to the Jquery call, but it does not separate the words into rows. Should the data be returned as a string or a list or something else? ...

jquery - Multiple class actions

I've a simple sliding box slide up over an image to display some info when you hover over the image. This works fine but i have multiple images on the same page so when you hover over any of the images all of the boxes slide up. Is there a simple way to sort this so only the image you hover over slides up? Or is it basically creating t...

jquery plugin or script to automatically cycle through accordion

Hi there everyone! Please could someone advise me regarding this. I am currently using the accordion plugin from bassistance.de working successfully when you hover over each item header to reveal each child content. I am using an unordered list for this (4 list items, each with 2 child items) This is fine, but the requirements now call...

jQuery - how to select a tr that contains th's?

Title pretty much says it all. Given a table like <table> <tr> <th>Header 1</td> <th>Header 2</td> </tr> <tr> <td>Datum 1</td> <td> Datum 2</td> </tr> <tr> <td>Datum 1</td> <td> Datum 2</td> </tr> </table> How to select the row which contains the th headers and no other? ...

Best way to preserve user-generated HTML across a post request?

I am building a site that is an interface used to create XML files that are read as input by a server side program. The website allows users to dynamically create blocks of HTML. Each block can be thought of as an object and contains several input fields. When the user submits the form, the data is turned into an XML file. What is th...

A serious issue with jQuery and ActiveX security?

Has anyone not noticed that JQuery uses ActiveX controls? When a user has limited their activex security they will get script prompt popups and a yellow bar accross the top of their browser window. -This setting is by default on Windows Servers. -Internet Cafe's dont support Active X. -Company internal workstations dont support this. ...

jquery select image

I am looking to allow users to select a pre-uploaded image to a user generated web page. I have a list of the available images, so I could easily do this with a select control, however, I'd really like to allow the users to select from a pop up of thumbnails, rather than text, then have that populate a text form element with the resulti...

Jquery accordion plugin

Hi : I am use Jquery accordion plugin. I need to use my own header icons, according to doc, i need to create css class with background image. so i did this in my css file. .normal_arrow { background : url(../images/arrowonly.jpg); } .circle_arrow { background : url(../images/circle_arrow.jpg); } .circle_arrow_down { back...

jquery color animation throws Invalid property value intermittently

I'm trying to animate the background for an ASP.Net hyperlink to do a yellow fade on an update panels refresh. So far it works almost all of the time, but occasionally a javascript error is thrown "Invalid Propery value." and it debugs into the jquery color plug-in code to this line... fx.elem.style[attr] = "rgb(" + [ Math.max(Mat...

How would I modify this replace/regex from jquery.autocomplete so it only bolds the first match?

I don't know enough to change the following so that it only puts <strong> around the first found string matching the term: highlight: function(value, term) { return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\]){1}/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</stron...

Is possible to have more granular control over jQuery UI Dialog Widget's show/hide method?

Currently it seems that I can only use effects in their most basic form when using the Dialog widget. For example, the following will use the drop effect for both showing and hiding the dialog box: $('#dialog').dialog({show:'drop', hide:'drop'}); However, the default for the drop method always drops to the left. What I really want i...

How To Overlay a Div on a Container with jQuery opacity

Hi, I have a Container with Opacity 0.3 $('#containerFeatured').css('opacity',0.3) The fact is that when I try to overlay a DIV wrap with images the opacity takes the whole DIV. I tried with z-index but nothing happens. My example here Thank you! ...

jQuery forms.js with multiple forms per page

I would like to submit information to a mySql database using php and ajax. The page that the info is being sent from (form.php) has multiple forms that are generated from a "while()" loop. On success, I would a response to update a div above the particular form from which the data was submitted. I am currently using jQuery and the jqu...

javascript function arguments in Jquery

Dear all I am using the JQuery and Javascript.I have onclick event ,that calls the javascript function. How to extract the arguments of function_A and function_B in JQuery And Is it Any Best way to do It? I need to Do ajax Call after javascript Click.Is any performance based issue ...

How can I set the value of a slider in jQuery?

I have a jQuery slider on my page having min -100 and max 100 and startValue 0. I want to provide a reset button which will reset the slider value to 0. I am not able to find any setter function to do that, how can I do this? ...

In jQuery, what's the fastest way to select a group of elements?

Hi, I need to add a onClick event to a around 10-20 elements on a page. What would be the fastest way to reference those elements? Would it be using: 1) class reference 2) ID reference Or a more drilled down reference like: p -> div -> li ? I realize we are probably talking a very small performance gain, but I think its good to know...

Is there a better way to write this javascript regex/replace?

The following code works, but I'm sure there is a more compact way to achieve the same result, particularly the string replacement: $('#nav-main .nav-sub').each(function() { var name = $(this).attr('id'); $(this).children('li').children('a').each(function() { var text = $(this).text().toLowerCase(); var spaces = / /g; var sub...