jquery

How to hide the scrollbar using JavaScript (jQuery)

How can the scrollbar be hidden? I want to do this because the scrollbar is not nice. overflow:hidden is not useful, because my div element has many other elements. So setting overflow does not solve my problem. ...

Jquery (or CSS) autoresize iframe to the bottom?

Hi guys, i've no idea how i can set properties for an iframe that's positioned 300px from the top, but should reach ALWAYS the bottom! So at the moment i've set the height of the iframe to 500px. The height should dynamically change when i resize the browserwindow. The iframe should start 300px from the top and should always reach the b...

c# const in jQuery?

Hi guys, I have this piece of code in javascript: var catId = $.getURLParam("category"); In my asp.net and c# code for "category" query string i use a public const: public const string CATEGORY = "category"; so if i want to change the query string parameter to be "categoryTest" i only change this const and all the code is updated...

Destroy the binding between a jquery function and my object?

If i use some really simple code like : $('#elm').tipTip(); It will do what the plugin is intended for. Is there a way to destroy this binding to the plugin tipTip() will no long bind itself to this element? UPDATE The reason is, it's not that I want to stop the tips from popping up, I have one main data div that the user sees, and ...

W3C Markup Validation errors with jQuery

Running a validation on my pages where I used jQuery gives me lots of errors.. I escaped the closing tags but keep getting errors. <script type="text/javascript"> $(document).ready(function() { $("#main").html('<p>hello world<\/p>'); }); </script> ...

JQuery .html() method and external scripts

Hi, i'm loading, using the JQuery ajax() method, an external page with both html and javascript code: <script type="text/javascript" src="myfile.js"></script> <p>This is some HTML</p> <script type="text/javascript"> alert("This is inline JS"); </script> and setting the results into a div element, using the html() method. While ...

jquery datepicker format problem

Hi I'm having a problem trying to format the output on the jQuery UI datepicker. I want the dateformat to be the 'ISO 8601' format, like explained here: http://jqueryui.com/demos/datepicker/#date-formats This is what my code looks like: $.datepicker.setDefaults($.datepicker.regional['nl']); $('.datepicker').datepicker('option', {dat...

jQuery + CSS Manipulation using each()

Hi, I am trying to create a css menu. I would like to remove border and padding for every last li > a element on the child ul tag. (sorry for confusing) Here is the code for the menu <ul id="nav"> <li><a id="cat1" href="#">Menu 1</a></li> <li><a id="cat2" href="#">Menu 2</a></li> <li><a ...

jquery nested sortable list

i have this code $(document).ready(function() { $("#test-list").sortable({ items: "> li", handle : '.handle', axis: 'y', opacity: 0.6, update : function () { var order = $('#test-list').sortable('serialize'); $("#info").load("process-sortable.asp?"+order+"&id=catid&orde...

a simple php form in a dialog box or a pop up.

Hii , I have a small php form. I need it to come in a pop up(dialog) when a user clicks a link .how do i do this using jquery . ...

jQuery jPicker colorpicker: How to convert from 8 digit (w Transparency) to standard 6 digit hex?

I've got a jPicker installed and running fine; its a pretty sweet script. However, the value it returns to my input box is 8 digit hex. I need it to return 6 digit hex. Rather than post-process the 8 digit into 6, I'd rather just hack into the script and force 6 digit. Alternately, I'd be ok with hooking into the change event of the jP...

jQuery not refreshing tabs content in IE

Hi all! I have a page that is using jQuery tabs. Within one of my tabs I have a div that contains a form (initially hidden) that I want to use to add content to the tab. What I have works perfectly in Chrome, Firefox, and Safari. But, in IE 7 the tab will not refresh. The post works and the data gets added to the database, but it si...

jquery question - addclass to element depending on active image in rotating banner

EDIT : Per Slaks $j('#banner-content img').each(function() { var link = $j('#page-tabs li a.' + $j(this).attr('class')); if ($j(this).is(':visible')) { link.addClass('active'); } else { link.removeClass('active'); } }); ORIGINAL POST I have a banner that rotates a series of three images. The active...

Problem with jQuery array

<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/jscript"> $('document').ready(function (){ var clickNo=0; $('div#pics>img').hide() $('div#pics>input').click(function(event){ $('div#pics>img')[0].show('slow...

Selecting element by data attribute

Is there an easy and straight-forward method to select elements based on their data attribute? For example, select all anchors that has data attribute named customerID which has value of 22. I am kind of hesitant to use rel or other attributes to store such information, but I find it much harder to select an element based on what data ...

jQuery weirdness. Div becomes attached to chained element markup?

I've got a div in my app that is displayed each time my theme options panel is saved. The markup is... <form method="post"> <?php if ( $_REQUEST['saved']) { ?> <div id="message" class="updated fade"><p>Sweet! The settings were saved :)</p></div> <script type="text/javascript"> $('#message').delay(3000).fadeOut(3000);</script> <?php }?...

Treeview drag and drop

I'm using the jQuery droppable/dragable to reorder a treeview (made up of ul/li items) I have no problems making a element and dragging it into the tree When I define the items to be draggable, the code doesn´t work any more (the items are classed as "droppables" but the drop event won´t run) Isn't this supposed to be possible? ...

jquery parse json multidimensional array

Ok so i have a json array like this {"forum":[{"id":"1","created":"2010-03-19 ","updated":"2010-03-19 ","user_id":"1","vanity":"gamers","displayname":"gamers","private":"0","description":"All things gaming","count_followers":"62","count_members":"0","count_messages":"5","count_badges":"0","top_badges":"","category_id":"5","logo":"gamer...

jQuery .load(), don't show new content until images loaded

Hi. I have been working on a jQuery photo slideshow. It scales the images to the browser size, and slides them left and right. There is no pre-determined size or aspect ratio, the script does everything on the fly. It requires that all images be fully loaded, so it can custom resize each individual image based on it's own aspect rati...

Determine if mouse is still in javascript/jQuery?

I'd like to be able to use jQuery to trigger an event if the mouse has been stationary for a certain amount of time. Any ideas? I'm not even sure where to start! ...