javascript

Google maps style scrolling anyone?

I am looking for some javascript plugin (preferably jquery) to be able to scroll through an image, in the same way that google maps works. I can make the image draggable but then i see the whole image while dragging even if the parent div is overflow:hidden. Any help would be greatly appreciated! ...

When is a CDATA section necessary within a script tag?

Are CDATA tags ever necessary in script tags and if so when? In other words, when and where is this: <script type="text/javascript"> //<![CDATA[ ...code... //]]> </script> preferable to this: <script type="text/javascript"> ...code... </script> ...

Integration of JavaScript and JMS

Where can I find a guide for integrating JavaScript and JMS (Java Messaging Service)? I would like a best practice or established technology that allows me to directly or indirectly receive messages from a topic and update a site based on the message. I was thinking of creating two components, a servlet for the Web module, and an MDB (M...

What advantages does jQuery have over other JavaScript libraries?

I am trying to convince those who set standards at my current organization that we should use jQuery rather than Prototype and/or YUI. What are some convincing advantages I can use to convince them? ...

Apple Cover-flow effect using jQuery or other library?

Does anyone know how to achieve the cover-flow effect using JS to scroll through a bunch of images. I'm not talking about the 3d rotating itunes cover-art, but the effect that happens when you hit the space bar in a folder of documents, allowing you to preview them in a lightbox fashion. ...

Find coordinates of every link in a page

In Javascript: How does one find the coordinates (x, y, height, width) of every link in a webpage? ...

How do I use Javascript to locate by X-Y Coordinates in my browser?

I'm trying to make it so when a user scrolls down a page, click a link, do whatever it is they need to do, and then come back to the pages w/ links, they are at the same (x-y) location in the browser they were before. How do I do that? I'm a DOM Newbie so I don't know too much about how to do this. Target Browsers: IE6/7/8, Firefox ...

How to display a form in any site's pages using a bookmarklet (like Note in Google Reader)?

In Google Reader, you can use a bookmarklet to "note" a page you're visiting. When you press the bookmarklet, a little Google form is displayed on top of the current page. In the form you can enter a description, etc. When you press Submit, the form submits itself without leaving the page, and then the form disappears. All in all, a very...

Execute JavaScript from within a C# assembly

I'd like to execute JavaScript code from within a C# assembly and have the results of the JavaScript code returned to the calling C# code. It's easier to define things that I'm not trying to do: I'm not trying to call a JavaScript function on a web page from my code behind. I'm not trying to load a WebBrowser control. I don't want to ...

I have a problem with inline vs included Javascript

I am relatively new to javascript and am trying to understand how to use it correctly. If I wrap js code in an anonymous function to avoid making variables public the functions within the js are not available from within the html that includes the js. On initially loading the page the js loads and is executed but on subsequent reloads of...

How To Generate A Javascript File From The Server

I'm using BlogEngine.NET (a fine, fine tool) and I was playing with the TinyMCE editor and noticed that there's a place for me to create a list of external links, but it has to be a javascript file: external_link_list_url : "example_link_list.js" this is great, of course, but the list of links I want to use needs to be generated dynami...

How do I copy image data to the clipboard in my XUL application?

I have a XULRunner application that needs to copy image data to the clipboard. I have figured out how to handle copying text to the clipboard, and I can paste PNG data from the clipboard. What I can't figure out is how to get data from a data URL into the clipboard so that it can be pasted into other applications. This is the code I use...

What is the single most useful general purpose javascript library for rich internet apps?

See title... ...

JavaScript to scroll long page to DIV

I have a link on a long HTML page. When I click it, I wish a DIV on another part of the page to be visible in the window by scrolling into view. A bit like EnsureVisible in other languages. I've checked out scrollTop and scrollTo but they seem like red herrings. Can anyone help? ...

Is there a way to make text unselectable on an html page?

I'm building an html UI with some text elements, such as tab names, which look bad when selected. Unfortunately, it's very easy for a user to double-click a tab name, which selects it by default in many browsers. I might be able to solve this with a javascript trick (I'd like to see those answers, too) -- but I'm really hoping there's ...

Programatically change the text of a TextLayer in After Effects

I'm using the After Effects CS3 Javascript API to dynamically create and change text layers in a composition. Or at least I'm trying to because I can't seem to find the right property to change to alter the actual text of the TextLayer object. ...

How do I get JavaScript created with document.write() to execute?

I have a multi-frame layout. One of the frames contains a form, which I am submitting through XMLHttpRequest. Now when I use document.write() to rewrite the frame with the form, and the new page I am adding contains any javascript then the javascript is not exectuted in IE6? For example: document.write("<html><head><script>alert(1);</s...

Proxy settings in Firefox don't "stick"

At home we have a proxy server. At work we don't. Firefox irritates in this regard: whenever I launch it, it defaults to the proxy server. If I do Tools>Options>Settings and select "No proxy", no problem. However, if I shutdown Firefox and restart it, I have to do the Tools>Options>Settings thing all over again because the "No proxy" set...

How do I get the most recently updated form item to "stick" in Firefox when I copy its container?

I have a dl containing some input boxes that I "clone" with a bit of JavaScript like: var newBox = document.createElement('dl'); var sourceBox = document.getElementById(oldkey); newBox.innerHTML = sourceBox.innerHTML; newBox.id = newkey; document.getElementById('boxes').appendChild(columnBox); In IE, the form in sourceBox ...

Why don't self-closing script tags work?

What is the reason browsers do not correctly recognize: <script src="foobar.js" /> // self-closing script tag Only this is recognized: <script src="foobar.js"></script> Is it breaking concept of XHTML support? Note: This statement is correct at least for all IE(6-8 beta 2). ...