javascript

call a java method from javascript

when a button is clicked a textbox value needs to be sent to a java class so it can be processed . I've tried applets but failed ..i really could use some help here coz i'm stuck help is much appreciated Thanks =] ...

XMPP library for facebook chat

So facebook is opening its chat servers to us... great. I am new to XMPP, so what would be the best JS library to connect to their servers? I googled for a tutorial article, but found nothing. Can someone direct me to one? ...

Best way to display & fade out a status message in asp.net ?

Hello fellows, I am using VSS 2005 & webforms with AJAX Control Toolkit. I am using Update panels for saving different parts of my form. Problem being I update the user with the status setting either a label or literal value. This value is visible on the form untill the page is refreshed. Is there any way to display a message and fade i...

Disable asp.net button on when clicked.

I have the javascript code below which disables an asp.net button during page postback. I also have a dropdownlist whose Autopostback property is set to true. Unfortunately, when i change the selectedItem in the dropdownlist, the button is disabled. I want the Button disabled only when the page postback is caused by that same button, b...

Jquery maphilight : want to add simple new features

Hello, I'm a beginner with Jquery so those questions should be pretty easy to answer. I'd like to modify the map hilight script (http://plugins.jquery.com/project/maphilight) to add 2 features : Question 1. I'd like to be able to highlight some areas by keeping the mouse button pressed instead of having to click and release the button....

showmodal return value problem after postback

I have a showmodal dialog that return value to a parent page. all works fins beside when i have postback in the aspx dilaog page, the dialog return null. I try adding . The problem apeear only on chorme and safari, on IE 8 and FF its work fine. Thanks. ...

popup to overwrite field

hello, i have ajax script for select some infomrations. If the user selects a choice, a popup requesting permission for the user to overwrite the address component fields. The message should appear if the fields were empty. I want to know how to do this confirmation popup? HTML: <html> [..] <div style="width:54.5%;float:right;"...

Cross Domain GeoLocation Tracking

Hi everyone, I am trying to track user location (HTML5 GeoLocation) on multiple domains, by asking user permission for once. For example: User gives permissions on example.com example2.com adds a script/iframe from example.com User enters on example2.com User location is tracked by example.com and location specific content is shown to...

How to make sIFR link expand 100%/static width

Hi guys, I have created a normal HTML menu and used sIFR to for the top nav items. At the moment when you hover over the sIFR link text it changes colour as it should. The issue is that I need the text hover colour to stay active when I hover over the button and not just the text which the text link is surrounded by. sIFR seems to calcu...

vertical scroll bar

hi i want to create a scroll bar in my project . I have a table which have two row and two column. In first column of first row( width 25%) i want to put a scroll bar . I need the customizes scroll bar. not the overflow style method .. Is any idea ? ...

How do I get the current iframe location from within the iframe?

I've seen solutions like top.document.getElementById('iframe_a').src But the problem is, that I don't know the Iframes ID. My Application is running as a Gmail-Gadget and therefore I don't know which ID Google will generate. So how can I get the URL of my gadget? Using JQuery will also be fine. ...

jQuery ajax is making connection, but the response is blank?

Hi all, i'm trying to make a test with ajax response using an external array as a config file... But it isn't working, i'm getting always a blank response... Can anyone point me the reason? Here is the link of jsBin test: http://jsbin.com/udanu/2/edit ...

Issue with onbeforeunload event handling in firefox

Hi, The following piece of code alerts the mouse position in IE , but in Firefox and other browsers, it alerts "undefined". <body onbeforeunload="test(event);"> function test(e){ if (!e) var e = window.event; alert(e.clientX); } The above code is to get the mouse position when the browser window is closed.Please advise ho...

closing other sub-menus

i have menu like this <ul> <li> <a href="#">Home</a> <ul class="sub"> <li>Text</li> <li>Test</li> </ul> </li> <li> <a href="#">About</a> <ul class="sub"> <li>Text</li> <li>Test</li> </ul> </li> <li> <a href="#">Con...

YUI Uploader - How to tell when all files have been uploaded?

I'm using the YUI 2 Uploader to upload some files. My users will be uploading more than one file, so I want to use YUI Uploader's 'file queue'. That is all working successfully. I disable the uploader when the files are uploading, so people can't add new files to the queue once they start uploading the files. I want to do something (in ...

jQuery - split() arrays with only one match = undefined

Hi, I have a problem with the split() function. I get the error undefined but it dont know why :/ It is easier to explain with a working example: http://www.jsfiddle.net/V9Euk/415/ $(function start() { css('#div { font-color:#ff0000; border:1px solid #00ff00; }', '#div_2 { font-color:#ff0000; }', '#line2 { font-color:#00ffff; }');...

iPad hover event process

Hi, I am developing a site for Apple iPad. In this, how can I apply shadow on mouseover and how to remove on mouseout? Like HTML a process, or any other way available with Javascript, I am using jQuery here.. any advice? ...

Google Closure MSBuild Task Error

I am trying to write a custom task in my MSBuild file to compress some js files with Google Closure Compiler. I downloaded the ClosureCompiler.dll and ClosureCompiler.tasks files from the site and have kept them in a folder on my m/c. I added the below lines in my csproj file <Import Project="C:\Projects\Closure\ClosureCompiler.tasks" /...

How to check for uppercase alphabets in an input string, using jQuery

Hi, I am using following code snippet, but its not working :-( //First four characters of input Text should be ALPHABATES (Letters) if (($("#txtId").val()).length >= 4) { var firstFourChars = $("#txtId").val().substring(0, 4); var pattern = new RegExp('[^A-Z]'); if (firstFourChars.match(pattern)) ...

Query on google analytics

can someone to some resources for google analytics.i.e,where it can be used what all it can track..Also what does the following code does <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analyt...