html

ROR + How to make Textarea with few conditions of validation and property .

Here, In my code I have to put one of the text_area and i have to put some certain condition over them. Code which was used by me. Ruby Code:: <%= text_area "rate_unit","rate_unit_notes", "rows" => 3, "cols" => 50, :tabindex=>3, :maxlength=>100 %> HTML Code after executing the page <textarea tabindex="3" rows="3" name="rate_...

How to overwrite table background color comimg through <iframe> tag

Hi, I have used an with external src. Can i overwrite the table background color of that external page. How to overwrite table background color comimg through tag? Please help me!!!! ...

Search engines and the '&' character

I am about to finish up my dynamic classifieds website (php) and have some problem with figuring out how to write the meta and title tags. I have read mixed articles about the & sign, and how to use it in the title or meta tags properly. What role does the document encoding have and does the DOCTYPE have anything to do with this also? ...

ie6 margin expanding by 20px

hi there, i have div's wrapped under div's my html code is. <div id="content-row"> <div id="left-box"> <div id="small-box"> </div> <div id="small-box"> </div> <div id="small-box"> </div> <div id="small-box"> </di...

Redirect user upon form submission

Hey i want to use php to redirect a user to a url depending on which radio buttons they have been selected in the form once they click the submit button. I have this thus far but it does not work so its pretty useless. <?php // variables form form $Country = $_POST['Country']; ?> <form action="<?php pri...

calling xml file and swf files in html page

How i can call xml and swf files in html page i hav to display flash image ...

Convert div to span with CSS

Hi, I have a few divs which makes a little bit too spacey between the footer and the body. So i want to convert one div to a span. But when I do that, it messes the footer's content a bit up. How can i do this and keep the styles that already have been defined for the footer? Thanks in advance! Edit div.footer { width: 986px; margin...

overlay opaque div over youtube iframe :)

How can I overlay a div with semi-transparent opacity over a youtube iframe embedded video? <iframe class="youtube-player" type="text/html" width="520" height="330" src="http://www.youtube.com/embed/NWHfY_lvKIQ" frameborder="0"></iframe> <div id="overlay"></div> CSS #overlay { position:fixed; top:0; left:0; width:100%...

Best Way To Place an SVG file in HTML

From my research, i understand there are three ways to place an svg file inside HTML: using embed: <embed src="plot1.svg" width="500" height="320" type="image/svg+xml" /> using object: <object data="plot1.svg" width="500" height="320" type="image/svg+xml" /> using iframe: <iframe src="plot1.svg" width="500" height="320"> </if...

Get multiline text to align with content instead of numeric label with OL and list-style-type: inside

Hi! I have an OL element with list-style-position: inside. However, if the text inside an LI element is multiline, the text on the next line flushes left with the numbering, not with the other text. Is there any way of fixing this? Code used: <style type="text/css"> ol { list-style-position: inside; } </style> <ol> <li>If this text ...

html signature outlook

Hi, We have a new company signature which I have to edit manually. Well I copied the code from an email plus picture and changed the path. But for some reason I am unable to change the y-position of the picture. I want the picture to be at the top. Here is the code for the display of the picture: <v:shapetype id="_x0000_t75" coordsize...

How to theorize about this phenomenon about <div> tag

My understanding about CSS is that, generally if you set <div style="color: Red">, all content inside <div> will be affected. However if you put a html button inside, the color on the words on the button is not affected. I'm a bit disturbed by this exception. How do I give a reasonable explanation to it? ...

in_array if $massive = $insteredname

<? $nimi = $_POST['nimi']; $nimed = $_POST['nimed']; if ($nimi) { if ($nimed) { $nimed .= ', ' .$nimi; } else { $nimed = $nimi; } } ?> <html> <form method="post"> Sisesta nimi: <input type="text" name="nimi" size="9" /> <input type="hidden" name="nimed" value="<?= $nimed ?>" /> <input type="submit" value="...

Using PHP mail - setting correct MIME type

I've got a problem with a PHP script which sends an email confirmation. When receiving the email in Thunderbird, the header comes through with the \r\n present and with the MIME type also containing the Content-type information. Hence the email renders as plain text, rather than HTML. If I comment out the MIME type as below, the email r...

js form filling checking

How could i return user to unfilled field when he push "submit" button? I have something like this: <!--Contact Name--> <div class="section" id="inputdiv"> <span class="fieldname">Name:</span> <input type="text" id="contactname" /> <!-- Nessesary to be filled--> <script type="text/javascript"> ...

Regular expression for grabbing the href attribute of an A element

Hi there Trying to find the links on a page. my regex is: /<a\s[^>]*href=(\"\'??)([^\"\' >]*?)[^>]*>(.*)<\/a>/ but seems to fail at <a title="this" href="that">what?</a> how would I change my regex to deal with href not placed first in the a tag? thanks! ...

find nearest named anchor to an element on a web page in javascript

I'd like to be able to right-click on an element on a web page and get the URL of the nearest anchor. For example, say I'm looking at online docs, and I see a paragraph saying something surprising, then I'd like to be able to right-click on that, choose "copy URL of nearest anchor", then go to my IDE and be able to paste a URL like "htt...

How to change cursor style on element with 'contenteditable' attribute in IE?

I am trying to change style of cursor on element that has 'contenteditable' attribute set to true in IE. <div contenteditable="true" style="cursor:pointer;"> text </div> I have tried do that using inline styling like in example above, also with css file and by javascript but with no luck. All my solutions work in FF without ...

howto upload a file via a single html form to more than just a single server

Sending a file/key to Amazon S3 via a html form and HTTP Post is quite easy and working. But I want to send a file to several S3-compatible sites via HTTP POST and a single html form. How can I do this? As far as I know, HTTP POST can only be directed at a single target location. I want the file to be sent to the first S3-compati...

Detecting javascript in HTML

Hi, I have two applications where users can submit HTML pages. I would like to make sure that no scripts are included in the HTML. Normally you would escape content to get rid of scripts, but as this is HTML I can't do that. Anyone with good suggestions on how to do that? The applications are written in both C# and Java ...