javascript

is there any way to copy to the clip bord without the flash

is there any way to copy to the clip bord without the flash and without clipboardData too because it works on ie only i have html input tage and have some text i want copy it ...

How can I detect if Flash Player is disabled in a browser using JavaScript?

I know how to detect if Flash player is installed in a browser. I'm using the hasFlashPlayerVersion() function of swfobject for that. However, I can't seem to find any documentation on how to detect if the plug-in is installed and just disabled. I didn't see any documentation in the Flash Player Detection Kit that checks if the plug-in i...

Capture iframe load complete event.

Is there a way to capture when the contents of an iframe have fully loaded from the parent page? ...

dynamically generated html doesn't wrap to the screen.

I cannot for the life of me figure out why this markup is not wrapping. There's nothing special about it, except that it is generated by javascript. Here's the code. Any thoughts on why it's messing up would be welcome. I can include the js if you need. but basically it reads the text in the textarea, extracts the words, and creates a l...

interactive map not working in IE7

Hello, I am trying to build an interactive map using an imagemap and jquery. I have it completed and it works great in FireFox but IE7 is causing some issues. You can take a look at it here: http://www.thecolumbianchicago.com/map/ In IE7 the title of the rollover is not getting the width set properly. Also once you rollover the tall ...

javascript regex iso datetime

does anyone have a good regex pattern for matching iso datetimes? ie: 2010-06-15T00:00:00 ...

Stop jQuery from calling next events

I write a jQuery plugin the first time and I'm wondering if there is a way to stop jQuery from running the next attached events. Example: $(this).submit(function(){ return $(this).do_some_validation(); } If validation didn't pass (i.e. the function returned false), the form should not be submitted, but if there are any other even...

Creating a custom jQuery build?

We have a small javascript project that will be using a handful of jQuery selectors, but we don't by any means need the full jQuery package (i.e. effects). Is there any current way to get a custom build of the latest jQuery (1.4.2)? ...

What does JavaScript element.style='whatever' do to the html?

Does it enclose the element within a SPAN element with the given style or does it just assign the style to the attributes of the element itself? How about when I do element.style.border='1px solid red'? Does it depend on the browser or is there a rule? ...

using Blobstore Python API with ajax

there is any sample showing how to use the blobstore api with ajax? when i use forms works fine, but if i use jquery i don't know how to send the file and i get this error: blob_info = upload_files[0] IndexError: list index out of range I have this code in javascript function TestAjax() { var nombre="Some random name"; aja...

Add Facebook Profile Picture after Login?

Here is my code:: //if user is logged in - do this function login() { FB.api('/me', function(response) { document.getElementById('fb-info-block').innerHTML = "Welcome, " + response.name + ".<br /><br />" + "<fb:like href = 'www.whitbreaddesign.com' show_faces = 'false' width = '100' action = 'like' colorscheme = 'light'></fb:like>"; ...

Debugging iPad Safari crash running Dromaeo JavaScript tests?

In an effort to better understand the JavaScript and DOM performance of Mobile Safari, I was trying to run the Dromaeo JavaScript performance tests on an iPad. However, part way through the tests, Safari will crash and I am sent back to the home screen. I first tried to run all the Performance Tests and crashed either toward the end of...

What is the best way to handle multiple key events in Javascript?

Pressing space bar in game will make a character shoot, pressing space bar when a confirmation box is shown will make this box disappear and pressing space bar in a highscore form will add a space in an input box. In this example there are several events for the same key, but only one is fired at a time. Is there a general (or specific ...

Struggling with jQuery Toggle function

I am working on a band blurb page, example here. The idea is to click on a photo which will display the band member blurb on the left, overlaying the overall band description. My issue with the current code is that using toggle to display the alternative individual blurbs means that when you click between the different members, sometim...

Uncaught SyntaxError: Unexpected token :

I am running an AJAX call in my MooTools script, this works fine in Firefox but in Chrome I am getting a Uncaught SyntaxError: Unexpected token : error, I cannot determine why. Commenting out code to determine where the bad code is yields nothing, I am thinking it may be a problem with the JSON being returned. Checking in the console I s...

How to check id of textbox in javascript?

Hello, I have this great javascript that automatically populates the values of all textboxes on a page with a number, starting at 1 then increasing. function editTextBoxes() { var textboxs = $('input:text'); for (i = 0; i <= textboxs.length; i++) { $('input:text:eq(' + i + ')').val(i + 1); } } ...

Cycle to next tab if current tab is empty - Jquery UI Tabs

I'm using tabs from jquery ui. When the page loads and if the first tab is empty, I would like the second tab to get selected. and if the second tab is empty, then the third tab gets selected etc. This is what I have and it works, but is there a cleaner/better way to do it? $('#tabs').tabs( { selected: 0 } ); var fullTab = 0; if ($(...

Javascript code visualization

I want to visualize the code dependencies in my Javascript projects - is there a package out there that will do this? ...

Populate a dynamic dropdown list based on Another dynamic Drop down selection

PHP/Javascript. Could any one help me out on how to populate a dropdown based on Another dropdown selection. This all should be a dynamic. Eg: I have two text boxes one is TechID and other is JOB ID. When I start typing Tech ID it suggests me the list of IDs which start with the input string i have put in Tech textbox. When i select the ...

Calculating the bounding box using Javascript

I have a latitude/longitude value and distance value. I need to calculate a bounding box with the given location as the center. so if the distance was 200 meters then the rectangle box should be 200 meters in front, behind, to left and right. How do I go about doing this using JavaScript? ...