javascript

Debugging Bing Maps JavaScript errors

I'm using the Bing Maps / Virtual Earth control and it appears to be working, however Firebug in Firefox 3.6 and Chrome are reporting an uncaught exception in Microsoft's mapcontrol.ashx file. I'm concerned that this may be caused by a bug in my code interacting with Bing Maps. As this JavaScript file is minified I can find no way of de...

Javascript is not working - help

<!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"&gt; <head> <title>Form Validation and Dynamic Forms</title> <script type="text/javascript"> window.onload = function() { document.getElementById('shippi...

Scrollbar at dropdown list

Hello, Currently I was trying the jquery,css dropdown which is from here. http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx I added so many list. But scrollbar doesn't come out and list is too long. Here is the code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3....

How to change an element to be unclickable after clicking it once using Jquery or Javascript

The code is: <a href="#" style="color:black" onClick="Record($id)">Done</a> I want this part becomes unclickable once if it is clicked, how to achieve this using Jquery or Javascript? ...

e-modifier in javascript? (converting regex from php to js)

Hi, I have the following regular expression in PHP $url = 'http://www.amazon.com/dp/B002JCSBE4/ref=sr_1_1?ie=UTF8&s=tv&qid=1264738369&sr=1-1/'; $url=preg_replace( '/http:\/\/[^>]*?amazon.(.*)\/([^>]*?ASIN|gp\/product|exec\/obidos\/tg\/detail\/-|[^>]*?dp)\/([0-9a-zA-Z]{10})[a-zA-Z0-9#\/\*\-\?\]*/i', 'http://www.amazon.$1/dp/$3/?tag='.'...

Any way to execute inline javascript as a URL?

In many browsers you can do something like this: javascript: alert("..."); Is there any way to combine that with a url? I'm thinking of something like this: http://example.com?javascript: alert("..."); The effect would be that the javascript would be executed after the page is loaded (same effect as loading the URL and then enterin...

When do you really need to use Flash?

There are a lot of flash effects that can be achieved with jQuery.So when do you really need to use Flash instead of javascript? ...

JavaScript code compression

Is there is way to compress JavaScript code? e.g. function test(){ // some code here } after compression it should be function test(){//some code here} Also, I need vise versa at the time of editing the code. ...

How can I avoid reloading an XML document multiple times?

tl;dr: I want to load an XML file once and reuse it over and over again. I have a bit of javascript that makes an ajax request to a PHP page that collects and parses some XML and returns it for display (like, say there are 4,000 nodes and the PHP paginates the results into chunks of 100 you would have 40 "pages" of data). If someone cli...

What is the benefit of a 'promise' abstraction in CommonJS?

I'm reading this article and the section on the promise abstraction seems a little overly complicated to me. The following is given as an example: requestSomeData("http://example.com/foo") // returns a promise for the response .then(function(response){ // ‘then’ is used to provide a promise handler return JSON.parse(respons...

Static message above the page in html

Hi, I have a web page with lengthy contents. I just want to put some message at the bottom of the browser window and this message should always be visible even if you scroll down the page. can you guys tell me how to go that with simple css, html, jquery or in PHP thanks ...

What's the best way to access a URI variable after a hashtag from php?

I have javascript updating my URI as below: /index.php?page=list#page=news But I would like to make page=news accessible somehow from my server so that when the URI is copied and pasted, it would go to the news page. What is the best way to do this ? I tried $_SERVER['REQUEST_URI'] but everything stored in $_SERVER is before the hash...

Writing properties to a cookie

I was asked to create a function that writes the property of a "type" that is send through a function to a cookie. I have never used javascript enough to understand it and this particular requestion is really particular I have been looking for an explaination of similar code for over 8 hours. If I have the follow variable declared: va...

delete rows in excel sheet using javascript

Hello , I am trying to edit an excel sheet using activex object in Javascript. The function below opens an excel sheet and creates a few entries. function test() { var ExcelApp = new ActiveXObject("Excel.Application"); var ExcelSheet = ExcelApp.Workbooks.Open("c:\\jan29.xls"); ExcelSheet.Application.Visible = true; ExcelSheet.Activ...

How to make menu in asp.net

Menu are looking very nice in all website so i want to make such menu so how to make that and when we select one menu then its color is changed so how this is possible and even border is changed so how to make such ...

Javascript Frameworks for Complex Forms

I need a Javascript framework that makes form generation and validation a breeze. Specifically: Support for complex, usable and pretty form widgets. Two must-haves include a rich text editor and a date entry field with a calendar drop-down. Dynamic validation of form fields against the server. That is, once a user has inputted a value ...

How can I pass FormsAuthentication.SetAuthCookie from Data Access Layer Class to WebService to Javascript ?

I am using DotNetOpenAuth in my ASP.Net Website. I have modified it to work with Facebook Connect as well, using the same methods and database structures. Now I have come across a problem. I have added a Facebook Connect button to a login page. From that HTML button, I have to somehow pull information from the Facebook Connect connect...

Content Restriction Ideas

Hello, I was trying to do subscription system which is only for registered user. Till registration stage, I am okie. But I don't want user to share their username and password with others because of the paid content. How can i prevent ? Check with IP, but what if they are on dynamic IP ? Using proxy ? Store cookies can change ? Can ...

how to get the menus in a treeview format either in css or in javascript

i know to work with menus in asp.net(treeview contril)except by using treeview control in asp.net how to get the menus in a treeview format either in css or in javacript, any idea?? ...

Need to create a datepicker in Asp.net ?

Hi All, I need to create a datepicker in asp.net. Got a few in the web but lokking for some thing different. Thanks ...