html

What is the fastest way to scrape HTML webpage in Android?

I need to extract information from an unstructured web page in Android. The information I want is embedded in a table that doesn't have an id. <table> <tr><td>Description</td><td></td><td>I want this field next to the description cell</td></tr> </table> Should I use Pattern Matching? Use BufferedReader to extract the information...

Easiest way to class "current page" nav element?

I have a navigation bar on my webpage with links to different pages. Is there an easy way to automatically set the class on the navigation element corresponding to the current page? For instance, I want the "About Us" tab on the bar to have a different style if you're currently viewing the "About Us" page. I know I could rig up some P...

How to anchor a DIV to the bottom of a page?

I have a fixed-width DIV that I want to remain at the bottom of the browser's viewport. Unfortunately, I haven't a clue where I would even begin to try to implement this. Obviously the first thing to do is set position to fixed. But beyond that... no clue. ...

how to convert html file i.e. compatible to display within flash..?

I allready developed the standalone flash exe to disaply both the HTML and .swf files using AS3 I have 1000 s of html files that are compatible with flash because only some tags are supported by flash. Is there any tool or common script to convert the flash compatible html. ...

Does Flash support the <div> tag?

Does Flash support the <div> tag? I want to convert a table tag to a div tag to display within Flash. ...

padding is not working in ie and safari

Hi All I used a padding-left in selet list <select style="padding-left:15px"> <option>male></option> <option>female></option> </select> its working fine in FF but not in safari and ie Then I have tried a text-indent in it <select style="width:258px;text-indent:15px;"> <option>male></option> <option>female></option> </select> ...

Type Mismatch on Http request from c#

I'm getting redirected to an error page it seems when I try to request info from this page and write it to a txt file. It says 'Sorry, Type Mismatch.' How can I get this info. namespace webscrape { class Program { [STAThread] static void Main(string[] args) { try { // Modify as a...

How to make a my fonts sharpness at any point of resolution by using typeface.js

Hi All, I m using typeface.js to convert my font to specific volta regular font in my web site but it gets blury when i increased a resolution please tell me how to do it sharp at any resolution code: (function() { var _typeface_js = { faces: {}, loadFace: function(typefaceData) { var familyName = typefaceData.familyName.to...

Chrome: On pressing Enter on a Textbox of a <form> Submits page without calling onClick of submit button on that form

Hi Folks, I have a scenario in which I have 2 Submit Buttons in a form for going back and forward. Both the buttons have different JavaScript associated with it. It is working great if we press these buttons to navigate. But when in Google Chrome, when someone press enter on any of the text box within the Form it does not calls the on...

CSS: Skip underline in part of link

Is it possible to have a contiguous link, where the text is normally underlined on mouse hover, but in the middle have a section (eg an image) without this underline? This does not work: <a href="#">one <span style="text-decoration:none;">two</span> <img src="img.png" style="border:0px; text-decoration:none;"> three</a> ...

Nested <a> and <span> challenge: part 2 - javascript, IE8 and alignment

Hi forum, I have two head-scratchers here: #1- IE8 not seeming to like my javascript; #2- a CSS alignment issue in all IE6 & 7s. Thanks so much for the various suggestions (to use javascript) on my last question - really helpful. I have been able to get the double nested behaviour of the CSS-only page (see team.html in Firefox when you...

Dynamically change width of div when content is more on load

Hello All: I have one div with predefined width (say 80px), but the length of the content in the div can be long, can any body tell me how to increase the width of div based on content length? my div looks like <div class="content"> Text here </div> I have tried to use jQuery to resize it, but I am always getting 0 value when I...

where to place cancel button on form

Hi all Does anyone know the correct place of the cancel button in a form? Does it have to be on the left of the submit button or on the right? ...

What reasons could justify apple's HTML5 demos use of HTML4 doctypes?

Some of Apple's HTML 5 demos use an html4 loose doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; What reasons could they have for not using the HTML5 doctype?: <!DOCTYPE html> EDIT: I am really looking for technical answers here not political, perhaps I should of rew...

CSS Problem in scrollbar coloring.

.body_c { scrollbar-face-color:#408bc4; scrollbar-shadow-color:#afefff; scrollbar-highlight-color:#afefff; scrollbar-3dlight-color:#000000; scrollbar-darkshadow-color:#006399; scrollbar-track-color:#bfd3e6; scrollbar-arrow-color:#FFFFFF; margin-top:0; margin-left:0; margin-right:0; } I am using this class for coloring scrollb...

How to change a default drop down icon of select list

Hi All, Is there any code or site which will provide me a source code for custom select I want to use a image in in place of default dropdown icon.. Thanks ...

float: right with <li> is not working

Hello All: I have following code which works fine in firefox and ie 8, but in IE 7 the second li is coming with some top space instead of same line. <LI style="PADDING-LEFT: 20px"> Sort by: <SELECT id=ddSortOrder class='content-select'> <OPTION selected value=0>Recommended </OPTION></SELECT> </LI> <LI i...

is there any Eclipse plug-in for WYSIWYG html editing/creating ?

it's a very easy question maybe, but i can't find any "working" plug in for WYSIWYG (what you see is what you get) HTML editing ,you know like dream weaver i'm developing a web site which is a mix of php and python, coding is comfortable but designing is very hard with out such a plug in thnx :) ...

Changing default XMLHTTPRequest which is sending after form submit.

I have some field in form, lets say: <FORM action="http://server.com/cgi/handle" enctype="multipart/form-data" method="post"> <P> What is your name? <INPUT type="text" name="submit-name"><BR> What files are you sending? <INPUT type="file" name="files"><BR> <INPUT type="submit" value="Send"> <INPUT type="reset...

Where to put canonical tag ?

hi, I have learned the uses of canonical tag recently. Now, my question is. suppoose i have one master page - Targeted webpage page - www.example.com/science/medical-science Another page (clone) - www.example.com/science/medical-science?//586?789 Now suppose these two are basically same webpages, i want all my visitor of link juice ...