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...
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...
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...
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...
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...
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?
...
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...
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 ...
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...
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...
I have a table called sym_dis.
select * from sym_dis gives
+--------------+-----------------------------------+
| disease | symptom |
+--------------+-----------------------------------+
| typhoid | headache |
| typhoid | high fever |
| typho...
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.
...
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
...
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...
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 =...
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 ...
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...
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...
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...
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 ...