html

Displaying user input on my page

In our application, we allow user's to write their Bio using a WYSIWYG editor, but it often contains bad HTML that breaks our page. Is it a good idea to show the user bio inside an iframe so it doesn't affect the rest of the page? Or any better options? Thanks ...

CSS: Setting a background gradient to width 100% fine unless page scrolls.

Here's two screen shots, showing the effect with a small viewport that has to be scrolled. HTML looks like this: (ignoring head and html tags) <body> <div id="grad1"></div> <div id="wrapper"> <header> <h1 class="logo"><a href="/">Dartrite</a></h1> </header> <nav> <ul> <li><a class="first" id="index" href="/index.php">Ho...

html form class

Is there any html form class(text box) that does not allow null values. The inputted data is to be stored in a mysql database. ...

How do I convert this HTML-table layout solution to floating-div solution?

I often need to list items with various-sized images on the left and text on the right, like this: For 17 years, I have solved this with HTML tables, like this: <html> <style> * { margin: 0; padding: 0 } body { padding: 20px; } #content { width: 600px; padding: 20px; margin-left: auto; ...

trying to validate user input in php

I'm trying to validate user input in php. This code will check if the values are null or not. If it is null, this will require the user to input the values that are null. When all the text boxes in the html form that came before this. This code will show the submit button, and that submit button will save the inputted data into the mysql...

Is there any free embeddable 3gp player?

I would like to have a flv, 3gp player ( embeddable ) for my site. Till now, I found http://flv-player.net/players/maxi/ , http://flowplayer.org/ these are free FLV players. But how can i play 3gp files on my site. Please suggest me any free embeddable 3gp player. Note: I am not expecting anything like QuickTime ...

html link in swf object

I have a swf file but I dont have the source. I need to add a link to the object swf but I dont know how. I need to do something like this: <a href='http://www.mypage.com'&gt;&lt;object ....> </a> is there a way to achieve this? Thanks in advance ...

Multiple Html <head> in the browser , causes by DreamWeaver bom

Hi, I am using DreamWeaver to code xHtml docs. in the program the code is valid but when I upload it in the inspect element I see double <head> tags and when I right-click to see the source file it seems o.k. Is it because I'm using dreamweaver? what can be wrong? the first error is : "Extra <html> encountered. Migrating attributes bac...

Parsing of badly formated HTML in PHP

In my code I convert some styled xls document to html using openoffice. I then parse the tables using xml_parser_create. The problem is that openoffice creates oldschool html with unclosed <BR> and <HR> tags, it doesn't create doctypes and don't quote attributes <TABLE WIDTH=4>. The php parsers I know off don't like this, and yield xml ...

jQuery show/hide multiple 'Other' input fields based on select drop down

I am using the follwoing jQuery to show/hide an 'Other' title field on page: $('label[for=customerTitleOther], #customerTitleOther').hide(); $('.jTitle').change(function() { if($(this).val() != 'Other') { $('label[for=customerTitleOther], .jOther').hide(); } else { $('label[for=customerTitleOther], .jOther'...

Is there a way for CSS to determine and adjust for image widths?

Thanks to Erik's help on my last question, I was able to get my icon-left, text-right floating div example working: http://tanguay.info/web/examples/tablelessItemLayout However, because the images are various width's, I had to cheat a bit by putting in-line styles in some of the tags. How can I change this code so that: there are...

How to sort divs according to their id using jQuery?

Hi, I have a set of divs with random ids: <div id="container"> <div id="2"></div> <div id="9"></div> <div id="7"></div> <div id="1"></div> <div id="4"></div> </div> Is there a fast way to sort them according to their id values using jQuery? Thank you. ...

j2me reading html differs between WTK and device

I have built a mobile application in J2ME and it reads data from a website. In WTK (wireless toolkit) everything works now, but when I test the samen app on my mobile (nokia) device, it behaves differently: It gives another type of html back: it doesn't show a <hr> tag, but a <hr/> tag. There is a possibility that the remote website ...

How to make a div expand to fit available vertical space?

I'm looking for a way to make the div that contains my main page content to expand to fit the space left after adding my header and footer. The HTML is laid out like so: <div id="wrapper"> <div id="header-wrapper"> <header> <div id="logo-bar"></div> </header> <nav></nav> </div> <div id="co...

What is maximium resolution of a html page?

I have few question in this regard When you create an internet page, does the program automatically create 75pdi? Could we create 300DPI page could this be able communicate on internet ? What is maximum DPI resolution you can get on a Web page? ...

How to convert entites of JSP request arguments for html form textarea?

I am new to JSP and generating a form with a text area. Is there a library to convert the text from/to an HTML's FORM TEXTAREA that will convert to/from entities for the URL to be properly formatted/parsed? For example: textarea (named ta): simple test with ampersand & in textarea url: http://.../myapp.jsp?ta=simple+test+with+ampe...

How do I swap triangle icons when doing expanding/collapsing divs with Javascript/CSS

I have a div that I want to toggle between displaying or not when a user clicks on a piece of text. I have a javascript function that toggles a div on or off. That works fine. What I don't know how to do is to have a triangle that points to the right or down depending on whether the div is open. My HTML looks like this: <a onclick="tog...

Display web page using libgtkhtml c c++

I want to display a very simple html page from the web, using libgtkhtml. Can you give an example please? Or some documentation/resources? I found nothing. (C preferred, but C++ also acceptable). Thanks in advance. ...

Redirect with a variable

I re-did my portfolio site recently, and I'm trying to make it so that when someone clicks a link to my and old project (ie /philosophy.php) that it takes the name of that file (philosophy) and then adds it to an id indicator # and loads to my new page with that ID selected so it automatically scrolls to that project. Click link > http...

how to solve slideshow css problem?

hello My Css #container{ display:block; } #container ul{ list-style:none; position:relative; margin:0px; padding:0px; display:block; } #container li{ list-style:none; margin:0px; padding:0px; position:absolute; top:0; left:0; } #container img{ margin:0px; padding:0px; } my HT...