(The answer to this, if there is one, is probably out there already, but I lack the proper terminology.)
I have a function, a(), that I want to override, but also have the original a() be performed in an order depending on the context. For example, sometimes when I'm generating a page I'll want to override like this:
function a()
{
...
One thing that bugs me about IE is that when it goes to load a page with an iframe it will wait until the iframe has finished loading before it will render the page. Firefox by contrast will render all the other page elements while the iframe is loading which is really nice if the iframe takes a long time to load because it gives the us...
I am developing a site that makes extensive use of JavaScript (jQuery). I regularly get the IE 'Stop running this script?' error dialog when I try to close the browser.
I'm guessing the problem occurs because the site is a single page that uses AJAX, so there are no postbacks to reset IE's count of commands executed.
Client-side regis...
Does anyone have a list of email addresses that I can use to test my JS address validation script? I'm looking for as complete of a list as is reasonable to test the most common edge cases, if not all cases.
...
There are a number of great Javascript libraries\frameworks out there (jQuery, Prototype, MooTools, etc.), but they all seem to focus on DOM interaction and AJAX functionality. I haven't found any that focus on extending the built-in data types (String, Date, Number, etc.). And by "Extending" I mean methods to solve typical work-a-day pr...
I want to, from JavaScript, access as a variable the file that is loaded as an image in an img tag.
I don't want to access its name, but the actual data.
The reason for this is that I want to be able to copy it to and from variables so that I can , among other things, change the image without reloading it.
Can this be done? If so, ho...
I want to access a MySQL database directly from Javascript in an HTML page in Firefox.
Does such a library exist?
To be very clear CGI+AJAX will not work
Some background: I want to create something like a GUI front end for a MySQL database (that's not what it is but it's close enough). I'm thinking about doing this as a local HTML pag...
What is the best way to dynamically add TableRows and TableCells to an ASP.NET table from Javascript?
Thanks,
Jeff
...
I have a Flash movie embedded in some DIV. The trouble is that when I change any property of the enclosing DIV dynamically, Firefox (not other browsers) restarts/reinitializes Flash movie effectively resetting the whole progress (eg: file selection for upload, etc.).
Is there some sort of a workaround for this?
...
I wrote the following javascript to put in my startup folder to work around some problems with mapping drives. Unfortunately it has the side effect of starting command prompts with H:\ as current directory. How can I get around this?
var objNetwork = WScript.CreateObject("WScript.Network");
/* Remove Network Drives */
try {
objNe...
in javascript, when I receive a focus event, how can I work out which element has lost focus? I'm trying to avoid having to put an onblur event handler on all elements within my web page.
...
Hi,
I have some jQuery JavaScript code that I want to run only when there is a hash (#) anchor link in a URL. How can you check for this character using JavaScript? I need a simple catch-all test that would detect URLs like these:
example.com/page.html#anchor
example.com/page.html#anotheranchor
Basically something along the lines of...
Following the JSONRequest proposal, I've found code for the JSONRequest object. However, this object depends on JSONRequestError, and the code for that is nowhere to be found.
Anyone know where I can find the code?
Thanks in advance!
...
How do I send a cross-domain POST request via JavaScript?
Notes - it shouldn't refresh the page, and I need to grab and parse the response afterward.
Your help with some code examples will be much appreciated.
...
I would like to get all descendant text nodes of an element, as a jQuery collection. What is the best way to do that?
...
Hello,
When i render a page using the Django template renderer, i can pass in a dictionary variable containing various values so i can manipulate them in the page using {{ myVar }}.
Is there a way to access the same variable in Javascript (perhaps using the DOM, i don't know how Django makes the variables accessible), i want to be able...
I have a 5 aspx page "wizard".
each one contains a "SaveAndExit" button that executes a c# function on a common static class. After saving , the c# code redirects to another page.
Is there a way for running javascript: alert('Data Saved'); after the saving, and before new page is Loaded.
...
Topic: Programmatically manipulate web browser in OS X 10.4.x+ Tiger/Leopard.
Subjects: Webkit, Safari, Firefox, APIs, Applescript, Automator, Javascript, Ruby, Ruby on Rails, OS X, Tiger
Goal: Collect/Read/Extract URLs from Safari into text (Ruby on Rails code) file.
Note: A solution that uses FF would be very appreciated, too. I use Sa...
Assuming I have a tree structure
UL
--LI
---INPUT (checkbox)
And I want to grab the checked inputs, I would select
$('ul li input:checked')
However, I want to select the checked inputs of a specific object $myUL that doesn't have an ID.
$myUL.children('li input:checked')
returns all li's since children filters immediate childre...
I have several aspx pages that can be opened either normally (full screen in browser), or called from another page as a popup (I am using Greybox, fwiw)
If the page is opened as a popup in Greybox, I would like to NOT display the master page content (which displays common top and left menus, etc).
As far as I know, there is no way of k...