When the window is resized, I need to know how big the table is, so I can dynamically fit everything else nicely in-between. The table height is solely dependant on the contents, which are loaded dynamically. How do you calculate the rendered height of the table in JavaScript?
...
Hi all,
I'm developing a native iPhone app using Phonegap, so everything is done in HTML and JS. I am using the Flurry SDK for analytics and want to use the
[FlurryAPI logEvent:@"EVENT_NAME"];
method to track events. Is there a way to do this in Javascript? So when tracking a link I would imagine using something like
<a onClick="fl...
I'm no good at Regular Expressions, really!
I would like to specifically detect WebKit browsers below version 525.
I have a regular expression [/WebKit\/[\d.]+/.exec(navigator.appVersion)] that correctly returns WebKit/5….…, really, I'd like it to return only the version number, but if the browser isn't WebKit, return null, or better s...
Here is a snippet of javascript for loading a script onto a given page asynchronously. I was wondering if there was anything wrong with it? Can it be improved?
I haven't played with this yet, but some things I'm worried about are:
- cross browser support
- when script.readyState is true, will the old version of that function get clobbe...
I want to pass data to id
<script language="javascript" src="/foo.aspx?id=1"></script>
I have this code in a aspx page.
The data should be passed on load, before this code is being executed.
how can i do that?
...
I am trying to make a simple setTimeout, to make a div tag invisible after 2 seconds.
The setTimeout function makes the div invisible but irregularly, sometimes immediately and sometimes after 1 sec, and so on.
Here is my code:
function beginTimeOut(){
t = setTimeout(function(){hideSubMenu()},2000);
}
function hideSubMenu(){
...
Hey see my link: http://www.zookacreative.com/xgraph/
I'm using nathan searles looped slider jQuery plugin and it works in everything but Firefox for some reason.
And clue?
...
Javascript is known to be single-threaded in all modern browser implementations, but is that specified in any standard or is it just by tradition? Is it totally safe to assume that javascript is always single-threaded?
...
A URL redirects to another link. How do I know which link it gets redirected to with PHP and JS?
And is finding the filesize of the new link possible too, without complete transfer of the file?
Thanks in advance.
...
For my client side development I use MooTools primarily, I have also just recently started learning rails. What is the best method of using Mootools in rails pages? Just adding my code inline like I would any other server side language? Or is there a better and cleaner way to do things?
Basically I'm asking the most conventional way of ...
I have a very simple table on my website, that displays different URL's. I have an input field where I can type in a URL and click 'Submit' to add additional URL's.
However, I want to add an MD5 grabbing feature to this, using @md5_file(); to grab the MD5 of the URL and check to make sure it's the MD5 it should be, before adding it to ...
I made a javascript library that lets me drag a marker from a dragzone to one or more dropzones.
The problem is... the mouseup event happens over the marker I'm dragging, no te dropzone.
How can I detect in wich dropzone was the marker dropped, and in wich coordinates?
Here's my script:
http://dl.dropbox.com/u/186012/demos/dragger/dr...
is there ready code snippet for using pop-up modal div without using jquery?
...
In the example below, when I click the button, it says "Load was performed" but no text is shown.
I have a clientaccesspolicy.xml in the root directory and am able to asynchronously load the same file from silverlight. So I would think I should be able to access from AJAX as well.
What do I have to change so that the text of the file h...
I don't know much about jquery at all, so bear with my ignorance, but I'm pretty sure I can accomplish this with jquery.
I need jquery to check if an element exists, and if so, add a class to a different element. For example,
if class "minimal-price-link" exists, then add a class to "regular-price" or what I really am wanting to do is ...
Hi There,
I would like to use jQuery to find the last page name / directory from the url and display it on the page in a <h3> container. For example: /_blog/PunkLogic_News/tag/videos/ I would like to display 'videos' in a specific <h3 class="urltag"> on the page. /_blog/PunkLogic_News/tag/Noosa_Biosphere/ I would like to display 'Noosa ...
I thought this would be pretty simple.... Basically, it's a 5-star rating system. When a user clicks, for example, three stars... I want to freeze those three stars right where they're at. I've been trying to simply remove the hover for the a href so it stays what it was at... maybe that's not the right method. I've exhausted absolutely ...
I'm populating a list by cloning elements into it. Then I change attrs to make each item unique. They need to call a function on click, so I'm wondering if it's more efficient to use new_element.click(func); or new_element.attr('onlick','func();');
...
I'm trying to find out what data/error jquery's .load() method is returning in the following code (the #content element is blank so I assume there is some kind of error).
Where do I find in Firebug what content or error .load() is returning?
How can I use console.log to find out at least what content is being returned?
<!DOCTYPE ht...
I'm converting string to timestamp by using
var timestamp = new Date(month+"/"+day+"/"+year).getTime()/ 1000;
My question is how to set it as UTC timezone before converting to timestamp ?
...