jquery

JQuery "floating" tab like GetSatisfaction

I want to create a tab/widget/thingymajiggy like the feedback-thing in this picture: That behaves like this. I just need to redirect on click, I don't need all the other stuff. I have been unable to find a JQuery plugin, that does this - but maybe I just don't know the correct term. ...And yes, I could just pillage getsatisfaction, ...

jquery animation from inside ajax loaded div

Hi There, I have a simple jquery animation on a div, which is inside a div, that has been loaded dynamically. Ie: User clicks link, drilldown.php loads up inside a div below. Then I have a bunch of divs inside that, one for each option. Upon clicking the option, i want the div (or image inside the div, not fussed) to animate to approx ...

JQuery Issue with all browsers but IE 6.0/7.0 :)

Never thought I'd have this problem :) The following snippet of code works in IE 6.0/7.0 but none of the other browsers (well, IE 8.0 in "compatibility view"): $(document).ready(function(){ // Search button code $('#btnSearch').click(function() { //start function when button is clicked var sid = $('#search_id').val...

At witt's end... Javascript won't replace '\n'!

Hey guys, I've been going at this problem for a solid couple hours now and having zero luck. No clue how this is even possible; I'll try to summarize. I'm using TinyMCE to insert new content to a DB, that content is being sent back as an AJAX response after it is inserted into the DB and then shown on the page, replacing some old cont...

undefined error when calling function from another js sourcefile

Hello, I have a question that concerns calling a function within another js sourcefile. I declared the sourcefile before the file with the function that calls that particular function. I thought this would work, but it gives an undefined error. I also have a function in a file that calls a function in a later declared sourcefile. Tha...

Jquery accordion nested problem

Dear all, I am having trouble setting up two independent accordions. They should open / close independently and accordion2 should be nested in accordion1 (code see below) What happends right now is that they are overlapping each other when opened and IE is even overwriting 'text below accordion 1'. This should not happen. Any ideas what ...

If only one child (li#inThis), remove self (ul#section)

How can I set display:none to a ul if it has only one child? Eg, this would be hidden: <ul id="section"> <li id="inThis">In this section:</li> </ul> But this would not: <ul id="section"> <li id="inThis">In this section:</li> <li>Item 1</li> <li>Item 2</li> </ul> Thanks! ...

jQuery doesn't find dynamically added DOM objects?

I am very new at jQuery ... I've used Javascript many times and am quite familiar with DOM manipulation but simply not the API or gears of jQuery. I am dynamically adding DOM elements via a JSON call like so: $(document).ready(function() { var url = "jsonMenuItems.js"; $.getJSON(url, null, function(data) { v...

How to keep String in the Form input in cakePhp

Hi, I am using Cakephp and JQuery in my application. I am having a Form generated in cakePhp.I got the posted values of this form using echo http_build_query($_POST); If my form has any field with name as Firstname it is posted as correctly, But when i have any field in the form with the name as Last name (i.e. with spaces in be...

JQuery - getting the parent div from a nested element ID

Hi, i am trying to access an element by using an ID of one of it's nested elements, using JQuery. For example : I need to find 'myDiv' from its nested 'searchBox' element. The issue is that the hierarchy changes and the searchBox will not always be in the same nested position. so i essentially need something that says: Give me the DIV th...

MVC treeview (UL & JQuery), how to save state

Hi there, I have a treeview (using an unordered list and JQuerys treeview) in my MVC app and i am wondering the best way to keep the nodes open and close state persisted on postback? ...

Positive number validation in jquery

I have use an expression for validating positive number ^\d*.{0,1}\d+$ when i give input -23 then it check it is negetive but when i give input +23 then showing invalid number. what is the problem ???? any one can give a solution that With +23 it will return (positive) ...

jquery draggable with safari 4

$(".droppable").droppable({ drop: function(event, ui) { var fileName = $(ui.draggable).attr("src").match(/[\/|\\]([^\\\/]+)$/); // get filename. var url = $("#hurl").val(); if ( $(ui.draggable).attr('name') == "template") url = $("#turl").val(); ...

jQuery ajaxSubmit(): ho to send the form referencing on the fields id, instead of the fields name?

Hi guys, im pretty new to jQuery, and i dont know how to do that, and if it can be done without editing manually the plugin. Assume to have a simply form like that: <form action="page.php" method="post"> Name: <input type="text" name="Your name" id="contact-name" value="" /> Email: <input type="text" name="Your email" id="contact-email...

jQuery Slider

I'm after the best jQuery slider solution to showcase an image and a few lines of text - layed out like the above image.. It would need to slide thru each slide automatically after a certain amount of time and also have the functionally that enabled the user to choose which slide it showed by clicking on the numbers (bottom right). A ...

Conditional Rule Validation in JQuery

Hello, I am using JQuery Validation. Now I want my rules to be invoked only when certain condition is satisfied, namely, I want $("#AppSelectField").is(':hidden') to return false, only then I invoke the rules. My rules is as follow: $(function() { $("#RequestLock").validate({ rules: { FloorNum:{ required: tr...

Change URL parameters with jQuery?

I have this URL: site.fwx?position=1&archiveid=5000&columns=5&rows=20&sorting=ModifiedTimeAsc what I need is to be able to change the 'rows' url param value to something i specify, lets say 10. And if the 'rows' doesn't exist, I need to add it to the end of the url and add the value i've already specified (10). Anyone know the easiest ...

Why does Jquery submit() fail with an error?

I have a simple form on a page and I want to auto submit it when some event occurs. The test code below tries to submit the form as soon as the page loads, but it fails. Firebug says that "H[G] is not a function". H[G] appears to be "submit". Am I doing something really obviously stupid? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 S...

How to fade to display: inline-block

In my page I have a bunch (about 30) dom nodes that should be added invisible, and fade in when they are fully loaded. The elements need a display: inline-block style. I would like to use the jquery .fadeIn() function. This requires that the element initially has a display: none; rule to initially hide it. After the fadeIn() the element...

How to manipulate nodes coming from a $.get request?

I'm doing a $.get() request which returns some HTML. I would like to manipulate that html before I'm adding it to the DOM (make it hidden). Can I do this without adding it to a behind-the-scene node, manipulate it and finally add it to the destination node? ...