jquery

jquery slideToggle's position

I have a menu div to put the menu list inside <!--menu--> <a href="#"><div id="menu-tab">Menu</div></a> <div id="menu"> <ul> <li><a href="#">a</a></li> <li><a href="#">b</a></li> <li><a href="#">c</li> </ul> </div> for the css #menu { width: 220px; border: 2px solid #004990; float: right; margin-right: 15px; margin-t...

Hiding a dropdown Box and to create another dropdown box and to make it appear in the same Place in JQUery

Hi, How to change the options in a Dropdown box using JQuery. For Eg. 1. <select name="fieldSize" id="fieldSize"> <option>Choose a size </option> <option value="small">Small</option> <option value="medium">Medium</option> <option value="large">Large</option> </select> I want to change the options as 2. <select id="fieldSize" na...

hide/show of div class

Hi, I wrote a code to show a div element(shareform) when a link is clicked and to hide it when the link is clicked again. I have many Forms under which this link 'Share' will be displayed. If i have only one Form, this code works fine. That is, initially the 'shareform' element is hidden and when I click the link, it is shown and when I ...

Which is the best jQuery rich editor?

Which is the best jQuery rich editor? Any recommendation? ...

jQuery: trying hook a function to the onclick when dynamically adding a DOM element, but it immediately executes the function instead

I am using jQuery to dynamically (I mean at runtime) add a span element to my page's DOM: // create add task button $(document.createElement("span")) .attr({ id: activityNameHyphened + "-NewButton", name: activityNameHyphened + "-NewButton" }) .addClass("smallButton") .appendTo(cell1) .click(CreateTaskRow(ActivityName));...

jquery or what?

Hi there I'm curious about how www.cakephp.org menu has made. I'm talking about: "Get It Now/Hot Features/Learn/Interact/Features" Do you have any idea? ...

Slideup\Animate next page with jquery

I use the following to load a new page within the current page, no refresh. $(document).ready(function(){ $("#leftnav").click(function(){ $.post("regions.php",function(data){document.write(data)},"html") return false; }); }); Is it possible to animate the new page with jquery, like slide up the new page? Thanks, ...

in IE, the "X-Requested-With" header of jquery becomes "x-requested-with" (lowercase)

Why it is converting to lowercase? In Firefox it goes as: "X-Requested-With". While in IE, it goes as: "x-requested-with" ...

Appending from HTMl LInk in JQUery

Hi, I am having a Html LInk created using <?php echo $html->link( 'Save Form', array('action'=>'/homepage', $userid), array('class'=>'button','id'=>'saveForm'), 'really save the Form ?', false ); ?> And i want this link to append it to #save using JQuery How could i append this Link to ...

Is the callback on jQuery's getScript() unreliable or am I doing something wrong?

Hello, I'm using the following bit of script to load another one: $.getScript("CAGScript.js", function () { try { CAGinit(); } catch(err) { console.log(err); } }); The idea is that $.getScript loads the script, then executes the callback when it's done. CAGInit() is a function that lives in CAGScript.js. ...

Where can I find a time range widget in Javascript/jQuery?

Hi, I'm looking for some sort of TimeRange widget in Javascript/CSS/jQuery. I'm not looking for a time/date picker, which are widely available. I need it for a website to allow businesses to select their openinghours by clicking and hovering over the hours they're open. +-----------------------------+ | 0h 0h15m 0h30m ... 23:45 | ...

Javascript / Jquery: $.param( ) inverse function

Given the following form: <form> <input name="foo" value="bar"> <input name="hello" value="hello world"> </form> I can use the $.param( .. ) to serialize the form $.param( $('form input') ) => foo=bar&hello=hello+world How can I deserialize the above String with javascript and get a Hash back? e.g. $.magicFunction("foo=bar&...

jQuery UI Draggables - Change Revert Position?

Ok, this should be easy for the right person: Is it possible to edit the revert position of a jQuery UI draggables helper? For example, I have icons the user can click and drag into groups on the page. When the user clicks an icon and starts dragging, a helper message appears right under their cursor and follows the cursor so long as the...

Jquery: On SlideToggle change text of parent element?

I am doing slideToggle as follows: $(document).ready(function(){ $("#show_morecats").click(function(){ $("#morecats").slideToggle("slow"); $("#show_morecats").css("background-color","#399C05"); }); }); HTML <a href="#" id="show_morecats">More</a> <div id="morecats" style="display:none;">Some text</div> Now...

unwanted "flickering" effect when using hide and show in jquery

I'm getting an annoying "flickering" effect in Firefox when using jQuery "show" and "hide" on some div's. Any idea when this could be happening? ...

jquery tools - overlay positioning problem

Here is the link: http://pangeaadvisors.org/projects.asp 2009 Projects position in the center as I want them to be. But click on 2007 projects. When clicked, overlay positioned on the right side and without the background. ...

How to POST empty <select .. multiple> HTML elements if empty?

I have the following multi-select box in a HTML form, where user can select one or more option. <select id="eng_0" name="eng_0[]" multiple size="3"> <option value="Privilégier">Privilégier</option> <option value="Accepté">Accepté</option> <option value="Temporaire">Temporaire</option> </select> When the user selects no option, t...

JQuery and the validate plugin

Rather than write my own validation I thought i would use JQuery instead however i'm not finding this easy either. I have a few questions which I hope someone can answer. Firstly, the error messages are only appearing when I click submit. How can I get them to appear after exiting each field? Here's my code for validation. Code: $(docu...

Get individual elements matching multiple selectors in jQuery

Hi all, If I am selecting as follows: $('li',"#container").draggable({ /* blah */ }); How do I get the individual class attributes for those elements selected so that I can something along the lines of $('li',"#container").draggable({ /* blah */ }).attr("name", "insert name of individual img"); The markup is as ...

Weird observation in JQuery / IFrames

Hi all, Here's the situation. function scrollLog(line) { // Assume Firefox // alert("weird"); frames['log'].find(line); }; Here's a function I call when the document is ready. The code as written does not always fire . However, uncomment the alert line, and after the alert is fired, the find function always fires. Any i...