javascript

ClearType breaks with CSS filter - How to remove attribute with Javascipt?

Hi, I'm trying to use JavaScript to remove the CSS attribute "filter" from a block of text on a page. The reason is that using filter disables ClearType in IE8. I've tried using document.getElementById("someDiv").style.removeAttribute('filter'); and someDiv.style.removeAttribute('filter'); which don't throw errors, but have no effect....

website screen resolution auto resize

I have a website, its uses the 960 grid system, everything is fine. Except the header, the header is too tall! Is it possible to reduce the entire website size when the user's screen is less than or equal to 1024x768 ? (same way you can press CTRL+ and CTRL- in IE?) ...

Javascript website preview?

can i do a website preview on a link similar to facebook when you post a link? with image and short description ...

how to get start time and end time from selected day in fullcalendar

Hello, sample code, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <base href="http://arshaw.com/js/fullcalendar/examples/" /> <link rel='stylesheet' type='text/css' href='../fullcalendar.css' /> <script type='text/javascript' src='../jquery/jquery.js'></...

fetching client id in external javascript file

How to fetch Client ID's of asp.net control in external javascript file i google it but didn't find any relevant answer if somebody can tell me or provide me some good links ...

a two or three-pane hierarchical list app with several scrollable areas - what language handles that well?

My question is in bold (see below) but I hope to provide some insight into my issues just in case it helps anyone who could answer my question. I'm not sure which framework or language is the best for this job but I'd like to make an app that has two or three independently scrollable areas, similar to a 2 column template, that are all d...

eval responseText/responseXML performance

Does anyone readily know if using eval() and responseText (using JSON) is faster or slower than just using responseXML? I would imagine avoiding the eval() and using responseXML instead would be faster, despite the fact that you gotta write really long code to actually get the values of the XML. Thanks. ...

how to get start time and end time from selected day in fullcalendar

Hello, i struggle to get start time and end time from selected day in fullcalendar...pls let me know..its urgent.. below sample code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <base href="http://arshaw.com/js/fullcalendar/examples/" /> <link rel='styl...

Selenium IDE - unable to select value in list possibly due to 'onchange' event

Hi, I'm having trouble running the following command to select a value in a drop down list using selenium IDE. Command = Select Target = NumberOfAdultRecords Value = label=4 When i run the test above in sequence with the other commands in the test case, the value 4 is not selected in the drop down. If i select only that one comman...

Is there an easy way to clear an SVG element's contents?

In HTML, it's very convenient to be able to say: div.innerHTML = ""; In order to clear a <div> element. Is there any equivalent if I have an <svg> element instead? There seems to be neither innerHTML nor innerXML or even innerSVG. I know the SVG DOM is a superset of the XML DOM, so I know I can do something like this: while (svg.la...

Javascript date increment question

I need to increment a date value by one day in Javascript. For example, I have a date value 2010-09-11 and I need to store the next date in a Javascript variable. How can I increment a date by 1 day? ...

jQuery li hover complete code

<ul id='ulid'> <li>Task1</li> <li>Task2</li> <li>Task3</li> <li>Task4</li> <li>Task5</li> <li>Task6</li> <li>Task7</li> </ul> <div id="show_details"></div> I would like what's the JavaScript that I can use to copy the details of the li into the div on mouseover hide it on mouseout. ...

Save response type "Content-Type : text/javascript" in text file

Hi, I am getting some response of HTTP request. Response header is "Content-Type : text/javascript" and some response body. I want to save this response body in text file as "a.txt". Can I do it ? I have "C" files in which I have to do it. Regards PJ ...

Javascript to validate password

Hi, I am new to regular expressions.Can anyone help me in writing a regular expression on the following description. The password contains characters from at least three of the following five categories: English uppercase characters (A - Z) English lowercase characters (a - z) Base 10 digits (0 - 9) Non-alphanumeric (For example: !, $,...

Problem with connecting to google map url to fetch lattitude and longitude for particular location

I have the following code to fetch lattitude and longitude for given address but the permission to google url is denied . function getlatlng(address, callback) { var addressval = address; var address; var url; var googleUrl = "http://maps.google.com/maps/api/geocode/js...

javascript, mysql database and escaping 'weird' characters

Hey there. On my website visitors can do some inline editing. I use ajax for it with a MySQL database and PHP. I expect the Dutch language to be used on the website. My challenge is to get the character encoding to work well. I could use advice on: the database (do i use utf-8? latin1_swedish_ci) the tables in the database (i'...

Visual Studio showing {...} as value for Javascript variable in debugger

Visual Studio 2010 shows '{...}' in the debugger as the value for a Javascript variable. The type is object. How can I view the contents of the variable? There's no expansion icon. ...

How to convert CSV data to paring array data using javascript?

I'm trying to convert CSV data into paring array data, but I'm totally new to javascript, and I don't know how to do it now. Does any one have some idea? Thanks in advance! CSV data: year,USA,EU,UK,China,India 2003,10882,10970,1795,1575,599 2002,10383,9040,1564,1434,510 2001,10020,8303,1430,1345,479 2000,9762,8234,1438,1252,457 1999,9...

disable all page elements with modal feature using jquery

I wish to disable all page elements upon an action. Like the modal feature that is in the JQuery UI. Like on an ajax action.. I wish to show a notification and at the same time to enable the modal feature. And after the request, need to re-enable the page elements back. Is there any option available in core jquery for that or any plugi...

Javascript onChange event equivalence for non-form-fields?

We know the onChange event only works for form fields. Is there any way to monitor the change of innerHTML of a specific DOM element other than form fields? ...