html

What is a good non-WYSIWYG editor for HTML?

I don't like WYIWYG editors, I want to be responsible for the selection and placement of each tag and attribute! Is there a good editor out there that allows you complete control over the HTML but offers useful features such as: syntax highlighting (of course) suggestions of tags, attributes etc. e.g. as dropdown lists validation and ...

How do I include a php variable within the value element of an html input tag?

I am trying to include a value from a database table within the value element of an input field. This is what I have, but it is not working ?><input type="text" size="10" value="<?=date("Y-m-d", strtotime($rowupd['upcoming_event_featured_date']))?>" name="upcoming_event_featured_date" id="keys"/><?php I have done this before, but I...

What's the best way to include html through an ajax echo command?

Hi, I am currently building a small website where the content of the main div is being filled through an Ajax call. I basically have a php script that returns the content like this: (simplified php script...) if(isset($_POST["id_tuto"])){ PrintHtml($_POST["id_tuto"]); } function PrintHtml($id) { switch($id) { case [...]: ...

POST Login with ActionScript 2.0

I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, using ActionScript 2.0 -- have the user enter their UserID and...

How can I manipulate the DOM from a string of HTML in C#?

For the moment the best way that I have found to be able to manipulate DOM from a string that contain HTML is: WebBrowser webControl = new WebBrowser(); webControl.DocumentText = html; HtmlDocument doc = webControl.Document; There are two problems: Requires the WebBrowser object! This can't be used with multiple threads; I need som...

CSS Menu (Can't get the tabs to full height)

<style type="text/css"> html, body { background: #fff; margin: 0; padding: 0; } #nav { font-family: Verdana, sans-serif; height: 29px; font-size: 12px; padding: 0 0 0 10px; /* this is used for something else */ background-color: #456; } #nav ul, #nav ul li { list-style: none; margin: 0; paddi...

Editing escaped code (for display)

If I escape some code because I want it to display as the actual code in html (eg for an example code snippet), save it to the database and then pull it back to the editor (an html page), it is displayed as html, as opposed to the escaped text. My problem arises when I include a textarea tag in the text because it will prematurely close...

Trying to Add Radio Inputs (+Labels) To An Example Form

<style type="text/css"> body{ font-family:Helvetica, sans-serif; font-size:12px; } p, h1, form, button{border:0; margin:0; padding:0;} .spacer{clear:both; height:1px;} /* ----------- My Form ----------- */ .myform{ margin:0 auto; width:400px; padding:14px; } /* ----------- basic ----------- */ #basic{ bo...

What is different with window and div widths between firefox and IE

I have a web page that uses a scrolling div to display table information. When the window is resized (and also on page load), the display is centered and the div's scrollbar positioned to the right of the page by setting its width. For some reason, the behaviour is different under firefox than IE. IE positions/sizes the div as expected, ...

How can I create a menu in HTML without using Javascript?

Since many years a GUI-standard are the menu-bars of applications with menus popping up, if you click or hover an entry in the menu-bar. Some websites implement this feature too, but they are using Javascript, as far as I can see. For different reasons Javascript can be a problem, so the question: Is this possible to implement without J...

What's the best way to open new browser window?

I know that most links should be left up to the end-user to decide how to open, but we can't deny that there are times you almost 'have to' force into a new window (for example to maintain data in a form on the current page). What I'd like to know is what the consensus is on the 'best' way to open a link in a new browser window. I know...

How to pass parameter to servlet

How do I pass a parameter from a page's useBean in JSP to a servlet in Java? I have some data in a form that gets passed no problem with a submit button, but no way to send anything else. Please help? Here is my code: <input name = "deleteGameButton" type = "submit" value = "Delete" onclick = "submitToServlet('DeleteGameServlet');"> ...

Web site as image/clip art libray with reference?

As a software developer, I have done many web page applications and been doing blog for my programming experiences. I would like to use pictures in many cases. Pictures worth thousand words and they are universal language! You could create your own clip art images or download graphics(actually many are open clip art/image libraries avai...

Can HTML embed<> stop mp3s from automatically downloading?

Hi I have lots of mp3s on my site that I want my friends to be able to play only- but I don't want them all downloading as soon as the page opens and would prefer them to only start downloading into the buffer if someone wants to play it- is this possible with the embed tag? I can't seem to find anything on Google so I am wondering if i...

Using itext to convert HTML to PDF

Does anyone know if it is possible to convert a HTML page (url) to a PDF using itext? If the answer is 'no' than that is OK as well since I will stop wasting my time trying to work it out and just spend some money on one of a number of components which I know can :) Thanks in advance for your responses! ...

How do I stretch a background image to cover the entire HTML element?

I'm trying to get a background image of a HTML element (body, div, etc.) to stretch its entire width and height. Not having much luck. Is it even possible or do I have to do it some other way besides it being a background image? My current css is: body { background-position: left top; background-image: url(_images/home.jpg); ...

Why split the <script> tag when writing it with document.write()?

Why do some sites (or advertisers that give clients javascript code) employ a technique of splitting the <script> and/or </script> tags up within document.write() calls? I noticed that Amazon does this as well, for example: <script type='text/javascript'> if (typeof window['jQuery'] == 'undefined') document.write('<scr'+'ipt type="te...

Why does a h1 tag display different in a div, when a doctype is set?

I have a div with a <h1> tag in a div, with no margins. If I define any doctype, a white space appears above the div. If I remove the <h1> tags, or remove the doctype definition, there is no space (as there should be. Why? Example HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <...

Printing Scrolled Divs

I have a web page that displays a long line graph inside a div with overflow-x: scroll. This works well as a web page allowing the use to scroll back and forward through the graph. However, when printing the page the scroll position is reset to zero. Is there a way to overcome this? ...

Java HTML Parsing

Hello everyone. I'm working on an app which scrapes data from a website and I was wondering how I should go about getting the data. Specifically I need data contained in a number of div tags which use a specific CSS class - Currently (for testing purposes) I'm just checking for "div class = "classname"" in each line of HTML - This wor...