javascript

Facebook JS SDK FB.Login() how do I get extended permissions?

Hello. I am trying to get extended permissions with my FB Connect Application. I was wondering how one does this with FB.Login() as I am not very knowledgable in JS. Thanks ...

toString() not working

Good Day, I am working with jQuery tabs and I've got some code that fires off when I change tabs. $('#container-1').tabs({ onClick: function(clickedTab, divElement, hiddenTab) { var selectedTab = clickedTab.toString(); // var pos = selectedTab.IndexOf("#") + 1; var results = selectedTab.substring(5); // selectedTab.IndexOf("#") +...

How to make this RSA lib (with en/decryption functionality only(!)) sign something?

Or concrete - I am using this javascript RSA library for the client side code of my experimental project... I would like to be able to sign and verify messages (-> encrypt with private and decrypt with public key) Is there a way to alter the key data in a way that the algorithms for en/decrypting do it with the "reverse" key? I tried t...

How can I get a form to auto submit using javascript when the person hits the space bar in the input field?

Is that possible? Google searches are leading me nowhere. My Sample form: <form action="search.asp" method="post" name="form1"> User ID <input type="text" size="15" name="userid"><p> Last Name <input type="text" size="15" name="lastname"><p> School <input type="text" size="15" name="school"><p> District <input type="t...

How do I replace an event handler with jQuery?

I have a site that uses AJAX to navigate. I have two pages that I use a click and drag feature using $(".myDragArea").mousedown(function(){ do stuff... mouseDrag = true; // mouseDrag is global. }); $("body").mousemove(function(){ if (mouseDrag) { do stuff... } }); $("body").mouseup(function(){ if (mouseDrag) { do st...

Highcharts - animations other than the default

Is there an option in Highcharts JS (highcharts.com) to change the animation when a chart loads? Right now, on a column chart, the columns slide up from the bottom. Is it possible to alter the default animation to, say, bounce? ...

jQuery, find li class name (inside ul)

I have ul with a number of li inside. All li have an id "#category" but different classes (like ".tools", ".milk", ".apple"). Using jQuery. I do : $("li#category").click(function(){ some_other_thing ( .... )}); now i have to put a li's class "name" — (a string indeed) inside the some_other_thing() function instead of .... How it ca...

Free web based Open Source Flash Player

I need to find a flash video player that is free and open source. I love flowplayer and jwplayer but we fit into their most expensive licenses. It will cost us over $1400 to license flowplayer for our use. We don't have that right now. I just need a flash player with a basic javascript api that is truly free. I have been googling for ho...

Scan folder in javascript

I like the JavaScript equivalence of the php funtion : echo json_encode(glob("images/*.jpg")) ?>); is it possible ? ...

Interrupt jQuery delay function

I am working on a way to autocomplete function to navigate through steps of a form. Here is the code that when 5 characters are entered into an input, it then moves to the next element. My delay is working great, but I don't have a way to stop it from completing if characters get deleted after 5 characters are entered. It just fires off ...

DNS resolver libraries with support for DNSSEC and/or experimental new RR types

What's the state of the art in DNS resolver libraries? I am particularly interested in full (not stub) resolvers that support any or all of: making multiple queries in one request packet, complete DNSSEC validation, returning detailed information about DNSSEC validation to the application, and can handle experimental new RRs without muc...

Build querystring for javascript?

How do I build a querystring for javascript with several parameters that I can pass along when calling an action method in MVC 2? This is what I tried: var queryString = "?fileName=" + file + "&filePath=" + filePath; document.location.href = '/Customers/Download/' + queryString; Action method signature: public ActionResult Download(s...

Javascript HTML5 Canvas Collision Detection

I'm working on creating an Air Hockey-like game using HTML5 canvas and Javascript. I've gotten pretty far, but detecting the collision of the mallet and the ball has me stumped. I've tried using the distance between the two circles and distance squared (to conserve CPU by bypassing square root). I can't figure out why the collision is no...

how do we change onclick function via .attr() in jquery ?

i got this url <a class="remove_item' rel="4" onclick="javascript:jQuery(#blablabla)" href="javascript:;' >remove</a> i'm using this simple find and replace item.find('a.remove_class').attr({ title:'hello', click:'hello();' } ); but it seem it's not working. i still not able to replace javascript:jQuery(#blablabla) with another f...

AJAX + PHP voting system

I'm working on a voting system in AJAX and PHP and I've run into a bit of trouble. We're displaying a bunch of posts from our database and each post has an image next to it -- clicking the image is supposed to 1) toggle the image colour and then 2) use AJAX call a PHP script which then decides whether to add or subtract a vote. I have th...

How does facebook know what images are needed to get from a URL?

When I attach a link on facebook I get the title, url, description and images from that page. But facebook separates the images and gives just the important ones. And this is what I don't understand. For example, attach this link http://tonlinegames.com/ - This is a gaming site with photos about the games. When you attach it f...

click a link pass a session variable to the next page

I have a page where I am using a PHP while loop to echo the names and addresses of our dealers. For the email link, I want the user to be able to click the link, which would then take him to a form that emails that person. I know that you can't mix Javascript and PHP, so how do I tell which link the user has clicked on so that I can pa...

HTML\PHP - How to elicit user (visitor)'s info

How to elicit user's information when he/she is visiting your website? IP Address Mac Address User Profile Name OS Name OS version OS Registered to (Name/Company) Computer Name Browser Name Browser Version ISP Name/Internet Connection Provider Name Connection Type Location - City/Country (based on IP) ...

Javascript add leading zeroes to date

I've created this script to calculate the date for 10 days in advance in the format of dd/mm/yyyy: var MyDate = new Date(); var MyDateString = new Date(); MyDate.setDate(MyDate.getDate()+10); MyDateString = MyDate.getDate() + '/' + (MyDate.getMonth()+1) + '/' + MyDate.getFullYear(); I need to have the date appear with leading zeroes o...

App crashes with EXC_CRASH (SIGABRT) in Titanium's TableView

I'm on Titanium 1.2.1 using SDK 4.0 compiling to a device with 3.1.3. This crash doesn't manifest itself in the simulator, but only on the device. I have a tableView listing a list of contacts. When clicking on a contact name, it opens a new heavyweight window (in a different execution context). The new window shows details of the contac...