javascript

Inclusion of a js file in HTML.

Hi, I am include a huge javascript file(500K) in my HTML. Is there a smart way to know if it has been loaded. One way I can think of is to have a variable in its constructor to initialize and inform me . The loading is asynchronous and I cannot proceed until function s of that JS are included. Thanks ...

Lobo Cobra HtmlPanel does not update GUI after JavaScript action

HI, I started implementing a HTML Browser in Swing. I want to use the Lobo Cobra toolkit because this toolkit inclused a renderer and parser for CSS and JavaScript. The pages are looking very nice and it is easy to use (one class implementation to show a html page). I want to show HTML pages in swing which can show javascript generate...

Is jquery interface.js com always working with the new version of jQuery ?

Hi, On the interface.js website (http://interface.eyecon.ro/) they propose to download interface.js with jquery 1.1.2. I would like to know if interface.js is still compliant with the new version of jquery and if there will be new release of this library. I had some trouble to use jquery 1.2.x with interface 1.2, and using jquery 1.1.4...

JavaScript Decimal Point Restriction With RegEx

My Regular Expressions knowledge is next to none but I'm having to have some client-side valiation against a text box which only allows numbers up to two decimal points with no other input. This script was a basis for entering numeric values only, however it needs to be adapted so it can take a decimal point followed by only up to two d...

"Operation aborted" error message when loading a webpage in Internet Explorer

Hi friends i design a page for my project. In that I display data from database. The problem is that it displays the data, but then a message box appears stating: Internet explorer cannot open the internet site 'http://localhost/....' operation aborted Please help me to fix this problem. ...

Print <div id=printarea></div> only?

How do I print the indicated div (without manually disabling all other content on the page)? I want to avoid a new preview dialog, so crating a new window with this content is not useful... The page contains a couple of tables, one of them contains the div I want to print - the table is styled with visual styles for the web, that shoul...

Is there a way to enable the JavaScript Error/Debug Console for Safari within Android?

I'm developing a JavaScript application that needs to run on the Google Android Phone OS. Is there a way to enable the JavaScript Error/Debug console within Safari on either the Android Emulator or an actual device? If so any instructions on how to do so would be appreciated. ...

IE caches dynamically added iframe. Why, and how do I prevent it?

I have the following HTML / JS: <html> <body> <script> function foo(){ var html = "<iframe src=\"foo.html\" />"; document.getElementById('content').innerHTML=html; } function bar(){ var html = "<iframe src=\"bar.html\" />"; document.getElementById('content').innerHTML=html; ...

HTML Text Input allow only Numeric input

Any quick way to set an HTML text input (<input type=text />) to only allow numeric keystrokes(plus '.')? ...

Loading Flexigrid for jQuery with JSON String

Hello There; I am trying to load the Flexigrid by using a JSON String which is returned by a WCF Service. my Service has a public string GetContacts(string CustomerID) method and it returns a Json string. that json string is created from a List object by using System.Web.Script.Serialization.JavaScriptSerializer class. So, my aim is t...

Using a Function to create an Object in actionscript 3.0

Since actionscript 3.0 is based on ECMAscript it shares some similarities with javascript. One such similarity that I have been playing around with is creating Objects from functions. In javascript to create an object, var student = new Student( 33 ); document.write( student.age ); function Student( age ){ this.age = age; } In a...

Send Text to a Port Using Javascript

I recently got a new printer (specifically a HP Photosmart C6380 if that helps) that allows me to send text to port 9100 to print. Telnetting into it and typing text to print works fine, but I'm wondering if I could make a webpage using HTML and Javascript that can send text directly to it. I'm currently using the code from the article...

Change the value of an existing onclick function

I have a page that is pulling in via an iframe a page of html content from a pre-existing content management system, whose content I can not directly change. I want to use jquery to alter some of the links and button locations dynamically. For links within the page I was able to change the href attr values of <a href="/content.asp">mo...

How do I add Javascript attributes to ASP.NET RadioButtonList items?

I'm trying to add some onmouseover and onmouseout attributes to any of the <input>, <td>, or <label> elements for each ListItem of a RadioButtonList. How do I do this? Here's what I've tried. This does not work... ASPX File... <asp:RadioButtonList ID="RadioButtonListPaymentFrequency" runat="server" RepeatDirection="Vertical"...

Stopping refresh when flash has focus

How do I stop a browser refresh from happening when a flash object has focus inside a pop up window? Yes, I abhor pop up windows too. Yet we have a flash questionnaire that is being wrecked from users who use refresh. I also already have js in place that effectively blocks refresh, UNTIL the flash gets focus and the user presses refre...

IE click sound and jQuery

Using jQuery, is there a way to disable the click sound in IE that happens when you post? ...

Elevating a browsers javascript permission?

I'm working on an internal tool, and I recall there being some way to make your script prompt for elevated permissions, and if accepted, allowing cross site requests etc...As this is an internal tool, this may accomplish something I need. Does anyone know how to do this? To elaborate, I'm actually trying to read (in javascript) the con...

embedding audio in html - ie and firefox using php...

I'm trying to create an audio captcha system for the visually impaired. I have a system that will glue several wave files together, but I'm having trouble embedding them in ie and firefox. <script type="text/javascript"> function EvalSound(soundobj) { var thissound=document.getElementById(soundobj); thissound.Play(); } </script> <embe...

Does jQuery have an equivalent to Prototype's Element.identify?

Is there a built in method or defacto default plugin that will let you automatically assign an unique ID to an element in jQuery, or do you need to implement something like this yourself? I'm looking for the jQuery equivalent to Prototype's identify method Here's an example. I have some HTML structure on a page that looks like this <...

Getting an absolute URL from a relative one. (IE6 issue)

I'm currently using the following function to 'convert' a relative URL to an absolute one: function qualifyURL(url) { var a = document.createElement('a'); a.href = url; return a.href; } This works quite well in most browsers but IE6 insists on returning the relative URL still! It does the same if I use getAttribute('href'). The o...