jquery

jQuery "this" is not finding children

So i want to isolate the element directly below the link clicked so for example here is my Jquery and if I click on the link with the class drop all the links on the page that have the class drop_down slidedown. How can i use "this" or anything to isolate only one at a time. $(document).ready(function(){ $('.drop').click(function()...

Dont mix JSF and jQuery???

Now the only outstanding is the presentation layer. Want to build user interface for existing application.And as we all know presentation layer plays a critical role if its unsuccessful then rest all application is unsuccess. Choosing a presentation layer plays an important role. Which is the best one to use for presentation layer? I th...

colorbox doesn't open at proper height when first opened

Hi, So i'm using the colorbox plugin for a contact form. I am just the default colorbox properties, so it should automatically adjust to the div it contains (right?). Well There is a small vertical scroll bar on this colorbox content when its FIRST loaded. I've seen it happen sporatically in Firefox and chrome for OSX example - scro...

jQuery preventDefault action works, but the rest of my script doesn't appear to be working.

I have three tabs, made up of images that change when you rollover them. The rollover effect is achieved with the following example css. a#tabButton_profile { height: 30px; width: 133px; display:block; background-image: url(img/content_tab_profile.jpg); } a#tabButton_profile:hover{background-image: url(img/content_tab_p...

jquery cycle plugin -- IE problem with centering slides..

pls compare this pg in FF and IE.. http://mayacove.com/cycle/photos_cycle.html I had thought it was a z-index problem with IE, but it's not.. if I comment out all this code.. $(document).ready(function() { $('#photos').cycle({ fx: 'none', timeout: 0, next: '#next', prev: '#prev', af...

jQuery DoubleSelect/Cascade/Dependent/WalkRight Select Menus w/ Ajax Support?

Where you can pick an item from a <select> menu and then it populates a second <select> menu. It goes by too many names and they're are too many implementations. I'm looking for an up-to-date one (works well with the latest version of jQuery) that can pull the data using Ajax. Can anyone recommend a good plugin? ...

Dynamically Load Google Map AJAX Tutorial

I am sure there is a tutorial somewhere on the net on how to dynamically load markers to Google Maps while Zooming In and Out through AJAX. Some like this site is doing http://www.visualtour.com/p_findahome.asp?q=toronro+ontario ...

Change the icon of a jQuery UI button with own image

Currently I have the following jQuery UI button: $('#button').button( { label: 'Test', icons: {primary: 'ui-icon-circle-plus', secondary: null} } ); I wish to use own image for the button called 'custom.png'. How I can achieve that? ...

need direction regarding jquery and json

Hi, I have this url which is JSON webservice http://ws.geonames.org/weatherJSON?north=90&amp;south=-9.9&amp;east=-22.4&amp;west=55.2 I need to write a jquery function to access the JSON object from the above url. I am not sure how to proceed with this task. Could someone help me out with starting out the jquery code? Thanks Inorde...

jquery forms plugin noConflict problem

Hi, I am writing a bookmarklet in which I want to use the jquery forms plugin. The problem I am having is that a web page on which the bookmarklet might be used could be using a different js lib, which already uses '$'. No problem, I can tell jQuery to use noConflict() However, the forms plugin of jQuery also uses '$' which I have no c...

Can the value of one select box change the value of/what is default in another checkbox and make it disabled?

I have 2 select boxes, "#Country" and "#StateAbbreviation" if a user selects a country other than USA - .val="USA" in the #Country select box, I need to change the value in "#StateAbbreviation" to OTHER/INTL. - val="IT" and make it disabled. Why doesn't this work? $("#Country").change(function() { if($(this).val() != 'USA') { $(...

Undesired page scroll when changing content of fixed element

So I've made a menu sort of thing, affixed to the bottom of the screen via CSS fixed position, and it works fine. Only problem is that when the page is scrolled down somewhat, and then the menu activated (slide up animated with jQuery), the page jumps to the top again. It's pretty irritating. Here's some pertinent code: //handle click o...

Firefox 3.6 crashes when trying to display a thumbnail

I use Uploadify to upload multiple pictures to server. I want to display pictures thumbnails before the pictures are actually uploaded to the server, based on this. I use Firefox 3.6.6. Here is how I thought to do this: $('#fileInput').uploadify({ ... onSelect: function(event, queueID, fileObj) { var img = document.cre...

Javascript to turn an unordered list into multiple columns.

There doesn't seem to be an easy way in (well supported) css to do this. I'm looking for a javascript solution, preferably jQuery. I have an unordered list like this: <ul> <li>A</li> <li>B</li> <li>C</li> <li>D</li> <li>E</li> ...etc </ul> I want each column to have a height for example four items and ...

JavaScript/Jquery RegEx to validate an EMAIL Address isn't working correctly.

I'm using the following lines of JavaScript to validate an input as a valid email address: // Check for a valid email address var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; var address = $('#formRegister-emailAddress').val(); if(reg.test(address) == false) { // Validation Failed alert('Please enter a va...

Need help with inArray

Hi I have the following function, I need to make it return false only if one of two other checkboxes are checked. $.validator.addMethod( "ReutersNA", function(value, element) { var selectedCountry = $("#Country").val(); var NorthAmerica = new Array("USA","CAN","MEX"); if($.inArray(selectedCountry,NorthAmerica) > -1) { r...

Combining two input arrays into a single array to input into a database with PHP

I have a jQuery function that allows a user to create a list of links. By clicking on an "add row" link they create as many of these blocks (shown below) as they like which they can type the information into. <div class="links_row"> <input type="text" name="link_name[]"> <input type="text" name="link_url[]"> </div> I am post...

jQuery doesn't work in a view of my mvc website.

in a page of my asp.net mvc website jquery not worked. when i test the html source then i see the jquery script is not written but i used only one master page to load all jquery on every page . so where my jquery. when i debug my jquery then error found $ is not defined off course it come because jquery not load are you know why m...

Problem updating jquery dataTables plug-in with ASP.NET MVC

Hello, I need help in regards to updating a table rendered by jQuery data-tables plugin. I have a view called Index.aspx in which I have a DIV, where the traditional table data is rendered. Something like: <div id="students"> <table ...> <thead> ... </thead> <tbody> ... (all the r...

How to set session max inactive time?

Hi, I get the session MaxInactiveInterval time using the following query. I am developing web application using JSF Framework var sessionMaxInactiveTime = ${pageContext.session.maxInactiveInterval}; I need to set maxInactiveInterval. how to set maxInactiveInterval using JavaScript, JQuery, or to write Servlet. But i want to contr...