html

Structure of web page. Huge gap. HTML or CSS issue?

Hi there, I am trying to build a web page and i have the following problem. I tried to upload a photo but I cannot because I don't have enough votes. I have a contacts page and my problem is that there is a huge gap between the contacts (little photos with people) and the grey layer in the bottom (please vote for me so that I can upload...

Python - How do I save a file delivered from html?

Hi I have a form which when submitted by a user redirects to a thank you page and the file chosen for download begins to download. How can I save this file using python? I can use python's urllib.urlopen to open the url to post to but the html returned is the thank you page, which I suspected it would be. Is there a solution that allow...

Is it vital to have an index page in your root eg index.html, index.php

I have and index.php page in my root that simple directs to what I would consider my homepage, like so: <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: /lake-district-cottages/" ); ?> is it best to just remove the index page and set my true index in my htaccess or is it required that I have a file called index? ...

How to allow using javascript in RichHtmlField control?

Is it possible to set up RichHtmlField control to allow javascript in HTML? I mean I need to insert some script into field content, but the code is removed from source after submit. ...

How to make a selection list to null in runtime?

I have a code that fetches a list from DB. Using that returned array i am creating a grid table and two combo boxes dynamically. Now, the code is working fine for first time. I can also able to add new entry to the database and show it in the grid. Now the problem is with the combo box. Whenever i add a new entry, the table gets updated...

how to add row dynamically in html using javascript

Hi experts, I have a task where I need to add a table row dynamically in HTML where each row has 2 textboxes and the last element is a hyperlink. However, when I add a row the last element hyperlink should be replace by an <input> tag. How this can be done? I I'm able to add a row but I'm unable to change the last element to <input> tag...

Markdown Styles not Showing

I am working on a application that takes user input in the form of Markdown and displays that input on a page. The markdown gets converted to HTML just fine but for some reason the bold and italics don't show on the display page. The html tags are there but they aren't rendering properly. I am thinking its the styles that override the s...

getting data using javascript

how can I get this exchange rates from a web service using htm and javascript? Dictionary Türkiye = Turkey | Dünya = World | Son güncellenme = Last updating date ...

Setting a select value

Hey all, Is there any way to set the value of a select and have it act as if it was changed by the user? I used $(document).ready(function(){ $('#department').change(function(){ $('#academicbody').hide(); var selected = $("#department :selected").val(); $('#progrmmehome').load('/email/programmelist/'+selecte...

Forward/Reverse link possible with emacs/HTML mode?

With emacs, it's pretty useful to edit HTML file. And I use 'Safari' (I'm a Mac user), to check if the HTML file is rendered correctly. I always miss the AucTeX's forward/reverse link with pdf/tex files. I can shift-click on emacs/LaTeX file to corresponding pdf file, and vice versa. For example, when I shift-click on string 'abc' on te...

Can't run php code from inside html file

Hi, I am having a problem running my php code from inside an html file. I have tried the .htaccess method and the handler method. I'm using a webserver with cpanel(version 11), apache(2.2.15) and php(5.2.13).I have also tried the files on xampp and they work perfect, but when I upload them to the webserver the php code from inside the ht...

CSS - Content appearing outside a div

Hello all, I'm having some trouble with my web page. A picture probably descibes it best so here it is: The text at the bottom is supposed to be inside the white area. I want the white div to change in height depending on the content. I have a div that centers the white area in the middle: #mainContainer { margin-left: auto; mar...

show flash using original canvas size dimensions

I have a generalized media player web app that I wish to be able to use flash in. The client uploads the flash to a particular directory, and a webpage is produced automatically that houses that flash file. The output of this process currently looks something like this: <OBJECT id="flashContent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-4...

Efficiently loading hidden/layered images in web page

I have a layered div component which displays a successive series of large kb images by slide-animating away the top image to reveal the next image below. I'm trying to understand how best to approach this. Approach 1: layer a number of divs on top of each other, each with an image assigned as background, and slide away the divs as ne...

display HTML page after loading complete

Is there a way to force the browser to display a page only after all of the page's contents are completely loaded (such as images, scripts, css, etc)? ...

Display .svg image in cfm problem

There is an svg file I want put into my cfm page. Safari can render it correctly, however, other browsers: In Chrome and Opera it will only show up as xml source; In IE it just left as blank; In FF it display as a plugin icon, if I click it, it will search for plugin, eventually will tell me there is no plugin available. I had Adobe SVG ...

Stategies for printing multiple page HTML tables and dealing with page breaks.

I have seen this similar question. (I highlighted the important bits to make skim-reading the question faster) To add to it though, I would like to format an HTML table (with a lot of rows) in such a way that when printed, it would repeat the table headers after each page break. Another words, for the table headers to be visible at th...

HTMLEditorKit replacement

I have problem with HTMLEditorKit failing at parsing some webpages (in HTML3!! with NumberFormatException) or being really slow on other pages (takes up to one minute to render). Is there any good HTMLEditorKit replacement? Editor or viewer, free or commercial, for Windows and Mac OS X. Thanks ...

How to sort LI's based on their ID

Trying a bunch of solutions with no workable results. I have code that takes the value of the span and creates an ID for the LI. I then want to sort these LI's DESCENDING based on the LI's ID. Help? Thanks! <!DOCTYPE html> <html> <head> </head> <body> <ul id="dumb"> <li>cello<span>2987</span></li> <li>zello<span>1723</span></li>...

How to convert a json object into HTML format in java?

How to convert a json object into HTML in java? ...