Write A Facebook App In JavaScript
As an hobby I wrote a game in JavaScript and would love to publish it to Facebook, can you write a Facebook application using pure HTML and JavaScript? ...
As an hobby I wrote a game in JavaScript and would love to publish it to Facebook, can you write a Facebook application using pure HTML and JavaScript? ...
I have Hidden field like <%= Html.Hidden("ID", 1) %> and in javascript i want a value of that field by var ID = document.getElementsByName("ID").value; I can't access it! is there any other way? ...
Hi, I'm trying to use jQuery.post() function to retrieve som data. But i get no ouput. I have a HTML that dispalys a table. Clicking this table should trigger a jQuery.post event. My scriptfile looks like this: jQuery(document).ready(function() { jQuery('#storeListTable tr').click(function() { var storeID = this.cells[0].inn...
Due to a security requirement all browsers that will run a web application we need to create must have all client side scripting disabled. So that means no Javascript. Unfortunately Web Forms make quite some use of Javascript. The login control works without Javascript, but a button does not (it calls the Javascript function __doPostback...
This might be hard to explain, but I need a way to loop through a bunch of elements I've already selected and for each one find classes that start with the word "icon". So for example I might have the following elements <div class="button iconStar"></div> <div class="button iconPlus"></div> <div class="button iconLeft"></div> <div class...
How will I be able to put a pin using a click of my mouse? given this is the code: function AddPushpin() { var shape = new VEShape(VEShapeType.Pushpin, **map.GetCenter()**); shape.SetTitle('sample'); shape.SetDescription('This is shape number '+pinid); pinid++; map.AddShape(shape); } it's pointing to ...
I've got a bookmarklet which loads jQuery and some other js libraries. How do I: Wait until the javascript library I'm using is available/loaded. If I try to use the script before it has finished loading, like using the $ function with jQuery before it's loaded, an undefined exception is thrown. Insure that the bookmarklet I load won...
This is a follow up to a previous question which seems to have confused people so I'll purify it a bit. Here is some markup. <div class="button width120 height30 iconLeft colorRed"></div> <div class="button width180 height20 iconPlus colorBlue"></div> <div class="button width200 height10 iconStar colorGreen"></div> <div class="button wi...
I want create a div container with a message for first time visitors to my site. Visitors will read it and click a 'Hide' button to dissapear it forever. How is this done? ...
I have noticed a rather strange behaviour in IE. I have a HTML form with a single input text field and a submit button On Submit click I need to execute a client side JavaScript function that does the necessary. Now when I want to prevent the postback in the text field (on enter key press) I have added a key press JavaScript functio...
Hi, can someone tell me what the difference between assigning event handlers using bind(): $(function(){ $('someElement') .bind('mouseover',function(e) { $(this).css({ //change color }); }) .bind('mouseout',function(e) { $(this).css({ //return to previous state }); ...
I'm playing around a bit with Virtual Earth to see if we might be able to use it on our website. We'll be plotting quite a bit of pins and many of them are going to be clustered using the excelent clustering abilities of VE. I want to perform some action on the cluster shape (bouncing it, actually =) we have a custom div as the icon) w...
Hello, I am trying to catpure the enter key from a textarea using javascript. The problem is that although I am able to find out that the "enter" key was pressed, I am not unable to avoid it from coming in the textarea. I dont want the enter key i.e. "\n" to be displayed in the text area. Any suggestions on how to achieve that? Thank ...
I need to wrap an IE ajax request to notify me when it happens. ie i need to know when open is called on this: var xhr = new ActiveXObject("Microsoft.XMLHTTP"); The only way to do that(i think) is to implement the ActiveXObject constructor to proxy open calls to the real constructor/object. Can you help me do that? also: i dont need ...
I am making an AJAX call (with jQuery) to retrieve a PartialView. Along with the HTML I'd like to send back a JSON representation of the object the View is displaying. The crappy way that I've been using is embedding properties as hidden inputs in the HTML, which quickly becomes unwieldy and tightly couples far too much stuff. I could j...
Does anyone know how to use the Google safe browsing API. I downloaded the entire the malware and phish update from the google safe browsing using the API key and tried comparing the hash of the suspicious site (md5_file method in php) but it did not work. I also tried comparing the hash of the suspicious site's url (md5 method in php)....
I am looking to implement a client side RDFa based formatting for a web application. This would be similar to Mark Birbeck's ubiquity-rdfa project. Mark's project looks fantastic but it has at least two drawbacks: It is slow. Adding RDFa formatting to a simple page causes a noticeable delay in page loading. It is complex. The ubiqu...
Hi! I have a problem with a site I am working on, available here. The javascript on the site works as inteded when browsed with firefox. In IE7, however, the javascript does not even get executed. As I am new to javascript I suspect that I am probably doing an obvious mistake somewhere in the code. Any help is appreciated! ...
I have a page that consists of two frames: one being a flash app, and one being an aspx page with a user control that contains a grid with several "add to cart" buttons. When the user clicks a button I would like to reload the whole window with a shopping cart page. I found out how to do so here quite nicely by avoiding response.redi...
Hello all. I'd like to call a javascript function from an embedded .swf file. Specifically, I'd like to call a function in one of my externally linked javascript files from within: function loadTrack(){ //Radio Mode feature by nosferathoo, more info in: https://sourceforge.net/tracker/index.php?func=detail&aid=1341940&group_i...