html

Is it possible to get Google Maps Directions using HTTP requests?

Is it possible to use the Google Maps API router just using HTTP? Something like http://maps.google.com?from=blah?to=blah And have it return some sort of XML or JSON representing the directions? ...

HTML CSS Border help

i am trying to get the bottom border one color but because in the table border is set to 0 but when i set it to one it shows. i put the following code in the < TD> style="border-bottom:thin; border-bottom-color:#006; " ...

android html container

Hi, does anyone know whether is it possible to display a dialog with html code on android device? I would be more than thankful for any tip about it. What I want to di is design a html layout and display it in a dialog inside the custom application. Thanks! ...

Javascript: Changing color of every "r" in html document.

EDIT [how can I] change the color of every R and r in my HTML document with javascript? ...

Refresh Page only time

Hi, I write a meta tag for refreshing web page. Now i want to refresh a page only one time. What is the code for refreshing page only one time. Please help me to fix the problem... Thanks in Advance.. ...

How to clean data from web forms in asp.net mvc?

I have an asp.net mvc app and users are cutting and pasting data into textarea fields. We are getting some characters in there that my IBM U2 database does not like. How can I strip all of these out of the textarea before sending them to my database. The problems yesterday were with the en dash and em dash. Today I'm having a probl...

Custom JavaScript as DOM node attribute to perform when it's ready

Can I add a custom JavaScript as some DOM node attribute to perform when it's ready like JavaScript added as "onClick" attribute performed when you click on it? Suppose i need to process a div element with some funcMyTransform function. I think it'll be more elegant to write smth like this <div onReady=funcMyTransform(this)>...</div> ...

CSS: have a div after an absolute positioned div

Hey, I was wondering how to do this, my current mark up is as follows: <div id="playArea" style="position: relative;"> <div id="widget1" class="widget" style="position: absolute; left: 295px; top: -1px; width: 313px; height: 269px;">Hello</div> <div id="widget2" class="widget" style="position: absolute; left: 63px; top: 35px; w...

Making a div expand its width to fit fixed width content in IE 6 and 7

I need a div with a border to wrap around arbitrarily sized fixed-width content (this means I do not know what that fixed width will be, it changes from page to page). The below html does what I'd expect in IE 6, that is, if you size the browser window down to less than the width of the content (in this case a fixed-width <p>, but it c...

div floating over table

i am try to get a div to floating over table so it will be ontop of all the txt? ...

Trouble with appending a form in jQuery

Here's my code: $('.reply').click(function() { $leftwrap = $(this).parent(); $comment = $(leftwrap).parent(); $id = $comment.attr('id'); if($(this).siblings('.reply-form').length == 0) { //check whether or not the form as been initiated yet $(this).parent().append('<?php $replytimestamp = strtotime("now"); ?> <form class="reply...

IE 6 Compatible Content Slider suggestions

Hi Folks, I am working on a site that requires a selection of images to appear in a tabbed featured content area. Does anyone know of a good (IE=>6) compatible content slider that would allow me to do this? Any language goes, but the simpler the better. Thanks! ...

What language/script can I use to embed a .M4V file into a webpage?

I'm trying to embed a .M4V video file on a web page and it seems to disagree with all my attempts. I need it in this format as it is for someone else's ongoing project. I am trying to use this java library file to initialize/talk with: <script type="text/javascript" src="qtobject.js"></script> Here is my code attempt (not working, b...

Fix incorrect nesting

function drawinventoryList() { inventoryArray.sort(); var inventoryString = ""; for (x in inventoryArray) { arrayValue = inventoryArray[x]; var counter = parseInt(x) + 1; if (counter == 1) { inventoryString = "<table width='100%' celpadding='0' cellspacing='0' style='border:1px solid #d00;'...

A simple PHP query

I am a noob to PHP just wondering why are we writing the php script in the body tag of HTML. I am just taking a word on one page and directing it to another page using the post method. below is the code. page1.html <form action="disp.php" method="post"> Enter a word: < input type="text" name="word" /> disp.php this goes inside th...

Any free XHTML CSS editor with live(on type) W3C validation?

I know W3C Validator can do this but i need any free offline editor. I would like to see live error in IDE if i'm not closing any tag mistakenly like this http://livevalidation.com/ not after coding whole document. if anything is not proper in xhtml and css then ID should show error on that place in source code. ...

efficient algorithm to perform spell check on HTML document

I have a HTML document, a list of common spelling mistakes, and the correct spelling for each case. The HTML documents will be up to ~50 pages and there are ~30K spelling correction entries. What is an efficient way to correct all spelling mistakes in this HTML document? (Note: my implementation will be in Python, in case you know of an...

calculate the number of html checkbox checked using jquery

Hi how can i calculate the number of checkboxes that a user has checked using jquery? what i want to do is limiting the number of checking for checkboxes in a form to 10 for example and when a user exceeds this range display a warning message. ...

How to create an on/off switch with Javascript/CSS?

I want to have a sliding switch. On the left would be Off and on the right would be On. When the user toggles the switch, I want the 'slider' portion to slide to the other side and indicate it is off. I could then have a callback that takes as input the state of the toggle switch so I can act accordingly. Any idea how to do this? ...

Conflict using the css content property and a multiple select list.

I've never used or even heard of this content property but it is interfering with my ability to select multiple items from a select list. Whatever 'content' is, I need it because when I delete it, there are background hignlights that no longer work properly. Can someone help me figure this out? Is there a workaround? form li:after { ...