html

HTML - How to style a input type=submit so no second line created?

Hi, I am tring to style a input submit button like an anchor. But it is putting a second line underneath the anchor. How do I style just one line? .usernameAnchor { background-color:white; color: #034af3; text-decoration: underline; border: 0px none; display:inline; height:25px; } Malcolm EDIT: This problem ...

Calculate # of Rowspans and Colspans based on keys in a Multi-Array

Ok, I have these 2 types of layouts, basically, it can be any layout really. I have decided to use tables for this, since using div tags cause undesirable results in some possible layout types. Here are 2 pics that describe the returned results of row and column: This would return the $layout array like so: $layout[0][0] $layout[0][...

Load html document in javascript from text

Hello everyone! Is it possible to load an html document into a DOM javascript object so that you can read the elements in the document? For example, if I have a file on the server Test.html. Can the page Hello.html call javascript code to load Test.html into a DOM object? Please let me know. Thanks ...

Aligning a formtable with button

In the below code how to align the the print button next to the table and not below or above it. <div id="content"> <form action="Empform" method="post" name="emp"> <table> <tr><th>Name</t></tr> <tr><td></td></tr> </table> <br> <br> <label>Comments: </label> ...

indexhibit backgrounded plugin: change background image to foreground

I'm using the Backgrounded exhibit style on an indexhibit site. I understand that when an image thumbnail is clicked, that image becomes the background image. What I'd like to do is change it so it didn't make the clicked image the background image, but instead created an <img src ...> image, so I can maintain the background image I'm ...

Static PNG image with transparency in IE8

Similar to this question http://stackoverflow.com/questions/1251416/png-transparency-problems-in-ie8 But the answer here was to remove opacity - but I can't remove opacity. How can it be made to work with opacity? ...

html-encode output && incorrect string error

my data includes arabic characters which looks like garbage in mysql but displays correctly when run on browser. my questions: how do i html-encode the output? if i add this to all my files: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> i get this error: Error: Incorrect string value: '\xE4\xEE\xC3\xD8\xEF\xE6...'...

Xhtml instead of Php?

I want to develop a site that will allow be to publish information to users, and give them and opportunity to subscribe to a mailing list so they can be updated each time I make a change to the site. *Add new information, etc. I also would like for the users to be able to add comments about reviews posted, and give me suggestions...Thin...

Adding value to an Input field on click

I have this structure on form, <input type="test" value="" id="username" /> <span class="input-value">John Smith</span> <a href="#" class="fill-input">Fill Input</a> when user click on the Fill Input , the data from span which has class input-value will be added to value, after clicking a tag the code should be look like this, <...

Display tabs like FireFox's on my website.

I want to implement with jQuery a tabbed interface for my website (like the firefox ones). They should also be able to be moved like the ones FireFox has. If anyone knows of an already written library, please give me a link. ...

IE problem with javascript

i have the following simple script <input class="input" type="text" name="password" style="color: #797272;" value= "<?php if ($_POST[password] != '') {echo '';} else {echo 'Ծածկաբառ';}?>" onclick="if (this.value === this.defaultValue) { this.value=''; this.style.color='b...

[jQuery 1.4] move one div over another

I have two div elements that are twins (i.e. their dimensions and contents are identical). I want to move of those div-s over another, so that their corners are at exactly the same coordinates. What I try to do is: var offset = $('div#placeholder').offset(); $('div#overlay').css('position', 'absolute').css('left', offset.left + 'px').cs...

Textarea maxlength check

Textarea validation, How to limit the characters in a textarea for not exceeding more than 50 characters. <textarea rows="5" cols="15"></textarea> Thanks..... ...

javascript: how to make input selected

i have to use the following function, to change the input's type <input class="input" id="pas" type="text" name="password" style="color: #797272;" value= "<?php if ($_POST[password] != '') {echo '';} else {echo 'Ծածկաբառ';}?>" ...

make a div block share a line?

-edit- example: http://jsfiddle.net/AXCap/ i want the three links to be on the same line but the 3rd must be a block to take up remaining space in the li so that it is clickable. I tried a number of things and the example linked above is my closest result. How do i make the 3rd link share the same line and a block so the resut of the li...

Lock HTML select element, allow value to be sent on submit

I have a select box (for a customer field) on a complex order form, when the user starts to add lines to the order they should not be allowed to change the customer select box (unless all lines are deleted). My immediate thought was that I could use the disabled attribute, but when the box is disabled the selected value is no longer pas...

Jquery class changing works, but doesn't effect another function like it should

So I have content boxes that close and expand when you click an arrow. The content box has two classes for telling whether it is open or closed (.box_open, .box_closed). A hover function is assigned to box_open so when it is open and you hover over the header, the arrow appears. However, I don't want this to happen when the box is closed...

focus doesn't work in IE

i have the following function function change() { var input=document.getElementById('pas'); var input2= input.cloneNode(false); input2.type='password'; input.parentNode.replaceChild(input2,input); input2.focus(); } but focus() ...

How can I find out why a website looks different when I upload it to IIS ?

Good day... I've been working on a website project, that requires to be on a Microsoft IIS Web Server. It is HTML, pure HTML, with really nice CSS, web-standards, etc. I open this website using in my computer, using Firefox, IE 8.0, Safari, Google Chrome and it looks fine everywhere. But as I upload it to the Microsoft IIS server, it c...

Are there any viable alternatives to wkhtmltopdf on windows, for html to pdf conversion?

I've found wkhtmltopdf, which looks good on the surface and works fine in very small cases, but it doesn't provide any real css control over the rendering. By that I mean it doesn't use the print media type and page breaks are not respected, as well, on windows you can't control the names of some header/footer variables, or generate a T...