html

How does the Traditional "HTML is only for content" line of thought handle dynamic formatting?

For so long, I've read and understood the following truths concerning web development: HTML is for content CSS is for presentation JavaScript is for behavior. This is normally all fine and good, and I find that when I strictly follow these guidelines and use external .css and .js files, it makes my entire site much much more manageab...

IE Input Select Box

I'm looking for the easiest solution to fixing a problem I have in Internet Explorer (6,7 & 8), be it CSS or using jQuery. I have a SELECT Input with a defined width (because of where it sits in the layout). Because of the defined width select is cut off from showing their full values, unlike in Firefox & Safari where they are automatica...

div slide using javascript and html

hi everyone how can i move the div from right to left. same as cycle rotation. i having one html page in that 2 buttons called forward and backward . when the user click forward button it div show move to next div1. same as backward button should move to previous button. Thanks and Regards Ravi Kumar ...

Vertical align block level element inside a block level element

I need to canter align images (variable width and height) inside block level elements of fixed width and height. The css markup looks something like this: <div style="float: left; width: 100px; height: 100px;"><img src="yada" width="50" height="60"></div> <div style="float: left; width: 100px; height: 100px;"><img src="yada" width="60" ...

Where does <_o3a_p> come from on a webpage?

Hello people, i got a question from a webdeveloper in my company who got it from a client: when inserting (russian) text into a webpage <_o3a_p> tags appear on the website. I have (ofcourse) tried to google it but i only stumble upon websites that have these tags in them as well. No real good context for the how and why in other words....

Firefox not able to find iframe

This is the iframe I'm trying to access: <div class="mceBody" id="additionalTxt_b"> <iframe frameborder="0" id="additionalTxt_f" src='javascript:""' class="punymce"/> </div> Using this line: frames['additionalTxt_f'].document.getElementsByTagName("body")[0].innerHTML For some reason I'm getting "frames.additionalTxt_f is ...

Auto adjust height

Hi guys. Im trying to get a div to auto adjust to the height of the div to its right. You can see an example here www.littledesignplanet.co.uk/lloyd The white space div on the left i set the height manually. Is there a way to get this to automatically stick to the same size as the main content div? As each page is going to be a differ...

Append get parameter on static paths to force content expiration in build process

I've noticed a lot of sites, including stack overflow append ?v=36556 to their static file path to force the browser to re fetch the new version. On the stack overflow podcast it was mentioned they do this as part of the build process. I'm just wondering if there is any existing msbuild tasks or utilities for doing this? Or should I j...

Prefill an email with HTML content

I've been working on a project with a feature so that when I click a button, Outlook will open and the corresponding value stored in a variable will be in the in the body of the mail. I've tried the following code: <html> <head> <title>Email This Code Snippet</title> <script language="javascript"> function TriggerOutlook() ...

post to remote url from stand-alone html file

I am trying to post to a remote url from a local html file on my desktop, but the server doesn't seem o be receiving any post data? ...

PHP : Creating image from html table

Can I get some sample code in PHP for converting an html table to image form(.gif,.jpg or any format)? I am using XAMPP on Windows. Yes, the table is coming from the database. ...

show and hide divs with radio buttons inside the hidden div

Basically I have three images (call them img1, img2, img3) with three menus associated with each. (menu1, menu2, menu3) When a user clicks img1, menu1 should pop up with three radio button selections (rad1, rad2, rad3). Say the user clicks rad2, menu1 should then hide and img2 should appear (but rad2 should still be selected). When img...

Calling C# From Design Page

Hi is it possible to do the following? <a href="/Reports/report.aspx?StartDate=<% Request.Params.Get("StartDate"); %>&EndDate=<% Request.Params.Get("EndDate"); %>">View analysis</a> Thank you. ...

How do I create two frames with no space between them?

I'd like to have two frames with no space between them. Here's my test case: <html> <frameset framespacing="0" rows="50%, 50%"> <frame frameborder="0" src="red.html" scrolling="no" noresize="1" /> <frame frameborder="0" src="red.html" /> </frameset> </html> red.html is just: <html><body bgcolor...

Can HTML be embedded inside PHP "if" statement?

I would like to embed HTML inside a PHP if statement, if it's even possible, because I'm thinking the HTML would appear before the PHP if statement is executed. I'm trying to access a table in a database. I created a pulldown menu in HTML that lists all the tables in the database and once I select the table from the pulldown, I hit the...

How not to upload file on submit

I have a form in asp.net with a FileUpload control inside. Next to this control I have "Upload" button which is used to upload a file to a list of files. The problem is that I also have "Submi"t button used for submiting whole form. Now when somebody selects a file through browse button and presses on "Submit" not "Upload" file is being...

Why doesn't my border go all the way to the top of the screen?

I've got a website which has a layout sorta like this: <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> <body style="margin:0px"> <div style="border-left: 5px solid black;"> <div><!-- x --> <div> <div> <div style="margin-top: 100px"> fish </div> ...

What is the best way to allow a user to search through a large list on a web page?

I'm writing an ASP.NET MVC application and I have a form where a user can enter one or more part numbers that they used to fix a problem. Most of the time they know the part number and can just type it in. Occasionally, however, they need some extra help. The part number table has over 50,000 items in it which is way too big for a d...

Fluid Elements and Overflow Question

So here's a stump I've hit. I'm designing a... Thing. It sizes itself to the browser window, with some controls at the top and a rather large list near the bottom. Anyways, it's basically a table cell that sizes with the browser window, whos size is the document size - 130px in height, and document size - 50px in width. What I want it t...

Do .NET GUI components support HTML (like Java swing does)?

HTML can be used in Java swing GUI components, like JTextBox, JButton, ... etc. Is there an equivalent to that in .NET (C#) WinForms? or at least some simple way of making a single word bold inside a textbox without using another GUI component? ...