jquery

image nesting issue in tiny mce

Hi! I have a drag drop interface from which user can add elements to page. For example, I want to nest an image inside a paragraph. To make the text elements editable and apply styles to it, I'm using a tine mce instance. I can load contents of text element (paragraph) in the mce successfully, along with its id, class and styles until, i...

Fancybox options not having any effect.

I'm using fancybox 1.2.1 to open an iframe. My problem is my width, height and scrolling options don't actually do anything. Am I missing something? It just opens up at the default size. Heres the call: $(document).ready(function(){ $('a[rel=gallery]').fancybox({ 'width':920, 'height':700, 'scrolling':'no' }); }); And h...

jquery stopPropagation problem with live method

Hi, Jquery stopPropagation method dosen't work with live method. Below the code is works fine with click instead of live method. Any help greatly appreciated. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"...

Replace text using jquery

Hi I need to replace a text within div that says "Please wait..." with "Ok.Its done." after a random delay.Please help.Thanks in advance. ...

Jquery select element by index

There is my markup: <UL style="-moz-border-radius-bottomleft: 0; -moz-border-radius-bottomright: 0" class="ui-tabs ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" sizcache="3" sizset="5"><LI class="ui-state-default ui-corner-top" jQuery1280326216622="3" sizcache="3" sizset="5"><A href="#tab_1" jQuery12803...

Great project ideas for MVC/LINQ/jQUERY

I'm looking for a couple projects to help me learn MVC, LINQ, and maybe a little jQUERY. I've got a couple ideas - the top one is creating a complete bug tracking system or support ticket system. Do any of you have any suggestions regarding what I could try? I would rather have something more advanced and something with actual utility. ...

Post js array to php @jquery @codeigniter

Hi, i'm trying to pass a javascript array to a php controller ( i'm using codeigniter ) with ajax post method. Data seems to be sent but $_POST['data'] is not known. This is the code : JAVASCRIPT: function update_order(){ var ordre_column1 = $('#column1').sortable('toArray'); var data = serialize(ordre_column1); $.post('../../controll...

Do you Ajax JSON or HTML?

What is the preferred way to do AJAX. If it was for a search page written in PHP using Jquery for the AJAX How would you handle the response a) Have the response contain all the relevant html/styling or b) Send pure JSON and have a javascript function build the html/styling around the javascript variables. I can see advantages to ...

How to use jQuery in an extension

Hi. This is a tough nut to crack: Is it possible to use jQuery in a Dreamweaver extension? These extensions use the following syntax to reference the extension and the actual document which the extension will modify: document.forms[0].elements[1] // refers to the extension file's form element var dom = dw.getDocumentDOM(); // gets t...

jQuery colorbox : How can I change the position of the colorbox

By default the colorbox appears centered both vertically and horizontally on the screen. Is there a way to change that, for example to 10% from top vertically and centered horizontally? ...

Is it possible to destroy "sortable" when "sortstart" starts?

Hi, Here is my code: $(".myclass").bind( "sortstart", function(event, ui) { $('#div_1').sortable('destroy'); $("#div_1 .li_1").droppable( { hoverClass: 'red', drop: function(event, ui) { $(this).addClass('red'); } }); }); Can anyone help me identify what is wrong? Kind regar...

problem with setInterval(); and clearInterval

Hi, I have a problem involving setinterval. It's probably best to show an example so here's a link here: http://boudaki.com/testing/carouselTest Basically I'm having problems making this work like I need it to. When the page loads the content rotates every three seconds and the numbered buttons on the right do so also. when you click o...

Is there a standard for Javascript/jQuery <img /> that haven't yet been placed in the document?

Is there a specification for how browsers handle image loading if the image tag is just one of those diembodied Javascript elements that haven't been inserted into the document? An example: $('<img src="/path/to/image.jpg" />') Is there a specification that tells the image to load? I ask because I am interested in the following implem...

How to insert a piece of code programmatically using jQuery?

Hi guys, I'm learning jQuery and I'd like to use it to solve an old problem that I get. I'd like to use jQuery to add a piece of HTML code programmatically. What I need to do is: create a jQuery function that "parses" all elements/objects that are inside a div. When my function get a img object, then I'd like to put the img inside anoth...

Change CSS Class of All previous <li> when i hover some other item.

Hello guys, what i need, might be quite simple to do with jQuery, I just suck at it :/ I have this Unordered List list of years, what i want to do is, to change ALL css classes of the previous List Items when I Hover another item. For example, in this image below, if I place the mouse at "1904" I want to change the css class of 1901, 1...

rich:Jquery not working when use in a facelet component

I've created a component that manages postal codes using mask with a rich:jquery, Here the code of the component: <h:inputText id="#{id}-postalCode" value="#{myBeanPath.postalCode}" size="7" /> <rich:jQuery selector="#postalCode" query="mask('a9a 9a9')" timing="onload" /> It works fine in a standard jsf page, but not when it's in ...

JQuery / Flickr API issue with get Photo set...

I have been trying to put together a photo albumn system that is managed via Flickr, I have been spending the past day or so playing around with the Flickr API and have the following code, but it just doesn't return the expected HTML. insetad I get an error in my browser for the line above ($('#images').html(theHtml);) <script type="t...

HTML select element onchange trigger for already selected option

I have the following HTML containing a drop down list (single selection) <script type="text/javascript"> $(document).ready(function () { $("#garden").bind('change', function() { alert("Changed"); }); }); </script> <body> <div id="...

jQuery: hiding table row in IE 8 closes the browser ?

So, I am looking at the piece of code: var row = $(deletebutton).parent().parent(); var indexLabel = $(row).find("#" + indexLableId); var rowIndex = $(indexLabel).val(); $(row).remove(); If I change last line to $(row).hide(); the IE8 closes. What gives? Update: This is very interesting now. ...

jQuery: how do I add a div to the end of my HTML file?

I saw in the documentation that .append allows you to add things to an element. But I want to end a div right before the </body> tag ...