javascript

Unable to run javascript in Facebook app

I'm trying to convert my once fully functional app from using the ancient feed templates to the new publisher stuff. However, when trying to init the new API I got the javascript error a28251737459_FB is not defined. Unable to debug or pinpoint the location of the error, I tried taking out everything on the app's main page except for <sc...

Roll up/down in javascript

Hi guys, please help me with this roll up/down side bar menu. I have made a video clip to demonstrate. http://www.youtube.com/watch?v=Eegqh1w3eJQ Here is html code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&...

Javascript cross window interaction.

Hi, I hace this very simple javascript to write on a text area when the link is clicked: <head> <script language="javascript" type="text/javascript"> function addtext(text) {document.form.textarea.value = document.form.textarea.value+= text;} </script> </head> <body> <form action="" method="" name="form"> <textarea name="te...

Looking for Ajax Onload Design Pattern

I'm involved with updating a Rails appp from 2.2 to 3.0, specifically in dealing with the changes for unobtrusive Javascript for the AJAX portions of the application. The move to JQuery is going pretty much as expected, but the one area I'm having a bit of philosophical trouble with is the implementation of history control for the AJAX ...

Form that spans many pages

How do I create a form that spans over multiple pages? I would like to ask a large amount of questions, and based on the answers of previous questions, new specific questions will be asked. ...

Closing popup window created by Google Chrome extension

I'm trying to create a Chrome extension that is a replacement for the Delicious bookmarklet. I know there's already an extension that does it, but the problem with that extension is that after you bookmark a site, the popup window stays open (as opposed to using the bookmarklet, where the popup closes itself after submitting the form. I ...

Adobe AIR: Handling Multiple HTML Views/Pages

This is sort of a best practices question I suppose. My initial window for my AIR application is loading an index.html page/view. This page will present the user with a initial view of the application. More importantly, this index view will also have some components on it to handle resizing\window moving (since I'm disabling systemChro...

Javascript rich text editor that allows locking regions

I'm looking for a rich text editor that allows for locking regions so that they can't be edited by the user. These locked regions would contain markup, not just plain text. TinyMCE has a plugin to support this but it is quite buggy. ...

JavaScript file not updating no matter what I do

I have an external JavaScript file and whether in FireFox or Chrome, whether all browsing data is cleared, it will NOT update no matter what. I believe something happened when I made a backup of my file, which I simply added "_thedate" to the end of the name. Then Save As back to the original name. Now I cannot seem to get rid of the ol...

How to bind function to DOM events once and only once so that they will not execute for a second time in the triggering of event?

so I have anchor tags in the form of <a href='[link'] rel='Tab'> and I apply the following at page load:('document ready' I mean) jQuery("a[rel*=Tab]").click(function(e) { e.preventDefault();//then I do some stuff to open it in jq ui tab} now the problem is that when I do this and later through javascript new links a...

Help with Collapsible Divs (adding image for show/hide state)

Hi there, I'm using this script for collapsible divs... http://www.harrymaugans.com/2007/03/06/how-to-create-an-animated-sliding-collapsible-div-with-javascript-and-css/ Everything's working fine but I need to add an image for show/hide state. When the div is showing the header displays an "open" arrow...when closed it displays a "cl...

Bug with JQuery Modal Centering

I know there's been a few posts about centering a modal box div using JQuery but I have looked and looked for a solution to my problem, and I have my suspicions on what is going wrong but nothing I've tried seems to have solved it. I have a photo gallery, I click on an image, it grabs the path to the image when it is clicked on and chuc...

How to sort results from an IndexedDB query?

Is it possible to receive sorted results from an IndexedDB query? If not, what is the best way to go about sorting results? ...

Let users draw a line (arrow) on a div/img

Using the jQuery plugin: imgareaselect (http://odyniec.net/projects/imgareaselect/), I let users select areas of an image to add comments (just like flickr). I'm aiming to let users draw arrows pointing on specific image areas instead of drawing boxes. Any idea if (and how) I can modify imgareaselect to draw lines (with an arrow head) i...

What is the best way to create a map with mouse over?

What is the best way to create a 2D plot, with different points in different coordinates (x/y coordinates) such that they are represented using different shapes on the plot, and whenever we click on one of them, or go with mouse over them, we see a text changing in a small window next to the plot? If I could do this in HTML, that would ...

Could you recommend some jQuery/Javascript plugins that handles picture upload/delete/modify?

I'm looking for a plugin of this kind. ...

Transform URL into a link unless there already was a link

I know this has been talked here, but no solutions were offer to the exact problem. Please, take a look... I'm using a function to transform plain-text URLs into clickable links. This is what I have: <script type='text/javascript' language='javascript'> window.onload = autolink; function autolink(text) { var exp = /(\b(https?|ftp):\...

Window.open and pass parameters by post method problem

Hi With window.open method I open new site with parameters, which I have to pass by post method.I've found solution, but unfortunately it doesn't work. This is my code: <script type="text/javascript"> function openWindowWithPost(url,name,keys,values) { var newWindow = window.open(url, name); if (!newWindow) return false; var html...

Encoding user input as URL GET parameter in JavaScript

I'm writing a JavaScript function that needs to uphold three properties: be very small and lightweight - no external libraries encode a string in such a way as to be able to be passed as a GET parameter this string must be decoded again at its destination Effectively, it authenticates the user by sending his username and password to ...

How to make a progress bar.

How would one go about making a progress bar in html/css/javascript. I don't really want to use Flash. Something along the lines of what can be found here: http://dustincurtis.com/about.html All I really want is a 'progress bar' that changes to the values I give in PHP. What would be your though process? Are there any good tutorials on ...