javascript

Is it possible to obtain a web-browser's Java VM without using an applet?

We have an ages old Java applet that we want to move forward to a newer version of Java (5 or 6), however until today we've always supported people using Java VMs as far back as version 1.1 (specifically for those still using the Microsoft VM) As part of the upgrade, we'd like to be able to serve a web page to people using out-of-date V...

Need Flash / Lightwindow Help Fast

I'm trying to finish up a Flash website for my company, and am having some major frustrations with Lightwindow links in Flash. I have a "Videos" page that has a few links, that when you click on one, it opens a Lightbox with a .SWF that plays the video. The problem is that the top of the Lightwindow and the Flash menu bar get in the way ...

Light Javascript framework

I'm trying to create a small Javascript "framework" that I can use in my greasemonkey scripts. I only need very basic functions, so this is why I choose not to use mooTools or DOMAssistant. Besides, I'm not going to be silly and put DOMAssitant in a 20KB Greasemonkey script! I just want a small, neat snippet of code. I have a small prob...

Javascript textRange error

hello all, Can anyone explain whats going on 'under the hood' with textRanges in IE/javascript? What do the Start and End positions actually point to/reference? I am using textRanges to process data entered by the user. I create an array of textRanges, one for each line, based on carriage returns in the data. Every thing works as I expe...

Google maps api database interaction

I am currently working on a project where users need to be able to enter geological data (such as a certain street name) into a website which will be put into a database and then retrieved and displayed on a Google map for all users to see. I've done a little research and so far it looks like the best way to do this is to use a php scri...

javascript and css loadings

I was wondering, If I have, let's say 6 javascripts includes on a page and 4-5 css includes as well on the same page, does it actually makes it optimal for the page to load if I do create one file or perhaps two and append them all together instead of having bunch of them? ...

open jquery modal dialog on page load

I have a page, i want it to disploay display it content in a modal dialog (jquery UI dialog) as soon as the page is loaded. $(document).ready(function(){ $("#example").dialog(); }); <div id="example" class="flora" title="This is my title"> I'm in a dialog! </div> Thanks ...

How can I get a specific parameter from location.search?

If I had a URL such as http://localhost/search.php?year=2008 How would I write a JavaScript function to grab the variable year and see if it contains anything? I know it can be done with location.search but I can’t figure out how it grabs parameters. thanks ...

Sequentially firing multiple random timeouts in JavaScript

Hello All, I know at first glance (due to the title) this looks like one of the "Did you try searching Google before posting?" questions, but I can't seem to find an answer for the specific issue I'm experiencing. Sorry if I'm a noob.... still learning :) I need to simulate a pause in javascript, but the setTimeout(function_call, tim...

$.post() doesn't have time to run?

I'm trying to send data from a form to an external script prior to submitting the form, yet I cannot seem to get the data to reach the external script unless I return false; on the form itself. $(document).ready(function(){ // Handle Form-Submission $("#mainForm").submit(function(){ // Reset Error Array errors = new ...

ASP.NET Application setting debug="false" in web.config breaks Javascript

We have an application that works fine when we have debug="true" in Web.config, when we set this to "false" however the application stops working. It seems as if object inheritance is not working in the javascript (Microsoft JScript runtime error: Object doesn't support this property or method). Has anyone come across this before? A bit...

Google Apps HTTP Streaming with Python question

I got a little question here: Some time ago I implemented HTTP Streaming using PHP code, something similar to what is on this page: http://my.opera.com/WebApplications/blog/show.dml/438711#comments And I get data with very similar solution. Now I tried to use second code from this page (in Python), but no matter what I do, I receive r...

Difference between == and === in JavaScript

What is the difference between == and === in JavaScript? I have also seen != and !== operators. Are there more such operators? ...

How to return value from html popup

Hi, I need a terse, clean way to implement this in asp.net mvc (+/- jquery or js)? User clicks an element in webform A; Webform B pops up; User interracts with webform B; On closing webform B, probably by a submit button, the source element in webform a is updated with a value from webform B Thanks. ...

How can I get the form value from a disabled <input> element

The HTML standard for forms appears to be such that disabled input elements do not contribute to the form name/value collection. Is there ANY way to get around this? I need to be able to toggle disable on and off but still return whatever the value is when the form is submitted. I realize that I can use JavaScript to copy the value to...

ASP.NET MVC without MicrosoftAjax.js and MicrosoftMvcAjax.js

What parts of functionality will I lose after removing the MicrosoftAjax.js MicrosoftMvcAjax.js files? I don't want to use them for various reasons and I thought if there were any 3rd party helper methods that would mimic existing ones but are tied to another JavaScript framework, such as jQuery. Also, please tell where usage of a...

How to choose more than one option from a select box

Hi all, i want to know how can we select more than one option from a select box like given below: Colors Black White Tan Navy Royal Blue Red Yellow Hunter(Dark Green) Kelly(Green) Burgundy Thanks ...

Scrolling speed with mouse position

Hi guys! I have a small problem with how should i think a... problem. I want to do something somehow similar with this: when you move mouse near to the edges, you will see images scrolling faster than how is scrolling when you have the mouse in the midle of the DIV. Don't know if i explained right, but ... i don't know how to tackle th...

Writing from one form to another

I have two forms. Form A has three text input; A1, A2, A3. Form B has one text input, B1. Whenever you type in any of the inputs on Form A, Form B should get updated, right away, with all three inputs from Form A. If one of the Form A inputs is empty, a 0 should replace it in B1. For example, if I'm typing "test" in A1 and leave A...

How to create a <style> tag with Javascript

I'm looking for a way to insert a <style> tag into an HTML page with javascript. The best way I found so far: var divNode = document.createElement("div"); divNode.innerHTML = "<br><style>h1 { background: red; }</style>"; document.body.appendChild(divNode); This works in Firefox, Opera and Internet Explorer but not in Google Chrome. A...