javascript

jQuery $(document).ready() failing in IE6

I have the following code: // Creates a timer to check for elements popping into the dom timer = setInterval(function () { for (p in pixelTypes) { checkElems(pixelTypes[p]); } }, 10); // Add Document finished callback. $(document).ready(f...

How to suppress javascript errors for sites I'm not developing?

I like to keep javascript debugging enabled in my browser so when I'm developing my own code I can instantly see when I've made an error. Of course this means I see errors on apple.com, microsoft.com, stackoverflow.com, cnn.com, facebook.com. Its quite fun sometimes to see just how much awful code there is out there being run by major s...

Simulators/emulators for mobile browser testing?

I'm doing development of a web application aimed at mobile devices. What software can I use to simulate/emulate mobile browser environments? I'm specifically looking for a way to test on Mobile Safari, the Android browser, mobile Opera, Mobile IE, the Blackberry Browser and any other common platform I'm missing. Note: I am using Windo...

Change background color of menu based on menu selection

I have a horizontal css menu with 5 items. e.g 1) Home 2) Users 3) Category 4) Products 5) Contact When "home" is selected the background color (via css) of the entire menu div (id="topmenu") is blue. I want the background color of the div to change to say green when "users" is selected and say purple when "category" is selected. How...

Looking for jQuery plugin (or code) to automatically scroll Carousel items on mousover

Does anyone know of a plugin for Jquery that can replicate this functionality? Dynamic Drive Cmotion Gallery The idea is you have a list of images and only X number of them are visible at a time, and instead of clicking next/previous to scroll thru the images they scroll relative to the offset from center position of your mouse. I've ...

JSON in JQuery

Dear all i am using php and JQuery, and JSON.Now i need to know how to parseThe JQuery data in javascript. load.php <?php ... $json =json_encode($array); ?> It Returns jQuery by following data [{"name":"STA","distance":"250","code":25}, {"name":"GIS","distance":"500","code":45}] jQuery $.getJSON("load.php", function(json...

Internet Explorer full screen mode?

I am building a web based free dynamic news reader (aka "autoplay" feature), that you can test it from here: http://www.fivetechsoft.com/news and I would like to implement a button to fullscreen it. Any hints? Please notice that only IE is supported by now. Other browsers support comming soon. ...

Custom Exceptions in JavaScript

Can I define custom types for user-defined exceptions in JavaScript? If I can, how would I do it? ...

jQuery Sounds IE7 / IE8 Issue with Flash ExternalInterface

I would like to add sound alerts to a web application. I believe that Flash is the best way to do this to support all major browsers, ie. IE, Firefox, Chrome, Safari. Chrome does not seem to work with the non-flash sound solutions. I have been using jQuery and would like to use the jQuery Sound plug-in. An example is shown at jQuery S...

debugging javascript for IE6

firebug is quite useful tool that I can't think myself living without it. I also downloaded the js file that helps you get similar functionality when using IE6 hoping it would help me resolve some issues, however, the messages I receive are not quite friendly such as: "Expected ':' (default2.aspx,16)" - on line 16 there is nothing that ...

"Access is denied" by executing .hta file with JScript on Windows XP x64

I have a simple HTML (as HTA) application that shows strange behavior on Windows XP x64 machine. I getting periodically (not every time) error message "Access is denied." when i start the application. The same application on Windows XP 32bit runs just fine... Does somebody has any idea or explanation? Error message: Line: 18 Char: 6 Er...

How to get the coordinates of a text in a pdf file

Hi, can anyone tell me how to get coordinates in pdf document using javascript, suppose if some text is written in pdf document then how can i get coordinates(x,y) of that text. Please help me. ...

GET parameters on ajax call (into modal dialog)

On an html page i click on a link and i get a dialog which loads server content through an ajax call. I cannot change the javascript that created this dialog neither the ajax callbacks . I have the need to access the href of the clicked link from another javascript to change some content loaded into the dialog from the ajax call. This ...

Finding the FORM that an element belongs to in JavaScript

How can I find out which FORM an HTML element is contained within, using a simple/small bit of JavaScript? In the example below, if I have already got hold of the SPAN called 'message', how can I easily get to the FORM element? <form name="whatever"> <div> <span id="message"></span> </div> </form> The SPAN might be nes...

What 'type' of Language is JavaScript?

Programming languages are often classified by their structure. To date there are many types, including (but not limited to!): Procedural, Structured, Object-Oriented, Concurrent, Functional, Event-Driven, Compiled, and Interpreted (Source). Some programming languages are a mixture of these constructs, while others may fall under only o...

Line numbering and copy/paste (HTML/CSS)

What JS/CSS trick can I use to prevent copy&paste of numbers in an ordered list? <OL> <LI>A <LI>B <LI>C </OL> A B C If it's not doable, what alternative are available? thanks ...

Problem with flash positioning itself over a javascript lightwindow in IE6 & IE7.

I have a problem with a flash object placing itself on top over everything in IE6 and IE7. Firefox renders the page correctly. I bet somebody else has had this problem and found some kinda solution to it. ...

<input type="file" /> opens file browse window in FireFox3 when clicking the form field part?

When clicking on the text box part of an <input type="file" /> in FireFox3, a file browsing window opens. This doesn't happen in IE7. You have to click the "browse" button to open the file browsing window. How can I prevent the file browsing window from opening in FireFox when a user clicks on the textbox area? I'd like it so it only...

Using jQuery to remove a second form element without losing the child elements

I have some AJAX work that brings across an additional form element that I don't need in the DOM. I don't have the ability to remove it server side, so I'm looking for some jQuery or classic JavaScript that will allow me to capture all the child elements of the form, remove the form I don't need and finally re-append the child elements ...

Any means of reading third party cookies from "friend" sites?

A recent question made me post this one. I'm working on a set of web pages that have some very simple user login, and store the user id in a cookie. Let's say that due to certain decisions which I'm in no position to overrule, the pages use several alternate domain names. I.e., the login page uses one domain name, and the page that shou...