javascript

How to create Gmail Chat? How to connect to AIM and allow for AIM chatting?

I want to know how gmail chat allows the user to connect to AIM and then chat as if he were logged on to AIM. Is this easy to make? How can it be done? Does anybody know of any similar open source tools? Thanks! ...

JavaScript/jQuery check broken links.

I developed a small Javascript/jQuery program to access a collection of pdf files for internal use. And I wanted to have the information div of a pdf file highlighted if the file actually exist. Is there a way to programmatically determine if a link to a file is broken? If so, How? Any guide or suggestion is appropriated. ...

ASP.Net Display Different Text in Label Control At Interval

Hi Guys/Gals, I have in here an old web application written in ASP.Net 2.0 + AJAX. I have in my page a textbox control and a button and a label control which is inside an update panel. A text will be entered into the textbox and subsequently, on the textchanged event of the control, some server side processing and data validations are...

Prompt-Permission on facebook?

I am having trouble of understanding how the fb:prompt-permission work. I can have a link appear when the user click the fb:login-button either the user already logged in from facebook to our application or through our website. On the other hand, without clicking the login-button, the link or the permission dialog doesn't render if the u...

How do I get html attribute order to be consistent when testing in Javascript.

I have a component that creates a set of text like this in the innerHTML: fourty two<br><br><input value="Select" type="button"> upon setting the innerHTML, the browser will sometimes parse this text, producing: fourty two<br><br><input type="button" value="Select"> This behavior seems browser dependent, because I can get my tests...

How to focus on a form input text field on page load using Jquery?

This is probably very simple, but could somebody tell me how to get the cursor blinking on a text box on page load? ...

How to cancel edit/disable cached input (of type text) value?

I have an input of type text, from which I have already entered value 1234 it has been saved in cache as shown below. The problem here is that, it is extremely frustrating to select the textbox in the next row. Is there a way to not to display that 12334 (highlighted in the screenshot) from ever being displayed through HTML markup o...

adding prototype to object literal

STORE = { item : function() { } }; STORE.item.prototype.add = function() { alert('test 123'); }; STORE.item.add(); Been trying to figure out what's wrong with this quite a while. Why doesn't this work? However, it works when I use the follow: STORE.item.prototype.add(); ...

Get result of a JS file directly? (sorta AJAX related)

As I have known AJAX in the past, it has gone something like this: a server side language (in my case PHP) file generates xHTML has JS attached. The JS queries another file, with parameters set in GET or POST. This queried file's entire output is returned to the JS, which in turn makes a change on the original xHTML. Now, I'm trying to ...

Keep text selection when focus changes

I have a normal textbox, and a lightbox with a text input. I want to keep the user's selection in the textbox, even when the user focuses on the lightbox's text input. 1. Select text in normal textbox 2. Toggle lightbox 3. Focus on lightbox input At step 3., the user's text selection is discarded. How can this be prevented? See Googl...

How to enable hover only on one particular DIV for IE 6 ?

How to enable hover only on one particular DIV for IE 6 through javascript. I want to enabe hove on one div only I found some script on net to make this possible but they applied on whole site i think rendering time will be increased so i want to enable hover only on one particular div. IE7. js can do this but is has some more unwanted...

Building value of a variable by looping through form fields

Still a little green when it comes to AJAX/JS, and don't know the specific method(s)/functions(s) I'm looking for to acheive this task. Please bare with me if similar questions have been asked time after time before, and I hope there's enough information here to help you help me find the right answer. Outline I'm currently building a ...

Serving static content from port 8080?

Hi, Is it a bad practice to serve JS (static content basically - css, js and images) on port 8080 instead of HTTP (80)? If so, why? If not, are there any advantages at all? ...

How to add textbox dynamically ?

Hello, please help with this criteria ? Users can be able to add as many Names as they can, ADD NAME link serves the purpose for this How can i handle this specification ? Please check the spec below: Thanq ...

targeting a specific form with serialize()

Following on from my previous question, which was so quickly answered by Meder it wasn't funny, there's now an additional question that's popped up in the process of making a reusable jQuery form submitted that doesn't take the user away from where they were. Problem The jQuery serialize() function is performing its magic on all forms ...

How can I debug this memory usage / dom usage increase in my JS/Update panel site

I'm hoping some Javascript/ASP.Net gurus can give me some hints here. I've written an application which (unfortunately) uses UpdatePanel (yes, I'm aware that was a dumb idea, too late now though, I understand it more now - even though its an intranet site I'm having troubles with it) The site is a web based timesheet site, kind of ta...

How can I disable Alt-Enter in IE?

Hi, As the default behavior of IE is to switch to the full screen mode on Alt-Enter command. I've to avoid this and have to attach a custom behavior. Is it doable? Thanks. ...

jQuery plugin to animate colors form one class to another

Hi all, There are a lot of jQuery color plugins. However I couldn't find the one to animate between css class declarations. For example doing a smooth animation from .class1 to .class2: .class1 { background-color: #000000 } .class2 { background-color: #000088 } Is this possible at all? ...

How can I get IE's width without scrollbar

I get the width of the browser using the following line: $(document).width() and then I set the element to this width. But in IE, the horizontal scrollbar appears (width is larger than the browser size - I think this is because it counts the width of vertical scrollbar). I use the html 4.0 transition doctype. What should I do? ...

How can I modify my Shunting-Yard Algorithm so it accepts unary operators?

I've been working on implementing the Shunting-Yard Algorithm in JavaScript for class. Here is my work so far: var userInput = prompt("Enter in a mathematical expression:"); var postFix = InfixToPostfix(userInput); var result = EvaluateExpression(postFix); document.write("Infix: " + userInput + "<br/>"); document.write("Postfix (RPN):...