jquery

Fixed position sidebar with jQuery

How do I incorporate the following sidebar menu feature using jQuery where the menu on the left re-appears as the user scrolls down the page? Here's an Example Sidebar Menu. Any help or available tutorials online would be much appreciated. ...

Specify multiple columns with nth-child()

Hello, I'm using nth-child in my jquery selector to identify columns to modify. I have 5 columns (1-5) and I want to modify only 2,3, and 4. Is there a way to do this with nth-child? Something like: $('#example tbody tr td:nth-child(2||3||4)') I have tried several combinations but nothing seems to work. Im pretty new to jQuery select...

automatically animate all hover states with jQuery

On my new site, I have several different hover states for links. One swaps out a background image for the logo. One swaps out a different background image for the main nav. And normal inline links change background colors via CSS. I can't figure out a way to automatically have all a tags animate gracefully to their hover state. It doesn...

File upload using jquery not working

Hi. I'm trying to make a really simple file upload using jQuery, without having to download 3rd party plugin / scripts. Here is my code: HTML <form enctype="multipart/form-data" action="" method="POST" name="form"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <?php _e('Choose a file to upload') ?>: <input ...

identify select drop-down text using jquery $(this)

I've got several select elements on a page e.g. <select class="dd" id="dropdown1"> <option value="123">Option A</option> <option value="234">Option B</option> </select> <select class="dd" id="dropdown2"> <option value="456">Option C</option> </select> etc etc I would like to use jquery's $(this) to identify which of the s...

Insert HTML with jQuery

Hi, If I have a block of HTML like:- <div id="t1"> <div> <input type="text" value="Bla"/> </div> <!--INSERT JQUERY HTML HERE--> </div> How would I go about inserted HTML generated by a user click where my comment is? On each user action, I'd need to insert a block of code which will follow something like: <div i...

apply class to html tag under IE(6)

Not a problem, but a question to upgrade my knowledge : <script type="text/javascript"> $(document).ready(function(){ if (jQuery.browser.msie) { //If js is not active we couldn't launch html5 compat script. //So we won't bother with conditionnal comments, slowing down engine rendering ...

jquery autocomplete retains textbox value even on deleting the text

I have strange problem with jquery autocomplete in my asp.net mvc (C#) application. I was trying to clear the text and save empty string to my database, but it doesn't clears and i am getting the old value in the form collection. The text seems to be cleared on seeing the browser, but when i saw it through the firebug, the value still...

xsl:include and xsl:param at Google Chrome, with jQuery transform plugin

I've been trying to use XSL with Google Chrome, but with no success. I read that Chrome have some bugs with XSLT, and one of them is that it doesn't support xsl:include. Bug can be checked here: http://code.google.com/p/chromium/issues/detail?id=8441. After some research I found a new version of the transform plugin by Daer System, and i...

How to remember a action from a user(Like them thumbing or star rating)?

Hi I am just wondering on how sites do "ratings" or "thumbs up". I figured that each of the thumbs up would have a special id that would correspond to some value in the database that would store the total count. However what I am unsure of is how people make it the user can only click on it one. Like if hit thumbs up they can't keep s...

JSON object is null, even though feed is valid JSON

Help, I'm confused. I just need to get a JSON object into my page. The URL is as follows: http://disqus.com/api/get_forum_posts/?user_api_key=MYKEY&amp;forum_id=MYID&amp;api_version=1.1 If I use the Flickr API URL and the code given in the getJSON example, it works fine: <script>$.getJSON("http://api.flickr.com/services/feeds/photos_...

Permission denied - opening Vimeo inside jquery Horizontal Accordion

i'm trying to build a website using a jquery horizontal accordion following this handy tutorial http://www.marghoobsuleman.com/jQuery-common-accordion here's the site i've built (new user so only one hyperlink, sorry) at www.adjustyour.tv/201008 now, each time i click on a header to open another video tab, firefox is giving me the fol...

remove attribute display:none; so the item will be visible

The element is : span { position:absolute; float:left; height:80px; width:150px; top:210px; left:320px; background-color:yellow; display:none; //No display border: 3px solid #111; } i use this code to remove the display so it can be visible $(...

Unbinding Fancybox on thumbnail fade

Hi, I am using fancybox on a series of gallery images. The user has the option to click a link which fades out certain images of a certain category. I want to unbind the Fancybox method on the images that are faded but also re-bind when they are at full opacity. $("#clientsProjects").delegate("#clientsProjects nav a", "click", functi...

Using jQuery to change dynamic content?

Hi - I'm pretty new to using jQuery but am working on a Safari Extension at the moment and have run into a bit of a puzzle with appending some text to a page. Basically, I am creating an extension that will append a specific string of text with another on the page within an element <td id="name">foo</td> Using the following jQuery co...

How to implement my validation, through jquery validation plugin? I am not able to validate my form?

This is my HTML page.. <div> <form id="signupForm" method="get" action=""> <table> <tr><td><input type="button" value="New" onclick="clearuserfields()"/></td></tr> <tr><td>USERID:</td><td><input type="text" id="userID"/></td></tr> <tr><td>FNAME:</td><td><input type="text" id="fname" name="fname" /></td></tr> <tr><td>LNAME:</td><td...

jQuery $.ajax GET URL and Google geocoding

I have xml file that contains the URLs for geocoding requests to Google. I want to iterate through the file, grab the URL (and later the site name...one step at a time), and send a Geocoding request to Google to get the lat and lng from the response. I am having problems with my $.ajax GET request. Can't the URL parameter just be a val...

jQuery is too fast (faster than mysql)

I am developing a cakephp application that uses jquery and post methods in the background. When cakephp sends a post request in the background, a div has to refresh (or regenerate), and it has to show new content. Post method calls other php file that does a MySQL query. The div also call mysql, and select proper data from database. ...

Retrieving file names out of a multi-file upload control with javascript

The HTML is: <input type="file" multiple="multiple" name="upload" id="id_upload" /> If I load up three files, document.getElementById("id_upload").value only returns a single file name and not an array of three names or comma separated string of three names. Same story with jQuery val(). Is there a way to get the whole list? ...

Avoid uppercase input with jQuery Validate

I'm making a classifieds ads website where users submit ads through a form (like Craigslist). Many users write the title or description of their ads in UPPERCASE to get more attention, but I dont want to affect the overall appearance of the website. I would like to stop this, but still allow the use of acronyms of less than three upper...