html

Radio Buttons with different Names?

Does anyone have a no JavaScript way to make HTML radio buttons belonging to the same "group" have different "name" attributes? While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal. Addendum It's not a requirement as much as a preference; there's a kind of c...

Checkbox 'off' value

Does anyone have a no JavaScript way to make HTML checkbox still submit a value? As in if you check it the form submission will include a value A but if it is uncheck it still contains a value B? While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal. ...

How to populate html combo box with mysql data

Please help, I'm having trouble loading mysql data on the combo box. The data that I'm loading is 1 column from a table. Here is my current code, and it crashed firefox for some reason: <td colspan=”2″>Religion</TD> <td> <select name="REL" onClick="submitCboSemester();"> <?php $query_disp="SELECT * FROM Religion ORDER BY RID"; $result_d...

HTML Doctype Setting / IE Quirks Mode

I'm working within the parameters of an un-reachable developer, whom has created an html generation system for our products.. Whenever a new page is generated he places: <!-- updated page at 05/MAY/2010 02:58.58 --> <!-- You must use the template manager to modify the formatting of this page. --> resulting in my code looking like: <...

How to achieve sliding pages to left and right in HTML?

How to achieve sliding pages to left and right in HTML (see digerati )? ...

IE 7 CSS problem with detecting mouse over on div

I have a div inside an li as part of a top navigation for a website. I'm having trouble with IE 7 having "holes" in the box such that the drop down disappears when the user is still on the drop down. I started with a pure CSS solution (li:hover) and that works awesome in all browsers except IE 7. So I've now added a jQuery/javascript...

Any way to fix the position of image

I have an image on the left hand side and text on right side. Like two column layout. I want that when i scroll the text then the image should stay at center of page. I tried using position:fixed But then the problem, sometimes when i resize the IE window to small size then the image stay at same position and it comes out of the ma...

php smarty is there a way to log who logs in to the site?

I guess if it is possible, that it will be some crazy convoluted way, but my client has asked me to try to create a log file of people who log in to the site. Is there a way to do this? I don't know php/smarty so well, I'm more of a layout person. Thanks. ...

Using non W3C valid attributes on HTML elements

Hi, What is your opinion about using non valid attributes on html elements for easier jQuery selectors etc ? Eg. <div name="myDiv"></div> According to Visual Studio the name attribute is not valid for a div element. ...

JSF/HTML - Add a Java applet to web page programmatically.

Theres a web page I'm making which content is very dynamic and so I'm building it from inside the backing bean. I would like to add a Java applet to the web page but I could not find the JSF component type to correspond to the <applet> tag. So My questions are - What is the JSF component type for an applet? How did you find it? (For...

undefined offset error in php

I don't know why but the code below is working when I have a different query: $result = mysql_query("SELECT * FROM student WHERE IDNO='".$_GET['id']."'") ?> <?php while ( $row = mysql_fetch_array($result) ) { ?> <?php list($year,$month,$day)=explode("-", $row['BIRTHDAY']); ?> <tr> <td width="30" height="35"><font si...

xhtmlrenderer xhtml to pdf font problem

Hi all, I'm using org.xhtmlrenderer.pdf.ITextRenderer to convert my (x)html page to pdf using Java. I've got most of it working, except the font part. I'm using verdana in my page and the pdf is rendered using default font. I have added the verdana.ttf to my jar and use the following code: DocumentBuilder builder = DocumentBuilderFa...

Password security; Is this safe?

I asked a question yesterday about password safety... I am new at security... I am using a mysql db, and need to store users passwords there. I have been told in answers that hashing and THEN saving the HASHED value of the password is the correct way of doing this. So basically I want to verify with you guys this is correct now. It i...

How to count li which does not have ul ?

Hi I want to count LI which does not have the UL , for the first level only, but when I count this it shows size 4 instead of 2, its count the inner LI also. <div class="navigation-container"> <ul class="first-level"> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a> <ul> <li><a href="#">Link2...

HTML, <table> background

hello, I've got one problem... I created table(with one row and one column) for my site and then I put background for table using CSS where I defined image, after that I try to create in the first table another table with 3 rows, Dreamweaver doesn't allow me to do it, it puts new table after first, how can I solve this problem, thanks i...

If the forms are nested ,i am not able to submit it in ie6

If the forms are nested ,i'm not able to submit it in ie6 <html> <body> <form id="mainform" action="form_action.asp"> <form id="subform" action="form_action1.asp"> <input type="submit" name="FirstName12" value="Mickey" /><br /> </form> First name: <input type="text" name="FirstName" value="Mickey" /> <br/> Last name...

What is the best way to convert a doctrine nested set to an li-structure?

Hi, I'm using Doctrine NestedSet behavior. I'd like to render the tree using php to <ul>'s and <li>'s Here's an example of what the output might be: <ul> <li>Node 1</li> <li>Node 2 <ul> <li>Child 1 of Node 2</li> <li>Child 2 of Node 2 <ul> <li>Another Child</li> ...

View images via Lightbox (or similiar) from a hyperlink

Hi I would like to view a gallery of images via Lightbox (or something similiar). The only problem is I need to display the image set in the viewer from a hyperlink rather than displaying thumbnails of the image set. Does anyone know if this is possible; if so could you point me in the right direction. EDIT: I've edited this, to hope...

Storing arbitrary data in HTML

What is the best way to embed data in html elements for later use? As an example, let's say we have jQuery returning some JSON from the server, and we want to dump that datat out to the user as paragraphs. However, we want to be able to attach meta-data to these elements, so we can events for these later. The way I tend to handle this...

AJAX vs client server applications?

What advantage does AJAX have over standard client server applications that use HTML and HTTP? Thanks. ...