jquery

How to re-load a jQuery plugin on page resize?

I'm using the Galleria plugin in an AP div that is elastic. Galleria centers and crops itself nicely on page load but doesn't handle resizing so gracefully. If I resize and then reload the page, it looks great, so I'm wondering if there is a way to unload/reload the plugin ONLY on resize? ...

Is it possible with jQuery to dynamically resize an image based on the width of it's parent DIV?

I have a DIV tag that will be 500px in width. Content is coming via an RSS feed that includes images. Some of these images are wider then 500px which destroys the layout. Is it possible to use a bit of jQuery to resize images on the fly if they exceed 500px in width and keep the ratio proportionate? Thanks for any suggestions. ...

What is the TinyMCE jQuery Package?

I've been asked to use the TinyMCE editor in a project. On the download page, there's a main package, and then a jQuery package This package contains special jQuery build of TinyMCE and a jQuery integration plugin. tinymce_3_3_7_jquery.zip What is the jQuery build of TinyMCE? Is it just TinyMCE with the same features built on top of...

Problem loading php page via shadowbox

Hy I have a html page in witch I want to open a php page via shadowbox, the problem is in IE 6/7/8 the page is loading but it is not displaing, it works perfectly in FF this is the hole page, the problem occures when you click on [email protected] at the bottom of the page. I have tried using colorbox and thickbox <!DOCTYPE H...

jquery dialog not the same after reopening

I fill the content of a div with $.get and show it with dialog('open') the first time inside the dialog everything works as expected ( inside I have other dialogs, with jquery.form .ajaxForm inside of them ) but after I close the dialog and open it again some things don't work <script type="text/javascript"> $(function() { ...

Jquery Plugins - date selector and crud(php mysql)

hi, I am trying to find a date picker that can show dates to select starting current date so that the users don't select the past date and I need not worry about validating. I am not sure if this will show the correct date for any one from any place. I found some plugins but none of it has this option. I found this http://jqueryui.com...

JavaScript vs AS3 for Interactive Globe

I am developing a web application that should display data points below the Earth's surface. It should also include user navigation, zoom, and rotational capabilities. It reads in the data from a XML file and should display 500-1000 spheres. Ideally, I would like to use HTML5, but it doesn't run in IE8. This is a Flash application that ...

CSS absolute positioning elements inside a div

I have a .wall div with a some .toy divs inside it. I want to arrange the toys inside the wall just like http://goo.gl/4MqM. float:left property has done it for me nicely. Now the problem is I want to add position:absolute for the toy divs to make it draggable later. How can I do this either via Javascript or via CSS? Applying position...

Expand and Collapse Paragraphs with JQuery Inside of a Loop

I am attempting to write some jQuery code that will expand a paragraph when a link is clicked and once expanded present another link that will allow the paragraph to be collapsed. These paragraphs are all generated within a foreach loop and I am having trouble selecting the correct paragraph because I am not sure of the best way to crea...

Difference between 2 jquery binds

function runSomething () { // some stuff happens } $(selector).bind('event', runSomething()); $(selector).bind('event', runSomething); What's the difference between these 2 versions of the bind? Here's a practical example: http://jsbin.com/icajo/edit Can somebody explain why works the way it does. I'm trying to get multiple butt...

jquery manipulating multiple elements

Hi, I'm trying to manipulate two elements within a jquery function and i'm not seeing the light. I'm using the following code which works well on showing the required div, but i would like to add highlighting to a paragraph item in another part of the page as well? $('.lang-click').click(function(event){ $('.lang').hide(); $("li")....

jQuery: running 2 different jQuery versions on the same website ?

can I run 2 different jQuery versions on the same website and avoid conflicts ? please don't ask me why.. it is a long story. Thanks! ...

Searching a simple jQuery BB-code plugin

I'm searching for a jQuery plugin or function to insert bb code in a selected textarea - nothing more. I found plugins like http://markitup.jaysalvat.com/downloads/ but they add are to oversized for my project. All i want is the following function realised in jQuery: document.getElementById("bold_button").onclick = function() { form...

Load Ads after the page Loaded With jQuery

I wrote a plug-in for jQuery that copy the the output of the ads JavaScript to there container Div. so i put the Ads JS at the bottom of the page (so they will not decrease my page load speed) within inadvisable Divs that looks like: <div id="ad_loader_4" class="ads_loader"></div> the id of those divs point to the container divs. the...

jQuery Swap Images In A Sequence

I'm a jQuery novice to say the least so please bear with me here. I need to swap out some images in a timed sequence. I found a tutorial online which kind of does what I need. Here is the code: function swapImagesMaps(){ var $active = $('#maps .active'); var $next = ($('#maps .active').next().length > 0) ? $('#maps .active').next() : $...

simple modal resizing and centering?

I am using simplemodal to bring up a modal with some content in it. Inside that content i am making a ajax call to some other content which is a different size from the original content (quite a bit smaller) what i'm doing that is kind of working is using jQuery to change the size of the modal container. in the oncomplete section of ...

Trouble with check boxes using get and javascript/jquery

Hi, I am working on the following form for a local charity: http://bit.ly/dtcuv7 I am having trouble with the check boxes in the availability section. What I really want is for people to be able to simply check the times they are available to help out and then have these checked times sent with the rest of the form data to the charit...

Limit Characters jquery.

Hi Everyone, I am wondering if it is possible to limit the amount of characters in an element with a specified class using jQuery? For instance, the following elements with the class shortened would only show 40 or so characters. <p class="shortened">This would be the text limited to 40 Characters</p> Thanks in advance for all your ...

How can i access the jqueryUI theme i generated through themeroller to use on my website?

Basically how do i use themeroller styles? Step 1 - to - actually seeing the styles on my page of choice. Here's the html im currently using to try to access the tabs <?php if (isset($user_number)){ ?> <!doctype html> <html> <head> <title> Wahalu - Dashboard </title> <link rel="stylesheet" type="text/css" href="/wahalu/css/style...

How to select only enabled fields using jquery

$('#btnSelectAll').click(function() { $('.inputchbox').attr('checked', true); }); $('#btnCancel').click(function() { $('fieldset:not(:checked)').find("input,select,textarea").removeAttr('disabled'); }); On cancel I need to enable only the checboxes which is checked? canI use somethign like thi...