javascript

JavaScript development with Aptana using Outline View

Hi, Has anyone programmed JavaScript on Aptana Studio? I am having problems with the Outline View. It does not show the methods of classes. For example: var test = new Class({ variable: 0, something: function() { } }); the result is that the outline does not show variable nor something -function. It only works when I define a func...

Javascript get li values and encode them

At the moment I have two (maybe more) unordered lists which are sortable with jquery and ui. The things that work are that the lists are connected, items are draggable, items can be removed and a form that adds to the list. What I need however is a function that gets all the content for li items and json encode them ready to be sent of...

Free Java HTML and JS parser

Do you know a parser which could operate on AJAX and has option to override method of connecting (I would like to use my own method to connect to pages). ...

I want to open 2 windows on 1 click

I have a javascript function which opens a window and have a javascript which also opens another window and i want to open boths windows on one click. '<script type="text/javascript">function clickme() { window.open('http://www.google.com/'); } </script>' '<a href="#" onclick="clickme();"> <script type="text/javascript" src="http://ads...

Get pixel color with Rails or anything else

I'd like to build a webapp in Rails in which I'd like to determine every pixel's color of a given image (JPEG). Is there any possibility to do that with Rails or JavaScript? The goal is to write an algorithm which determines the "middle color" of the image and uses it for background color of the site. Any suggestion would be appreciated...

Need a jquery newsticker (scrolling/running text) horizontal

Does anyone know a great jquery horizontal newsticker? Like: http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html But without the white space.. Like an endless loop. And it should be possible for it to run very slowly. ...

Birds on the trees in the background

How do these birds pop up behind the trees on the bottom? http://grabaperch.com/about Are they using css with php or what is it? ...

Make multiple lightboxes (facebox) execute one after each other.

I have a php application that sometimes creates two lightboxes on the same page - the result is the last one to be called is the only one shown. How might I ensure that they show one after anohter? I call a facebox at the bottom of the page like so: jQuery.facebox('blah'); Currently multiple facebox's are called like so: jQuery.face...

how to add a sharethis button to my flash file?

Hello guys, I have been searching for this solution for some time have not found any good solid solutions. Everything I have seen is either 2 years old and does not work. What I would like to do is use a MC in my flash file to act like a button and when clicked open the sharethis pop up to share this particular video's url. The site AP...

Regular Expression: Any character that is NOT a letter or number

I'm trying to figure out the regular expression that will match any character that is not a letter or a number. So characters such as (,,@,£,() etc ... Once found I want to replace it with a blank space. Any advice. ...

Is there a way to create a feed of your recent app store purchases to put on your blog?

I'm trying to put together some feeds for my blog and I would love to include one that shows my recent app store purchases. Is there a way to accomplish this? ...

How to reorder table rows (drag-and-drop) along with their sub rows

I have a table which looks like this (simplified for the example): <table> <tr class="lvl_1"> <td> Level 1 </td> </tr> <tr class="lvl_2"> <td> Level 2 </td> </tr> <tr class="lvl_3"> <td> Level 3 </td> </tr> <tr class="lvl_1"> <td> Level 1 </td> </tr> <tr class="lvl_2"> <td> Level 2...

Replace first character of string

I have a string |0|0|0|0 but it needs to be 0|0|0|0 How do I replace the first character ('|') with (''). eg replace('|','') (with JavaScript) ...

Correct use of a "for...in" loop in javascript?

Hello everybody, before I ask my question I wanted to let everybody know that I appreciate the fact that there's always somebody out there willing to help, and on my end I'll try to give back to the community as much as I can. Thanks Now, I would like to get some pointers as to how to properly take advantage of the "for...in" loop in Ja...

Is this scenario in compliance with GPLv3?

For arguments sake, say that we create a web application , that depends on a GPLv3 licensed component, lets say Ext JS. Based on Section 0 of the license, the common notion is that the entire web application (the client side javascript) falls under the definition of a covered work: A “covered work” means either the unmodified Progra...

Difference between Javascript and ASP.net

What is the difference between Javascript and ASP.net? ...

contain new elements of an "instance" in javascript

Hi, so I know there are tons of ways to simulate inheritance and other OO features. I have chosen one to use for my project and am wondering if I can create an instance and add stuff to it and keep it contained (within braces). Consider the following: function BaseClass(){ <this.stuff here> } function SubClass(){ this.superClass =...

Shadowbox <a> link to target parent window?

I'm a n00b when it comes to JavaScript and the DOM... once I've opened up an HTML file in a shadowbox, how do I make an a href link or submit a form from the shadowbox into the parent window? I'm using Rails to build my forms, not sure if that makes a difference. ...

Cannot get an embedded dialog to show up in facebook javascript sdk.

I'm using the default stream.publish example in an iframed facebook app with the new SDK. My problem is that the stream.publish always shows up in a popup window instead of an on page dialog. Does anyone know how to get this old behavior back? $(document).ready(function(){ $("#streampublish").click(function() { FB.ui( ...

capturing event on parent element

window.event reports the lowest element in the tree when a click happens. e.g. <a href="http://server.com/page.aspx" id="anchor"> <span id="span" class="Someclass"> <strong id="strong">Submit</strong> </span> </a> When you click on the above link and if you have onclick listner at BODY level, the window.event will report that "st...