After my call to $.ajax(), all UI Dialogs currently close and the page appears to do a full postback as per firebug--this is not what I want. I want the List ** UI Dialog** (read: partial view) visible, then the "Create" button is pressed to open another UI dialog for creating an address. I want to ajax post the data (preferably strongly...
Ok, I've been trying to get this working for a few now and thought enough is enough and leave it to you guys to help. Depending on what I click, true or false, this will cause my table to show or hide accordingly. My issue is, if i cancel(close) out of this while the selected is "true", and come back to this, "true" will still be selecte...
I'm trying to build a sortable listed thats animated.
Apples
Bananas
Cavemen
Let's say I've selected Apples and I want to switch it with Cavemen, I want to click on Apples, drag it to cavemen and have bannas and cave men animate up to the proper positions.
I am aware that JQuery UI Sortable allows for some level of this functionalit...
Why would firefox give me the correct output but Chrome doesn't ?
I am trying to find the height of a div that has not been specified in the stylesheet or anywhere else.
Chrome gives me the integer value of '20', but firefox gives me the correct value (using firebug) of 516.
This is the code I am using to generate the console.log:
va...
Hi
I am having troubles binding live events to dynamically created content.
I have a page which loads a html page through an ajax call. The loaded html page contains some javascript which is then executed. The executed javascript creates some elements.
I want to bind a click event handler to those elements, however after binding them ...
Hi,
I have a form wizard and need to block the user from moving from step 1 to step 2. It's easy enough to do this with validation, but this isn't a requirement, just a warning if a certain combination of boxes is checked. I have it working to a point, unfortunately it doesn't stop the user from moving from step 1 to step 2 and displays...
i have a textfield which has the autocomplete plugin of jquery .I am getting the json data from the PHP in the form of (ABC:BCD) what my problem is iam getting autocomplete but when i select that iam getting the value in the textfield
$("#txt1").autocomplete({
minLength: 1,
source: "abc.php?searchMode=''",
select: func...
I'm trying to use JQuery to add/remove classes as part of a function that uses links to switch around the main content divs on my site.
Here is my JavaScript:
$(document).ready(function () {
var clickHandler = function (link) {
$('.tab').hide();
$('#options_' + link.data.id).show();
$('.selected').removeClass('selected...
Console is returning blank for the action attr. I've moved the:
$('#file_upload').attr('action','io.cfm?action=updateitemfile&item_id='+$('.agenda-modal').attr('data-defaultitemid'));
Around in and out of the .live('submit') and no luck. I also tried it without the +$('.agenda-modal').attr('data-defaultitemid') part and it still retur...
I've seen this site:
http://www.visitmanchester.com
Essentially all of the content loads on the same page, dynamically. Pausing to load the content then scrolling to the correct portion of the page.
...
I am trying to build a floating menu that follows the user when he scrolls the screen:
menuYloc = parseInt($("#floatMenu").css("top").substring(0,$("#floatMenu").css("top").indexOf("px")));
$(window).scroll(function() {
var offset = menuYloc+$(document).scrollTop()+"px";
$("#floatMenu").animate({top:offset},{du...
Triggered when an item is selected from the menu; ui.item refers to the selected item. The default action of select is to replace the text field's value with the value of the selected item. Canceling this event prevents the value from being updated, but does not prevent the menu from closing.
$("#txt1").autocomplete({
minLength: 1,
...
There have been similar questions asked, but the solutions do mesh with what I'm trying to do. Basically, I have an article with a title (<h1>). I don't want to control the length of the title, but I also don't want the title to appear on multiple lines. Is there a way with css or jQuery to resize text based on the width of a <div> ta...
I have an element that's getting styles applied via JavaScript. I'm not sure exactly where; is there a way to check Firebug to show where the "element.style" is actually coming from?
...
I have an extension going like:
$.fn.crazything = function() {
var self = $(this);
// do some crazy stuff
return self;
}
And when I call it like:
$("div.crazydiv").crazything();
It works, but only on the first matching div. If I have more than one div on the page, I need to do:
$("div.crazydiv").each(function(i) { $(th...
On my page http://all-fours.pl/ I'm using moo.fx for.. something, I don't really know what. And now I was trying to add a jquery banner rotator. But still regarding fact that I'm setting my banner script in jQuery.noConflict(), the moo.fx library gives errors :
function to set the jquery cycle plugin:
<script type="text/javascript">
jQ...
I've got some markup that looks like this:
<h3>Mgmt</h3>
<div class="ManagementOperations">bla bla </div>
<div class="ManagementOperations">bla bla </div>
<div class="ManagementOperations">bla bla </div>
<div class="ManagementOperations">bla bla </div>
<div class="ManagementOperations">bla bla </div>
<h3>People</h3>
<div class="peopl...
I need to load an html string into memory from the page and remove divs that have a certain class using jQuery.
What I am trying to do is below but it doesn't work.
var reportHTML = $('#collapsereportsdata').html()
$(reportHTML).(".dontprintme").each().remove();
Thanks
...
Hi Could anyone tell me the best way that I could convert the jquery code below to use a drop down item in a combo box instead of the link shown here. to open the css file 'business.css' and display in a text area
thanks
rifki
a href="css/business.css" class="link">business style
<script>
$(function(){
$('.link').click(function(){...
I have a form wizard. On step one I need to display a warning if a certain checkbox is checked and others with a certain class aren't . The problem is that it displays the confirm/warning on the second step after hitting the next button. I need it to prevent the browser from moving to the second step while displaying the warning.
$("#s...