display:none means that the element isn't rendered as part of the DOM, so it's not loaded until the display property changes to something else.
visibility:hidden loads the element, but does not show it.
Why does jQuery use display:none for its show/hide functions instead of switching between visibility:hidden and visibility:visible?
...
In a project of mine which relies on VE API, i face a weird situation. I construct VEPolyline and apply array of VELatLong objects to it, array is generated in jQuery's $.each loop like
push = new Array();
$.each(arr,function(index,ele)
path.push(ele);
})
everything is ok until zoomed, then i get following error:
Unexpected value...
I have tried every solution I found on here and even a larger Google search but nothing seems to work. Here is my problem... I have data that is in XML that I would like to visualize using the Google Visualization API. I was hoping I could simply use XSL to generate what I need instead of doing anything with data sources (I have my re...
Is there any way to detect a 64-bit java install in a 32-bit environment? The Java Deployment Toolkit detects nothing, but I was wondering if there was some secret browser way of detecting the 64-bit install client-side.
...
I have a rather complicated setup which I have boiled down to the code below. I have an outer FormPanel, where I am trying to include a component that is a sub-class FormPanel. In FF it is causing a "this.body is null" error.
Is this happening to anyone else? Is it possible to get this to work? I very much do not want to have to tou...
Hi,
I have a website where we use the Google Ad Manager to serve ads on the site. I would like to create a "Report this Ad" link that sends someone email about the problem, but it also needs to tell them the exact ad that was displayed at that moment.
There is just a small snippet of code that Google replaces with the ad code, example...
I want to check whether a div with a css class="x" has height="auto". If yes I want (with a jquery script) the css-class="a" removed from all elements with the css-class="y". If not the script does not have to do anything. thanks
...
I saw the cool AJAX odometer on http://odesk.com and thought it could be quite useful to have something similar for one of my sites. I came across this code that is similar (http://tools.uvumi.com/odometer.html), but it is for Mootools and I use Prototype on all of my sites. I'm wondering if something like this has been made to work wi...
I have a PHP script that I am using to generate some rather complicated javascript for a web application. It is necessary that this script be generated by PHP for scalability reasons.
Here is my problem:
if I name the file myscript.js, then I have to use htaccess to tell the webserver to pipe this through PHP (not preferrable)
if I na...
I've got some HTML like the following:
<ul>
<li><a href="#">Page 1</a></li>
<li><a href="#" class="toggle">[Open|Close]</a><a href="#">Page 2</a>
<ul>
<li><a href="#">Page 2-1</a></li>
<li><a href="#">Page 2-2</a></li>
<li><a href="#">Page 2-3</a></li>
<li><a href="#">Page 2-4</a></li>
</ul>
...
I'm trying to model my javascript object using visio, visio doesn't support javascript data types.
Then I start thinking, how do you desing model your javascript code?
Cheers
...
I've attached onsubmit handler in a form tag like this:
<form action="file.php" method="post" onsubmit=" return get_prepared_build(this);" >
but whatever global variable (defined earlier, of course) I try to change inside get_prepared_build() function - later it apprears non-modified. Looks like that this function
deals with a local c...
Hi all,
I've a var example = "05-10-1983"
How I can get the "next day" of the string example?
I've try to use Date object...but nothing...
...
Similar to this question, but taking it a step further. I would like to detect clicks outside of a set of items, which I am handling in the following way:
$('#menu div').live('click', function() {
// Close other open menu items, if any.
// Toggle the clicked menu item.
$('body').one('click', function(event) {
// Hi...
I am using jQuery to show / hide lists, but it takes two clicks on a link instead of just one to show the list. Any help?
jQuery.showList = function(object) {
object.toggle(function(){
object.html("▾");
object.siblings("ul.utlist").show("fast");
}, function(){
object.html("▸");...
I'm often conflicted about how to approach this problem in my applications. I've used any number of options including:
A generic multiselect - This is my least favorite and most rarely used option. I find the usability to be atrocious, a simple mis-click can screw up all your hard work.
An "autocomplete" solution - Downside: user must...
I've got a site I'm building here:
http://theoew.50webs.com/portfolio_2/
See how when you hover over the menu at the top right, the item becomes taller(20px to 50px). I was wondering if I could do the same thing but have the text move with the list. So when you hovered over the list item, it would enlarge and the text would move to th...
When looking at location.search, what's the best way to take the query parameters and turn them into an object literal? Say I've got a URL that looks like this:
http://foo.com?nodeId=2&userId=3&sortOrder=name&sequence=asc
What I'd like to wind up with is an object literal that looks like this:
var params = {
nodeId :...
Hey ya'll
I would like the label associated with a radio button 'hot'. I started to implement this using the .siblings() method. I think there must be a better way. The click event on the radio button looks like this:
$(".RadioButton").click(function(event) {
var questionId = $(this).find('input').attr('name');
var res...
I have a div full of 60x60 images arranged in rows of 5. I want to show an enlarged version (at 300x300 max) of each thumbnail when you hover each image. I have a surrounding div that hides overflow, so if you hover over an image at one of the corners, the enlarged image will get cut off, so I need to flip the image to the other side. ...