javascript

How to use jQuery to read/write the values of an elements externally defined css class?

I have a div in an html file defined as follows: <div id="rangeTabAll"></div> In an externally defined style sheet I define the following style. #rangeTabAll{ top:45px; left:124px; width:186px; height:114px; display:none; background:#ffffff url(../images/rangetab0.jpg) no-repeat; } How do i read/write the ba...

Prototype serialize function is not recognized

Hi Everyone, I am working on using prototype to submit a simple login form: http://huddlee.homeip.net/danny/ For some reason, whenever I try using the serialize function of the form it says it cannot find the function even though the prototype library is clearly being loaded. So this function: <script type="text/javascript"> alert($...

Ajax not working while calling php

Hi friends, Requirements : I have created a html page - to save a group of fields into a separate file Through ajax function(AjaxLoad), i have send some value into file.php and save it. I can able to reach the file.php, but its not creating the file. code is follows javascript function AjaxLoad(LstrXML){ var xmlhttp; xmlh...

how to clear authentication cache on ie7 with Javascript?

We need to clear the authentication cache in IE with Javascript. On IE6 we use: document.execCommand('ClearAuthenticationCache'); and it works. On IE7 it doesnt work. what can i do? thanks... ...

how to clear authentication cache on ie7 with Javascript?

We need to clear the authentication cache in IE with Javascript. On IE6 we use: document.execCommand('ClearAuthenticationCache'); and it works. On IE7 it doesnt work. what can i do? thanks... ...

javascript function together with asp.net

Hi, I am trying to create a link, which will onclick change a session variable like this <a href="/Index" onclick="<% HttpContext.Current.Session["location"] = location;%>" > <%=location%> </a> However, during processing the page the session changes on its own during generating each anchor element (with this onclick attribute). So...

Why should I use jQuery instead of GWT?

I need to decide between jQuery and GWT for my new project. I haven't programmed in JavaScript for a while and I was looking into GWT for the last few days and it looks pretty awesome generating all the different JS for different browsers and all...but it takes more time developing in Java than the same thing using jQuery at least for t...

How do you detect ALT combos in Silverlight?

We're building an app that makes use of hotkeys, it's a web UI to an existing windows app. Normally you can check that Keyboard.Modifiers == ModifierKeys.Alt However when you're using combos with Alt, the browser captures the Alt keystroke to see if it can handle it. The only way around this I've seen so far is to manually wire up t...

How to send SNMP trap to different IP

I have the an ASCII message of SNMP traps, how can i sent it to different IP address? i dont want to use email instead. Given a IP address and the port, of that receiver machine. PLease tell me the solution or where can i get references to the command at least. coz i could find anything regarding it. PLease...Hope someone can help me.....

Inheritance in Javascript - protoyping not in definition-part?

Hi I am currently switching from AS3 to Javascript. I still have some trouble with understanding inharitance-concepts. What I do not understand is why the following code is not working properly: Base = function () { this.coolVar = "great"; } SmallControl = function () { // Inheritance: this.prototype = new Base(); ...

Unique html item ID in Javascript

I am building a drag'n'drop gui builder in Javascript. So far so good. As I add items to the GUI and configure them; I have two mechanisms for addressing them: the 'class' - which I use for doing things to all instances of an item (eg CSS, generic functionality and so on and so forth) and which I can bind javascript libraries to... an...

How to run a executable file from a web page?

What I mean is, when user click a button on a webpage, a program which has already installed on his computer would be executed. I also need to pass some command line parameters to the program. We have 2 program, one is a web app, the other is a desktop program. We want to find a simple way to integrate the 2. That's why we need to ...

How to stop all CSS overrides on a container DIV?

I have a container div which i add to external websites using a bookmarklet to do some functions, the problem i face that this div contains some elements and each element has its inline style, but when i put in the external site, sometimes it overrides styles from the site CSS. There is a way to stop any overrides on this div? ...

jsonp proxy web app I can install?

After getting stuck trying to access another domain with ajax I discovered I'll need to use jsonp. However the web service I'm using doesn't provide jsonp output. No problem, I can write something simple on my own webserver that will wrap the output of their thing with jsonp. However before I reinvent the wheel, is there some exisiting p...

Javascript security error 1000 when resizing text.

Hi, I have a function that is mean to alter the font-size: // change the font size of the document function changeSize(fontSize) { var sheets = document.styleSheets; // Array of all stylesheets for(var i=0; i < sheets.length; i++) { // For each stylesheet var sheet = sheets[i]; // alert( sheets[i].title ); ...

how to distinguish left mouse click and right with jquery?

Hello, What is the way of understanding the clicked mouse button with jquery or with javascript? $('div').bind('click', function(){ alert('clicked'); }); this fetches both right and left click, what is the way of being able to catch rightclick? I'd be happy if sth like below exists:) $('div').bind('rightclick', function(){ ...

Google JavaScript CAPTCHA handling

I am using Google API's to provide maps on a web page, however, Google frequently prompts for a CAPTCHA (I only know this from going into Firebug, users just get a JavaScript error) for requests for its javascript API's (e.g. http://maps.google.co.uk/maps?file=api&amp;v=2&amp;key=xxxx). However, this prevents visitors from our network (a...

Exclude files from Firebug Profiler?

Is there a way to exclude a file/scope from Firebug's Profiler? I would like to profile my app without it looking through jQuery at the same time. :) ...

What is the "best practice" for resizing text with Javascript?

Hi, What is the "best practice" (accessibility/usability-wise) for resizing text with Javascript? My current solution is that for when the user clicks the resize link it adds an extra class to the body tag. It also sets a cookie and then when the page is loaded - onLoad() - it reads the cookie and reapplys the body class tag again if...

calling a javascript function from flash

Greetings, I am trying to make my flash button to execute a javascript function. I already did alot of searching and came to a conclusion to use ExternalInterface.call. I also make the allowScriptAccess" to "always" but still it doesn't work. Here is my flash call: import flash.external.*; ...................... function rpress() { ...