Hello,
I'm writing a callback function for the FB.Connect.showPermissionDialog() function which accepts permissions and an optional callback function.
It's supposed to be passed null if the user rejects the permissions dialog. But for some reason, my script always makes the post request even if the permissions request failed.
echo("F...
I have a YUI-Uploader lying in some Element, which is a jQueryUI-Draggable.
After clicking the Uploader-Button which opens the File-Select-Dialog, the Draggable got a MouseDown-Event => is sticky at my mouse.
How can I prevent the YUI-Upload-Button from bubbling the MouseDown-Event?
In Webkit the Upload-Button (which is a transparent F...
I have a page that returns a dynamic list of items
<ul>
<li>item1</li>
<li>item2</li>
<li>item3</li>
<li>item4</li>
<li>item5</li>
<li>item6</li>
</ul>
I need a way to insert tags around every grouping of 3 list elements. Basically transform the code above into this
<ul>
<div>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</d...
I'm working on replacing an existing web grid in an ASP.NET web application, with a new implementation. The existing grid is powerful, but not flexible enough. It also brings with it all kind of frameworks we don't like to have on our web pages.
While looking into existing options I noticed I can break the available solutions into two m...
I have a form and I'm using jQuery to validate that the have entered in the correct information into the textboxs. That works fine, because I have this code:
var name = $("#business_name").val();
if (name == "") {
$('#namelabel').show()
$("#business_name").focus();
return false;
}
that tests to see if ...
What is the advantage to putting you javascript for your rails app into a .js.erb file instead of just throwing it in your application.js file? I have a create button for businesses so should I put the code into a create.js.erb file or put it into my application.js using:
$("#business_submit").click(function() {}
All that aside is tha...
I have been using (and loving) the jQuery intellisense for Visual Studio 2008 (blogged about by Scott Guthrie here) but has any one ever come across an intellisense script for the UI components of jQuery?
Thanks!
...
When I insert records with jQuery("#table").append(..) in a table, taking the height and width of the table jQuery("#table").width() or jQuery("#table").height(), is not updated. If before taking that write "alert('something');", it works well.
...
Hi I'm using Jquery to animate a div from a set height to 100% and back to a set height again. This is used to show/hide text from a wordpress post that is longer then the set height (overflow is hidden). I'm not able to animate the div from the set height to 100% -- instead the div jumps to 100% of the height. It does animate back to it...
Hey, I seem to be having a problem with my table when I load in more information with Jquery.
When I click the 'more info' link more content slides down but unfortunately seems to
expand the table right or something.
Here are a picture of the page being expanded to explain better:
'more info' link clicked:
Click Here
And here is th...
Is it possible to get both the attribute name and the value of an element?
Basically i want to get the name and the values of all attributes of a single element, in order to write them into a Javascript Object like this:
obj {
key: "value",
another_key: "another_value",
}
Thx for any response
...
I have an array in Javascript:
var array = new array();
array[0] = "apples";
array[1] = "oranges";
array[2] = "pears";
In PHP, with a given array, I can use the following to loop through an array, and break up the keys and values:
foreach ($array as $key => $value) {
echo("Key is $key and Value is $value");
}
How can I do this ...
I've been trying to get the Zend Jquery autocomplete function working, when i noticed this section in the Zend documentation.
The following UI widgets are available as form view helpers. Make sure you use the correct version of jQuery UI library to be able to use them. The Google CDN only offers jQuery UI up to version 1.5.2. Some o...
I'm working on an app that allows tagging directly on photos via clicking (like Facebook, flickr, et al). However, I can't seem to register the right coordinates for a click on a photo. The problem is the x coordinates seem to be absolute x distance of a click within the browser window(rather than within the photo), while the y coordi...
Hi, I'm having some trouble with IE6 and jQuery UI. I have a popup dialog (modal, if it matters), that displays a "yes/no" dialog to the user with some information. In order to facilitate this, I build the dialog with autoOpen = false, and then I call $('#popup').show() later on as needed, in response to various different events. Now, in...
Hi everyone,
I have my own simple equal heights code in jQuery to make two columns the same height:
var content = $("#content");
var sidebar = $("#sidebar");
var maxHeight = Math.max(content.height(), sidebar.height());
content.height(maxHeight);
sidebar.height(maxHeight);
This JS file is included in my header file. I have a print st...
<div class="item">
<p><img src="images/photos_sample1.jpg"
border="0" rel="images/google_map.jpg"></p>
<p>Dining Area</p>
</div>
<div class="item">
<p><img src="images/photos_sample2.jpg"
border="0" rel="images/sample_photo.jpg"></p>
<p>Pool Area</p>
</div>
I have this html code, and I want to get the rel ...
Hi I a trying to do the following:
onMouseOver I want to:
1. remove the existing class (navLinkTD) which provides a black border around the table.
2. Add a new class (navLinkTDActive) which provides a border around the top, left and right but has a background image which changes the border on the bottom to have a small arrow.
Once the ...
Hi,
I am using the Autocomplete plugin by Jorn.(bassistance.de/jquery-plugins/jquery-plugin-autocomplete/)
I wanted a dropdown as soon as I place my cursor in the input box
(local values). I tried putting minChars as 0. It didn't seem to have
much effect. I made the following change in the autocomplete code
.click(function() {
...
If I have an element nested as:
<ul>
<li><img src="/blah.jpg" class="removeme" /></li>
<li><img src="/ole.jpg" class="keepme" /></li>
</ul>
How do I go about removing the entire list containing the img class that has removeme?
I've been able to get to
alert($(containername).children('ul').children('li').children().hasClass("r...