jquery

Want to use opacity setting when displaying divs with animations in JQTouch

Sorry its a bit hard to describe. For a web-based iPhone site. Need Webkit, iPhone or simulator to view. I want to be able to use the native jQTouch animations, but I need to modify the background color and have it be partially transparent. Now i can get this this to work if I write my own custom jQuery code and call that (as it doesn't...

Prevent jquery ui tabs from automatically loading content into the page

Any idea on how i can prevent jquery ui tabs from loading the content inside the page through ajax, and just use the tabs for external links? I've tried http://docs.jquery.com/UI/API/1.7.1/Tabs#...follow_a_tab.27s_URL_instead_of_loading_its_content_via_ajax but does not work, the content is still being loaded... thanks ...

Change background color of JQuery slider

I understand I can set the background color of the value from min to the current slider selection by doing a: #slider .ui-slider-range { background: #88ac0b; } How do I set the background color for the entire slider (not just from the min or max to the selected value) ...

jQuery Selector - checked and class begins with...

I need to get the value of the first checkbox which is checked and who's class name begins with 'rqc', eg. rqc205 I have tried this: requestID=$('#requestsTable').find('input[class^='rqc']:checked').val(); but it yields nothing, whereas requestID=$('#requestsTable').find('input:checked').val(); works but does not limit to the class. ...

How to run dynamically loaded js file in iframe?

I have the following: $(document).ready(function() { var myIframe = document.getElementById('myIframe'); var element = myIframe.contentDocument.createElement('script'); element.setAttribute('src', '/javascripts/library/jquery/jquery.min.js'); myIframe.contentWindow.document.getElementsByTagName('head')[0].appendChild(elemen...

Bookmarklet Keeps going to new page

I made this bookmarklet: javascript:(function(){var s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');document.getElementsByTagName('body')[0].appendChild(s);$('#hldIntMain').hide();$('#fadeBackground').hide();return false;})() Formatted code: // Add in jQuery v...

Jquery: Adding multiple values to textboxes (round two)

I don't think I explained myself as best I could last time, so I'm going to give it another shot. From the following code: <div id="addons" class="grid_12 omega"> <div class="addon"> <span><input type="checkbox" name="addon_1" value="addon_1"></span> <span class="title">Title 1 here</span> <span class="cost"...

jQuery - Help with .find() and adding id to an anchor tag

I have a menu that uses SSIs, problem is the tag needs an id of "here" for CSS to apply background image to show the end user's location on the site. So is there a way to grab the browser's current url (ie: mypage.html), use the .find() function select the anchor tag and add id="here"? I can see this working in concept but no matter w...

Using Jquery, how do you update elements in an html page based on the key names returned in a JSON document?

I am currently asynchronously fetching json documents to update elements in a few html pages. My current approach seems less that elegant. For many pages I just need to update an element on the HTML page that corresponds to a key in the being returned in the json document. I'm looking for a simple jquery/javascript function that updates ...

jquery bind and unbind

i have a .hover that when it is clicked i need to unbind and then when another element is click in need to bind again any suggestion on how to get it to work with the following code. $('ul li.port a, ul li.serv a,ul li.cont a, ul li.test a').hover( function() { $('span', this) .stop() .animate({margin: '15px', left:...

Where to place the timeout() fadeout?

Hello. function checkSession(){ $.ajax({url: "session.php", success: function(data){ if( data == 1){ var postFilen = 'msg.php'; $.post(postFilen, function(data){ $(".msg").html(data).find(".message2").fadeIn("slow") }else{ $('.msg').hide(); } }}); // se...

How do I get actual image width and height using jQuery?

On a page I have displayed 100 images, which have the width and height attribute changed. Image id is in a loop. How do I get the original image size, inside this loop? $(this).appendTo(".prod_image").attr('height',150).attr('width',150).attr('title','').attr('name','').attr('alt','').attr('id','id'+i); ...

WYSIWYG HTML / CSS builder

Maybe it is to much to ask... I want to make a online WYSIWYG HTML / CSS builder where the graphic designer can build a website template without knowing CSS /HTML. For that purpose there should be a GUI to build a website template. That means HTML and CSS are created out of the choices selected in the GUI. http://www.constructyourcss....

JQuery's offset() function

Hello, I know JQuery does most when it comes to cross-browser issues. I just wanted to know if offset() method of JQuery serves the purpose of cross-browserability, I mean top, left, etc properties that can be derived from it? Basiclly once I apply top, left, etc properties (which are derived from offset() function) to an element, I ne...

JQuery: Can't figure out the error

Hello, I have this code: $('.user_info').click(function(){ var pos = $(this).offset(); rel_value = $(this).attr('rel'); $('#' + rel_value).css({top: pos.top + 'px', left: pos.left + 'px'}); $('#' + rel_value).show('slow'); $('#' + rel_value).hover(function(){}, function(){ $(this).fadeOut('slow'); }); ...

How to show the DIV related with clicked link and hide other DIVs with Jquery?

Hello, As I summarized at topic I want to show the DIV related with clicked link and hide other DIVs with Jquery. To be able to understand what I am saying, please visit Worldlines You will see there the topics related with some news. When somebody clicked on a topic the news div will slide-down below clicked topic and previously read ...

jQuery event bubbling: How to capture a nested click?

I'm capturing a click on any given LI in: <ul> <li class="opt">Text 1</li> <li class="opt">Text 2</li> </ul> With the code: $('.opt').live('click', function(event) { console.log("Click!"); } and it works wonderfully :) However, I also need to support the ability for nested block elements to exist inside the LI, without...

Update using AJAX and JQuery

I'm trying to do a simple update, but can't figure out somthing. I have a table that i get from a DB with an Edit button that when i press change to a Save button so i can save with Ajax the record that the user just edit. I'm doing the first part just fine, have one function that do all the jquery stuff on the page (that is working just...

Move Scrollbars With JQuery

Hello, I have been creating an image gallery with JQuery, all is done. The images are placed side by side horizontally within a div whose overflow id hidden (don't want to show scrollbars). I have two images arrow left and arrow right within links. Now I want to do is that when i click left arrow, it should show previous image and when ...

jQuery selectors: logical OR

I can't seem to see the forest for the trees right now (Looked at the api docs already). It has to do with jQuery selectors: What I'm trying to do is to select all elements that have class subtitle or headsection. Something like this: $('.headsection || .subtitle'); To be more specific: I want to use this selector with the function next...