javascript

how to enable an css property for the ajax tab panel using javscript

hi, i am using asp.net ajax tab container[ which has 2 tab panel] under each tab panel i have an div tag. now by default.i have my Activetabindex="0" now i need to enable css property for the div tag using javscript so that there is no post back happening. i doing like this css property for the tab panel 1 is not getting applied...

Can't access the option value using javascript on Internet Explorer

I have the following setup "<form name=\"mylimit\" style=\"float:left\"> <select name=\"limiter\" onChange=\"limit()\"> <option selected=\"selected\">&nbsp;</option>"; ... I wrote a js script to access the selected value of the selectField 'limiter' like so: var w = document.mylimit.limiter.selectedIn...

How can recognize user selected which ones?

Hi, I have two list on my request on jsp. First one is productGroupName, and the second is products. Now, I show these like below. <html:form action="/priceOrder"> <table width="100%" id="tableStyle" style="font: message-box;padding: 20px;"> <logic:iterate id="productGroups" name="productGroup"> <tr> <td> ...

How can I make custom UI controls for the QuickTime Player?

How can I make custom UI controls for the QuickTime Player in HTML pages? (like Apple does on its site) ...

How to get the querystring of a page with JavaScript?

hi all I wanna to get the query string of a page within a JavaScript block. for example: The page has a URL like localhost:1234/Test/page1.aspx?ID=10 How can I get '10' with JavaScript? ...

Javascript Rounded Corners for Images

Hi, I need to display images with rounded corner. Long time back I saw a website doing this using a javascript library that overlayed the rounded corner image over the normal image. Do we have any javascript library (preferably jQuery plugin) to do this directly to img tags rather than usijg image as background for a div? ...

Help! me with "AJAX"

I am working around AJAX for few months now and i see Ajax request as following, Pass parameters to background page (PHP/ASP/HTML/TXT/XML ... what else can be here?) Do some processing on server Get back the results and show to client (HTML/XML/JSON ... what else can be here?) If there is something else to add on Request lifecycle ...

Is there an equivalent to php.net for JavaScript?

I am looking for an equivalent to the php.net manual (http://us3.php.net/manual/en/) but for javaScript methods and syntax. Is there a single site that lists out all the javaScript functions available in a clear and concise manner as php.net provides for the PHP language? ...

Toggle Visibility in JQuery

I can do this in JS, but I'm beginning to use JQuery and would prefer to develop skills for that. I have a reminder message [#CheckboxReminder] "Tick this checkbox to indicate you have checked your data". I then want to hide the reminder message when the checkbox [#IsConfirmed] is ticked, and restore it to original state if it is then ...

Sum a list of text boxes in jQuery

I have a form in which there are textbox(s) added dynamically using jquery. The textbox ids is formed as an array, i.e. Quantity[0], Quantity[1], Quantity[2] ... I want to add the numbers in these textbox(s) and display the value in another textbox named "total_quantity" preferably when the focus is shifted out of the array textbox. Ho...

setTimeout and anonymous function problem

This is my code, SetOpacity get invoked with wrong values, why? function SetOpacity(eID, opacity){ eID.style.opacity = opacity / 100; eID.style.filter = 'alpha(opacity=' + opacity + ')'; } function fade(eID, startOpacity, endOpacity){ var timer = 0; if (startOpacity < endOpacity) { for ...

how do i get the numeric representation of a character in javascript?

I'd like to get a javascript numeric representation for a letter to do some relative manipulation i.e. in pseudocode to conduct an operation like 'a'.getNumberRep - 'b'.getNumberRep. Best way to do this in js? ...

Select everything in a pre box when you click on it?

The select() method only seems to work with textareas and input spaces, and I don't know javascript very well, so I'm not coming up with any solutions. Does anyone know how to highlight everything in a pre box when you click on it? What I'm trying to do is make it so a visitor can easily highlight everything in the pre so they can then...

JavaScript inflate implementation (possibly FF 3.6 only)

I'm writing some scripts that are using the HTML 5 file API in FireFox 3.6. I got some deflated (compressed) files, and I need to inflate (uncompress) them. I found a few scripts while googling, but none of them have tests. So I'm a bit reluctant to use them. My question is: Browsers can inflate. Can I somehow piggyback on the inflatio...

jQuery Infinite Scrolling/Lazy Loading

Hi, I'm currently redesigning my website and have been looking into using JavaScript and jQuery. Here is what I have so far: http://www.tedwinder.co.uk/gallery2/. My vision is to have all of the photos on one page, which the user can scroll through, like now. However, I understand the limitations and effects of having 50+ large-ish ima...

original script for pagination

This is my pagination script and i wonder why im getting these errors in IE : function GetXmlHttpObject(){ var a; try{ a=new ActiveXObject("Msxml2.XMLHTTP"); } catch(d){ try{ a=new ActiveXObject("Microsoft.XMLHTTP"); } catch(c) {a=false;} } if(!a&&typeof XMLHttpRequest!="undefined") { try{ ...

Drag a layer using a drag helper div, and have imagemaps in layer behave as if area outside imagemap is -not there-?

Items are stored with x,y coordinates. The .items div starts at [0,0] and is repositioned based on movement of .dragger (which is made draggable). Everytime the user stops dragging / releases, .dragger is repositioned to the center of the screen, and an AJAX request is made which places the next x/y coordinated items which are in the cur...

How to move around an image with javascript?

i'm developing a simple web quiz. Using javascript, i would like to create an effect that displays a small image (1UP) that wanders around the "game deck" when users reach a specific level or score; user could gain an extra life simply clicking on it in time. Do you know any Jquery plugin or javascript snippet to achieve an effect like t...

javascript to stop specific service

Hello, I have the following code in a script. The problem is That I want to get information of scripts that starts in a specific name and are in a specific startmode. var e = new Enumerator(GetObject("winmgmts:").InstancesOf("Win32_Service")) var WSHShell = new ActiveXObject ("WScript.Shell"); var strPrefix = "TTTT"; for(;!e.atEnd(...

Hiding messages for logged in users?

We currently have a message option on our site that displays any message we add via the CMS to logged in users, but what would be the best way to offer a 'hide' option? This way if that particular user doesn't want to see the message again they could hide it? Any suggestions welcome... ...