html

Do not work a transfer of a variable.

Possible Duplicate: Data transfer from JavaScript to PHP. How can i get the browser's height and width to php? Like a data transfer from javascript to php? With using innerHeight and InnerWidth, i think. (I just need to show user small picture if he has small screensize and big if big and without a data about screensize i can...

Create and use HTML full text search index (C++)

I need to create a search index for a collection of HTML pages. I have no experience in implementing a search index at all, so any general information how to build one, what information to store, how to implement advanced searches such as "entire phrase", ranking of results etc. I'm not afraid to build it myself, though I'd be happy t...

How to handle HTML code that repeats a lot

I have some HTML code portions that repeat a lot through pages. I put this html code inside a function so that it is easy to maintain. It works perfectly. I, however feel this may not be very good practice. function drawTable($item){ ?> HTML CODE HERE <?php } I also run into the problem that when I want to return data using json th...

How do I nest a div inside an anchor tag in rails.

I'm a bit of a Ruby on Rails amateur, and I am trying to nest a div tag inside of an anchor tag in rails. I can make it work, but the resulting code I have written is terrible and is certainly NOT the rails way. Here is an example of what I am trying to accomplish in HTML: <a href="tell-a-friend"> <div id="tellafriend"> <strong>Str...

Will my site be secure?

Hello all! I'm just about to release a website I've designed into the wild, but before I do, I would love some help determining whether I have made any silly security mistakes. Since I'm using shared hosting rather than dedicated, this is a very important concern. After much research and tutorial-reading I've done the following: All P...

Clean Up HTML in Python

I'm aggregating content from a few external sources and am finding that some of it contains errors in its HTML/DOM. A good example would be HTML missing closing tags or malformed tag attributes. Is there a way to clean up the errors in Python natively or any third party modules I could install? ...

Fluid arrangment of dynamic tables

Hi all, I had a question with regards to fluid arrangement of tables. I have attached a screen-shot below to try and explain what I am trying to achieve. Basically, I have a number of dynamically created tables. Their widths are fixed but their heights can vary. What I am trying to achieve is, the maximum utilization of space when t...

100% height scrollable div inside of body with a bottom margin of 50px

Can't get this to work. Goal is to create a overflowing scrollable div that stretches the entire width and height of the body. Problem comes once I add a body bottom margin of 50px which I want to reserve to absolutely position a 100% x 50px div control panel. It's essentially a faux iframe with a bottom control panel. The div seems to ...

css3 animation only happening once

I'm trying to make a box rotate through javascript/css3 rotate every time I click on it. It works, but only the first time I click on it. Each time after, I get the alert which means it's not a javascript error - but no animation. Here is my simple page - <script> function rotate( box ) { alert('start'); box.style.webkitTra...

HTML: Make Title and Tab Different

I'm making a web site for a friend's company Redevelopment Reporting Solutions (RRS) and obviously that would be the title of the page. Unfortunately, in the tab bar Redevelopment Reporting Solutions is cut off. So, basically I want to have it say RRS in the tab, while still saying Redevelopment Reporting Solutions in the title bar at th...

Reformatting the query

I have a table called sym_dis. select * from sym_dis gives +--------------+-----------------------------------+ | disease | symptom | +--------------+-----------------------------------+ | typhoid | headache | | typhoid | high fever | | typho...

How can you make a gradient background without images?

Like this. in general i will make 1 px wide image of this then will repeat-x. but is it possible to make same type of background with CSS3 , if yes then tell me how tp make same of this. with all browser compatibility IE 8, 7, 6 , FF , Chrome, Safari, iphone. ...

Html paths difference between full path and going off current?

so ive been reading up on SEO- and heard that paths should include full http://www.etc path, does this apply for image sources and video content as well? our does it make a difference if say a video on my page is loaded via "/images/ex.mov" does this affect load time at all either way? thanks ...

How do I make the whole area of a list item in my navigation bar, clickable as a link?

I've got a horizontal navigation bar made from an unordered list, and each list item has a lot of padding to make it look nice, but the only area that works as a link is the text itself. How can I enable the user to click anywhere in the list item to active the link? html: <html> <head> <link type="text/css" rel="stylesheet" hre...

how to restict number of images in a row to three ?

Hi i am populating the images from my database in a table,, how to restrict the images to three per row <table border="0" align="center" height="25%" width="25%" > <tr><td align="center" width="50px" bgcolor="#4b2d0e"><strong><font color="#FFFFFF">Friend List</font></strong></td></tr> <? foreach($Selected as $row) {?> <? $value =...

Suggestion for online html code generator from richtextbox on webpage

Hello guys, do you any opensource proyect who gave me the posibility to have an very simple online richtextbox were an user can add strong, emphasis and other simple modifications to text and when user finish hit the submit button and the code generates a html result. For example, here this guys have a script who made almost all what i ...

Get the selected text of a web page in google chrome extension

Hello, I am on google extension development, when a popup is clicked, the input box present in the popup.html file should contain the selected text of the current webpage. example textbox, <input id="searchBox" type="text" /> when a text is selected in a webpage, the textbox should contain the selected word. I tried with chrome.exte...

Javadocs without HTML

Robert C. Martin's book Clean Code contains the following: HTML in source code comments is an abomination [...] If comments are going to be extracted by some tool (like Javadoc) to appear in a Web page, then it should be responsibility of that tool, and not the programmer, to adorn the comments with appropriate HTML. I kind of agre...

HTML text: do I need specific tags to use text?

What I want to do is <div>some text <span>different text</span> more text </div> I wasn't sure if I needed one of <a><p><h1> tags to use text or if I could simply just write it with just div. Does it affect proper markup or SEO? Also in cases where I am using the header tags <h1><h2>, etc. How many can I go up to? Such as <h7>+? And...

Text/Links background should be transparent over a gradient background but is in white

I have a small problem. I'm starting to devise a new site for myself, www.dvpwebdesign.com. I'm currently just using html and css on it. The problem i have is IE, my intro page has a repeated gradient background, with links/text over it. All works fine on Safari, Firefox, but not the dreaded IE, which shows a white background behind the ...