html

How do I make these fields autopopulate from the database?

I have an array, which holds values like this: $items_pool = Array ( [0] => Array ( [id] => 1 [quantity] => 1 ) [1] => Array ( [id] => 2 [quantity] => 1 ) [2] => Array ( [id] => 72 [quantity] => 6 ) [3] => Array ( [id] => 4 [quantity] => 1 ) [4] => Array ( [id] => 5 [quantity] => 1 ) [5] => Array ( [id] => 7 [quantity] => 1 ) [6] ...

Scrape HTML tables from a given URL into CSV

I seek a tool that can be run on the command line like so: tablescrape 'http://someURL.foo.com' [n] If n is not specified and there's more than one HTML table on the page, it should summarize them (header row, total number of rows) in a numbered list. If n is specified or if there's only one table, it should parse the table and spit i...

java: how to parse html-like xml

I have an html-like xml, basically it is html. I need to get the elements in each . Each element looks like this: <line tid="744476117"> <attr>1414</attr> <attr>31</attr><attr class="thread_title">title1</attr><attr>author1</attr><attr>date1</attr></line> My code is as below, it does recognize that there are 50 in the file, but i...

Options for non-native form inputs for the web?

I'm wondering if there are any good non-native form inputs for web development? I am currently using the built in <input> controls. They work just fine, but for my application they are too big (especially on OS X). I am wondering if there are any libraries that I can drop in as replacements. I am especially interested in ones that: Ar...

Rendering HTML in Java

I am trying to create a help panel for an application I am working on. The help file as already been created using html technology and I would like it to be rendered in a pane and shown. All the code I have seen shows how to render a site e.g. "http://google.com". I want to render a file from my pc e.g. "file://c:\tutorial.html" This is...

Plugin to avoid share username in Wordpress

Is there a way to void sharing of username (based on ip address or login at same time in different location) for Wordpress? If there is a plugin just to track IP address and login time, it should be fine too. Thanks ...

Horizontal(tabbed) menu with ability to wrap overflowed items into collapsible dropdown

It's about html/css/javascript menu ;) I am looking for unified solution to hide extra tabs of horizontal/tabbed menu when it overflows it's container. The initial idea plagiarized from firefox tabs workflow, i.e. when you have too much tabs it will wrap extra ones into collapsible dropdown button "List all tabs". I am thinking to pl...

Why do browsers use my saved password for all forms in the one site?

Is there a way to limit the url of saved credentials in browsers? For example, if I save a username and password for http://www.website.com/login can I make it so that the rest of the forms in the site don't use these details? http://www.website.com/members, http://www.website.com/admin etc... I'm aware of the autocomplete attribute bu...

How to fill an HTML form with CSS ?

Hello, I have an HTML form with radio buttons, check boxes, text fields and drop down lists. Since I want user to fill everything in my form, none of the radio buttons and check boxes are checked and the text fields are empty. I would like to write a CSS file that will fill the form with answers (I don't want to change my HTML file). I...

Links styling in CSS

Hello, Why the following styling of the link does not work ? <html> <head> <style type="text/css"> a:link {color:#123456;} /* unvisited link */ </style> </head> <body> <a href="http://www.google.com"&gt;Visit Google</a> </body> </html> Thanks ! ...

What CSS compiler do you use (SASS, Less, HSS, etc)?

I've been looking to make my web development a little more DRY. SASS+HAML seem to have a degree of popularity within the Ruby/Rails community, but, do those outside of that community generally use these as well? Do they opt for other solutions, or do they stick with plain HTML+CSS, and if so, what is the reason? ...

Android Lightweight HTML Template Engine

Hello, I am after a very lightweight template engine that supports / can be embedded inside Android programs. I've looked at the MiniTemplator (I think that is how you spell it) and that looks great but it loads in only from file and I need to load templates from string and I am not fully confident in changing that code lol. Can anyone ...

How do I refresh a page with a hash?

I refresh pages by writing window.location = window.location;. However this doesn't work on a page like /page#c22. It will just jump to whereever c22 is. How do I refresh the page? It does not need to use go to #c22 once refreshed but I am sure there is a more dependable way than window.location = window.location. ...

Python regex look-behind requires fixed-width pattern

Hi When trying to extract the title of a html-page I have always used the following regex: (?<=<title.*>)([\s\S]*)(?=</title>) Which will extract everything between the tags in a document and ignore the tags themselves. However, when trying to use this regex in Python it raises the following Exception: Traceback (most recent call l...

How to disable crazy Javascript/HTML formatting in Visual Studio 2008?

The formatting of HTML and Javascript is just crazy. It actively works against you. Does anybody know how to turn this off completely? (I Do not speak about the HTML designer, I speak about what happens when you press ctrl-k,d in HTML view or when you press ; in a javascript block). ...

What are HTML applications?

I recenty stumbled upon some files described as "HTML Applications" on my Win XP machine. What are they? Who would ever use them? Why do I have like 2 or 3 of them on my PC? How do they generally work? I mean hey - HTML is for adding formatting to text - HTML Applications? What the? Microsoft? ...

Need some resoultion. Javascript function not being called in click event in jquery.

I am trying to call my function named isUrgencyTypeValid from my javascript code but it is not working. Please check what is the problem in my code. Alert should get displayed which is not being displayed My javascript function is not being called. HTML Code <td colspan="2" align="center"><input id="btnSubmit" type="submit" val...

Styling ordered lists with CSS

Hi, I have an ordered list in HTML. I would like to add styling only to the numbers (1,2,3,...), and not to the list items themselves. Is there a way to refer to these numbers ? Thanks ! ...

Convert tags to html entities

Hello, Is it possible to convert html tags to html entities using javascript/jquery using any way possible such as regex or some other way. If yes, then how? Example: <div> should be converted to &lt;div&gt; Note: I am not talking about server-side languages. ...

JQuery IE7 Z-Index Bug

I built a Jquery dropdown menu using this tutorial: http://noupe.indexsite.org/tutorial/drop-down-menu-jquery-css.html It works across browsers except for IE7 (shooooocking). There seems to be a z-index sorting problem and the drop down menu shows up under all of my other JQuery elements. Im not sure how to set the z-index so that it s...