jquery

How to remove a selected item from a dropdown list (Using Jquery).

Hi, How to remove one or more selected items in option tag, from a HTML dropdown list (Using Jquery). For removing entire options from a combo box we can use the below Jquery statement. $("#cmbTaxIds >option").remove(); Assuming the below HTML code in aspx file. <select id="cmbTaxID" name="cmbTaxID" style="width: 136px;...

JQuery UI Button Icons not displaying

Hi, I'm trying to apply an icon to a jquery UI styled button in my Rails app. The button is styled correctly but I just can't get the icons to show up! Could anyone give me any suggestions - I'm pulling my hair out! I've done the following: 1) Copied the javascript files (jquery-1.4.2.min.js and jquery-ui-1.8.2.custom.min.js) to public...

using JQuery to convert html tr tags to uppercase for string comparison

Hi I have the following JS function: function tblFilter(colToFilter) { var tableToFilter = $("#notesGrid").find("tr"); var columnToFilter = colToFilter; $.each(columnToFilter, function (i) { tableToFilter = tableToFilter.filter(":contains'" + columnToFilter + "')"); }); tableToFilter.show(); }; colToFilter is uppercase and I ...

jQuery - Fancybox with iframe

Hi guys, I'm using Fancybox with iframes to load PDF files from database in it. The main idea is that on normal page I have table with content and every row contains field "show invoice", example: No | Title | PDF file | Action 1. | invoice 1 | show inovice| edit 2. | invoice 2 | show inovice| edit | ...

Grid Inline editing with JavaScript, weird behaviour

I made this invoice page. There is a repeater that generates a table. There are invoice item descriptions coming into td tags encapsulated with div tags like this: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <tr> <td class="griditem text"> <div class="invoiceDescripti...

Jquery next adjacent selector with $(this)

Hello, How could i use the adjacent selector "+" with the $(this). I would need a help with the commented lines with //this doesnt work: $(".ExpandCollapse").click(function () { if ($(this).nextUntil('.Collapsable').is(':visible')) { //this doesnt work $(this + ".Collapsable")...

Unlock UI with jQuery BlockUI Plugin after the Open/Save As dialog box appears

Hi, I'm using jQuery BlockUI Plugin to show busy message when a click event is fired. In the scenario below, it's working fine. The busy message shows and locks UI on click event, and dissapears when postback's done. No file creation involved, which invokes browser Open/Save As dialog box Mark-up: $(function() { // when document has...

Glassfish comet problem

Hi, When deploying our portlet in liferay with glassfish set up with comet support enabled we get malformed http responses - seems like requests are not corelated with responses. For exemple - for an http request for a css we may get a image back that was requested by other http request. Our portlet is a jsf enabled portlet using JQuer...

JQuery same function for multiple events (ex: hover and click event)

Hello, is there any way to execute same code for different events on the page? $('.class1').hover(function() { some_function(); }); $('.class1').click(function() { some_function(); }); instead to do something like: $('.class1').click.hover(function() { some_function(); }); ...

How can I highlight spaces with jquery?

I have an input textfield that has segmented chinese words(usually they are all squashed together). I want to highlight the space between the words, on the fly(So in other words if i type a space between 你好 the space between the characters would be red) When I submit the text however I want to only submit the chinese with the spacing, no...

In the jQuery Galleria plugin, pressing the right key moves to the next image. How can I access this method from the page where I use the plugin?

I'm very new to javascript & jQuery, and can't work out how to do this. The source code can be found here. Thanks for reading. ...

fadeout effect not working

i want to load new data after fading out effect. callback:function(data) { parent.fadeOut('slow').delay(5000); $('#div_one').html(data); modal_message(); }, if i remove $('#div_one').html(data), then fading effect will work. but if i keep this sentence fading effect is no...

jquery: find a string and wrap it in an <a> tag?

i've got this: <div class="" id="fancy_hover"> <a href="home.html" id="start_writer"></a> <div> <p class="hidden" style="display: block;">click here to see this event with all the bells and whistles</p> </div> </div> I need to do an equivalent of .find() but for the string "click here" instead of a node, i then n...

How to rotate display of labels in jquery fusion chart plugin.

How to rotate display of labels in jquery fusion chart plugin. ...

append Stylesheet to influence page loaded within an iframe

Possible Duplicate: Append a stylesheet to an iframe with jQuery Morning All Is it possible to append() a CSS style sheet into the loaded within an iFrame using jQuery Many Thanks in advance Gary ...

I have two methods to bind data in jquery so that the click event can access it, which is most efficient?

Outline My simple application takes text from a text box and calls an asp.net page method using AJAX. A list of users that partially match that text and their userID is returned. I wish to fill an existing DIV on the page with a DIV for each result, containing the users name. Each DIV then needs a click event to be bound to it that can ...

JSONObject from String

how can i get JSONObject from request(HttpServletRequest) in servlet.. ...

Is there any equivalent in jquery for prototype serialize()

hi I am trying to pass form's data to jquery ajax request. i find easy way for prototype $('formid').serialize() which will reqturn a string with all elements name and their value inside that form, ready for ajax request in a handy way. that's easy. so is there any equivalent in jquery? ...

Find Links in HTML Document using Javascript/jQuery

Hi! This is a challenge for any Javascript/jQuery ninjas out there: What is the best way (using aforementioned languages), to find all of the links in an HTML document and return them all? In other words, a function that like this - findLinks(document.html.innerHTML) that would return all links found in that HTML. Thanks, DLiKS ...

Fullcalendar dayClick code fires only once: what am I doing wrong?

Hi there, I'm inserting events into a mysql table using jQuery's Dialog UI widget, and I'm stuck with only one insertion per dayClick. To insert another event I have to refresh the page :/ Here's the code `dayClick: function(date, allDay, jsEvent, view) { if (view.name=='month') { $('#calendar').fullCalendar( 'changeView', 'agen...