javascript

Firefox: "Error loading script"

"Error loading script" occurs under FireFox 3 if I "quickly click" different links on my web site (Asp.Net MVC + jQuery, full postbacks). It is rather easy task to reproduce this bug. But I cannot understand why it occurs? Every time it shows different failed script file. All JavaScript files are included before closing tag. Errors are...

Permission Denied error in IE6 Start of JavaScript tag in .aspx

for some reason, I get "Permission Denied" for line 20 in my .aspx when trying to view it from our dev server. Line 20 is simply the start of the JavaScript tag: <script type="text/javascript"> // variables var firstProductID; var lastProductID; var getProductIDs = new Array(); ... ...

facebook connect javascript example available?

in order to try out facebook connect, is it ok, if my registered status look like below Directory Status: Not submitted Directory Status: Not submitted API Key ... Application Secret ... Application ID ... Contact Email [email protected] Support Email Address [email protected] Connect URL http://localhost:8888/testa...

Regarding Encoding the ~ charecter in javascript

Hi to all, can you please tell me the how can we encode the ~ character in javascript.. i am trying with the encodeURIComponet.but that character is not encoding... and also , how can we encode < and > characters in javascript... tx inadvance... regards patel ...

KML file loads but doesn't display - why not?

I have a google-maps mashup that worked fairly well with "small" test files - every file I generated, even for a 60 mile trip, was less than 16k. Then, yesterday, a user sent me a KML file they were having problems with - it's over 360k in size and, while it uploads okay, and when I call GGeoXML(), it appears to load into Google Maps ok...

IIS self referencing URL construction?

I'm building a REST system under IIS/ASP which provides general record listings. But I also want to insert into these general listings a URI which allows the client to retrieve each specific record's details. I've come up with the following JScript to build an URI leader which I can then tack on record specific addressing: <% @LANGUAGE=...

In Chrome JS debugger, how do I print all the properties of an object?

I have opened the Javascript Debugger (Ctrl+Shift+L) in Chrome and started using it to set breakpoints in my code. This is a much different interface compared to Firebug, (it's all command line driven) so I'm wondering how to do a simple thing like print all the properties of an object. If I have an object like this: var opts = { ...

extents of Google map

Hi, I have a Delphi application which loads a Google map in a TWebBrowser: with WebBrowser1.Document as IHTMLDocument2 do with parentWindow do ExecScript('map.setCenter(new GLatLng(51.15917, 4.13889),10)', 'JavaScript'); Any idea of how to get the extents of the map in my application? TIA Steven edit Rob's answer points to a pa...

Total height of the page

I'm trying to get the total height of a page using JavaScript and jQuery so I can check if the page is long enough to display something, however in my testing I am unable to get the total height of a page. I've looked around on the Internet but things like this don't seem to be well documented, as all I can find is scrollHeight, which, ...

Want to remove my inline JS Event Handle but no idea how

Howdy, i think iam going crazy .. I have an webpage where iam displaying news comments dynamicly , the "Comment" link is connected to an JQuery function wich is displaying the comments for the news (..like show comments from news id = x) But "onClick" handlers arent the best way or? Thats my code in the moment : ech...

Is it possible to hash a password and authenticate a user client-side?

I often make small websites and use the built in ASP.NET membership functionality in a SQL Server database, using the default "hashing" password storage method. I'm wondering if there's a way to authenticate a user by hashing his password on the client and not sending it in clear text over the wire without using SSL. I realize that thi...

HTML email with Javascript

How to include javascript in HTML emails - We need it for expanding and collapsing of the content in the HTML email. ...

Problem in returning values from javascript function to flex

In the attached flex code, I am trying to call a javascript function in its HTML wrapper. The example is also live at : http://www.cse.epicenterlabs.com/mbm/ajax_api.html The problem I am facing is, that I have to click the button twice to get the desired output. Seems like there is some delay in setting the "output" variable. How could ...

Connect links inside an dijit.dialog

Hi , i have some trouble to connect an link inside an dijit.dialog. Iam calling an "other" html file inside the Dialog (dialog.href="xxx.html") inside this file iam trying to connect some links by id, to fire an alert box. But nothing happens ? Possible that this isnt possible ?? Thats the part from my xxx.html file.. <script type="t...

Resize script appends object, does it over and over again

I have the following code in a JavaScript file: $(document).ready(function() { detectscreen(); }); $(window).resize(function(){ detectscreen(); }); function windowWidth() { if(!window.innerWidth) { // user is being a git, using ie return document.documentElement.clientWidth; } else...

JQuery Accordion: Resizing My Header Control

I am using the JQuery Accordion. All is well in FireFox. In IE7, however, when I click a link in my document that expands one of the accordion menu headings my header server control is re sized (shrunken). How do I stop the screen re sizing? This is the peice of JavaScript in question: if (!$('h3.ReferenceBackgroundHeader', '#References...

How to count the number of checkboxes and add to the price

hi everyone, I'm try to count the number of checked checkboxes, if two are checked the price of the item in the hidden field is £3.00 and for any additional check boxes the price should be added by 1, I don't seem to find a solution, any help would be appriciated. all the checkboxes have the Id="veg"; and hidden field has Id="my_item-p...

How can a Firefox extension get its own version number programmatically?

How do I programatically get my own Firefox extension's version number with Javascript? My extension has an install.rdf file containing the version number similar to below. I want to extract the contents of the <em:version> tag. <?xml version="1.0" encoding="UTF-8"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="...

How to get div's to load on click not when page loads?

Hello, I am currently building an making my new website. It uses one page and uses a jQuery accordian menu to load the content. The content it split up in six different div's and all load as soon as the page is accessed. I want it to load each div when the link to it is clicked on. To decrease the page loading time. You can see this in...

jQuery.get() method doesn't want to work

I am trying to load WalkScore Map into one of div's on the page. For some reason my code works only if I alert() something right after $.get() method. Have no idea why. Can someone suggest something? Thanks. <html> jQuery - Ajax dynamic content loading function loadWalkScore() { $.get("http://www.walkscore.com/ti...