jquery

[jquery] cosmetic issue when sticking div to bottom on window.scroll

Hi guys, I have a rather annoying cosmetic issue with jQuery. I'm using the $(window).scroll event to stick a div to the bottom of the window except when the it reaches the footer in which case it stays right above. This basically gives me a similar effect (just the other way around) to the one used here on stackoverflow for the "How to...

who can give me explain it about javascript?

javascript:delete_reply_notify('14557174');void(0) it make javascript delete one row which id = 1455174 but ,why is void(0)? what's mean ? ...

JQuery Ajax error

I am posting some form values through ajax to a PHP script. The PHP echoes 1 if it's successful and 2 if not. The PHP seems to be working ok but I am being redirected to the url in the javascript and shown the number 1 on a blank page instead of it being echoed back to the ajax request. This is my javascript, can anyone see where I am ...

jQuery - select one of the two classes

Hi, I have a table row elements: ... <tr index="1000" class="class1 classHighlightRed"> ... ... <tr index="1000" class="class1 classHighlightYellow"> ... I would like to check the value of the second class against some constants. E.g. If (2nd class == "classHighlightRed") Then { doSomeWork; } At the moment...

JQuery: Hide options of select according to option value

Dear readers, given following html <select name="IBE1$IBE_NurFlug1$ddl_Abflughafen" id="IBE1_IBE_NurFlug1_ddl_Abflughafen" class="dropdownlist" style="width: 99%;"> <option value="Antalya;TR">Antalya</option> <option value="Berlin;DE">Berlin</option> <option value="Duesseldorf;DE">Duesseldorf</option> <option value="Frankfurt;DE">Frank...

Can jQuery change css style definition? (not individual css of each element)

I haven't seen any docs saying jQuery can change any CSS definition such as changing td { padding: 0.2em 1.2em } to td { padding: 0.32em 2em } but either have to change a whole style sheet, or change class of each element, or change css of each element. Is changing the style definition possible? ...

How to access each element returned by first-child selector

Assuming the following selector $("div span:first-child") applied in following html code John, Karl, Brandon <div> <span>Glen,</span> <span>Tane,</span> <span>Ralph</span> </div> as seen on jquery doc is there a way to reference "each" element returned? I can't seem to...

Play jQuery based animation intro only one time

I have a simple animation based on jQuery fadeIn and fadeOut - it just shows some elements and hides others sequentially when a visitor loads main page of the site. So, I use this animation only on one page. I only want this to be shown one time per session so that when user clicks "Home", this wouldn't show up any more, just skipped. Ho...

Coda slider - animating from random anchor links?

I'm using the horizontal coda slider on my page to show featured content, and it's working just about right. The only problem I'm having is when I click any other link on the page that is linking to an id (e.g. <a href="#top">Top</a>), it is causing the slider to animate. You can see an example of this here - Click one of the coda slide...

JQuery: Get radio value and perform different operations

Hi there, I have 2 radio inputs. How can I process jquery functions on a selected value on a onchange event? <input value="radio_2way" name="IBE1$IBE_NurFlug1$flightIBE" id="IBE1_IBE_NurFlug1_radio_2way" checked="checked" type="radio">Hin- und Rückflug &nbsp;&nbsp;<input value="radio_1way" name="IBE1$IBE_NurFlug1$flightIBE" id="IBE1_IB...

jQuery ui.selectmenu not working with latest version of jQuery and Colorbox

I am using ui.selectmenu inside colorbox. It's work well with either, jQuery or colorbox having older version. It work with below two combinations: jQuery 1.3.2 and colorbox 1.3.8 jQuery 1.4.2 and colorbox 1.3.0 If does't work with: jQuery 1.4.2 and colorbox 1.3.8 The problem is destroy method of ui.selectmenu call immediately after...

RangeValidator not working when selecting DropDownList value using jQuery

I inherited a site which I am in the middle of updating which has a DropDownList and a RangeValidator assigned to it. The data is bound to the dropdown on Page_Load. The values are retrieved from the database so the value property of each item is set to the unique ID of the item in the DB. The RangeValidator looks something like: <asp:...

cycle next and previous based on position function?

hello - i know how to call prev/next normally but i want it to open the next slide if the mouse is over half way of the screen and previous if less then half way over. can't seem to find $.cycle.next() or similar. Any ideas welcome...! ie $('div.pageImages').cycle({ height : '600px', width : '600px', t...

apply script to all elements

i need to show all images, which are in the div with class="deep". when i try the following script it doesn't work. $(".deep img").css("visibility", "visible"); i can solve the problem using something like .each, but maybe there is something more simple? Thanks ...

jquery works in IE & FF but not in Chrome

Objective is to read from ticker.xml, parse, and set the html of headline1, headline2, headline3, etc. divs to the values of ticker.xml. This works great in IE 8 and FF but not in Chrome. Any thoughts? <script type="text/javascript"> $(document).ready(function() { $.ajax({ url: 'ticker.xml', type: 'GET', dataType: 'xml', ...

Expanding Div's using jQuery slideToggle

Can anyone shed some light on this for me: http://67.212.188.229/fcf/index.html <- Please look at the right hand side panels, I would like the user to click on either and have the box expand with its content. I have the click and the content but for the whatever reason I cannot get the div's to expand with the content. Any help is grea...

Sending data to server (ASP.NET MVC) with Ajax(jQuery) through JSON

After learning about jQuery and the whole AJAX thing, I got very excited. I decided to completely replace my forms with just input fields. And the data is sent to the server when the '<'input type="button" /'>' clicked. // JavaScript function submit() { removeInfo(); btn = $('#button'); $('#button').replaceWith('<img id="theimage" src...

Spring 2.5.x MVC portlet with annotation & AJAX with jQuery+JSON Error: Content Type cant be set to json...

Hi all, When i try to use spring 2.5.x DispatcherPortlet with liferay to use Ajax, i am getting this error. I have configured it using annotations. At class level i used following annotations, Code for controller... @Controller @RequestMapping("VIEW") public class MyController { @SuppressWarnings("unchecked") @RequestMapping(method...

Using JQuery functions on HTML produced by JQuery?

Hello all, I have a HTML page that is generated by JavaScript (JQuery). It makes use of JQGrid. This is the source of the page. I attempt to change one of the widths and check its width like so: var width = window.screen.availWidth; //1280 $('#gbox_grid').css('width', width); alert($('#gbox_grid').width()); //alerts a null But the ...

How to get input type using jquery?

I have a page where the input type always varies, and I need to get the values depending on the input type. So if the type is a radio, I need to get which is checked, and if it is a checkbox I need to now which are checked, and if it is a drop down I need to know which is selected, and I if it is a text/textarea I need to know the values...