html

Amazingly advanced layout in CSS

Hi, i have following HTML structure: <div class="container"> <div class="sidebar"></div> <div class="content"></div> <div class="subscript"></div> </div> I need following layout: ┌─────────┬───────────────────────┐ │ │ │ │ sidebar │ content │ │ │ │ │ ...

PHP string manipulation: Append html class to a string

Hi I have this string: $str = '<div class="defaultClass">...</div>'; how do I append 'myClass' next to 'defaultClass' ? ...

html textbox history

Hi everyone, I have several textboxes in my web application.I want them to remember history when user double click on it like autocomplete operation,but they never remember.is these textboxes remembers if they are in only form field?I couldn't do that. Thanks in advance... ...

jQuery KeyPress limiting my input on TextArea

I have this code: $('#typer').keypress(function(e){ var code = (e.keyCode ? e.keyCode : e.which); if (code == '13') { $.sound.play("cr.wav",{timeout:1000}); } else if (code == '8') { $.sound.play("del.wav",{timeout:1000}); } else if (code == '27') { ...

Dojo // dijit.form.FilteringSelect // How to add a class to a <select> field in Dojo's filter Select

Hi, I am trying to add a class to some of my dojo.filterselect in order to color them in Blue. Does anyone know how to do that? thanks, Alon ...

render network dumps to html (using wireshark sdk)

Hi all, I'm looking for a program to render network dumps to html. Ideally I was looking for something written with the wireshark sdk (regardless of the language at this point) as wireshark is for me the reference in packet capture analysis. Thanks. ...

form is not submitted on enter key when there is no submit button inside

is there some fix for this <form> <input type="text" ... </form> hitting the enter key inside the textfield when there is no submit button inside doesn't submit the form, is there some fix for this ? ...

CSS selectors: (menu ul li) or (menu li)

which is better for use .menu{ float:left; width:600px; height:25px; background:url(bg.png) repeat-x; } .menu ul{ float:left; } .menu ul li{ float:left; width:150px; height:25px; background:#F00; } or .menu{ float:left; width:600px; height:25px; background:url(bg.png) repeat-x; ...

cgm file in object tag

Hi, I am trying to display cgm file in my web application. I have the "activeCGM browser" ActiveX which enables to watch cgm files in IE. I added in my html the object tag as follows: <object data="myFile.cgm" type="image/cgm?Version=4;ProfileId=WebCGM" width="100%" height="100%" style="border:solid 1px red;"></object> The file is no...

how to close combobox when onmouseout?

hi, How to close combobox when onmouseout? <select onmouseout=""> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> ...

setting a url as visited

hello, I have a <a href="my_redirect_page.php?link=mylink">my_text</a> link on my page, and the following line in my_redirect_page.php: header("Location: ".$mylink); but after the redirection, if I click on back in my browser, the "my_text" for the link does not appear as visited (in purple, instead of blue). How do I work arou...

Negative margin, z-index and click blocking

I'm using negative margins to layout two columns: <div id="left-column"><input type="checkbox" /></div> <div id="right-column"> <div id="right-column-inner"></div> </div> Css: #left-column { width: 200px; float: left;} #right-column { margin-left: -200px; width: 100%; float: left;} #right-column-inner { margin-left: 200px; float:...

nested table with jquery

hello i have a table like following code , i want at first the child tables not seen but when user click on the row the child table for other rows closed and child table under this row open how i could make this with jquery? <table class="mainTable"> <thead> <tr class="header"> <th style="width:33%">col1</th> ...

JQuery Input Focus Manipulation

Had a idea and now trying to make it happen. Idea: Have a HTML page with several inputs with CSS to make it look liked lined paper. Than at the end of each line move the focus from one input to the next so the user can continue input on a page mimicking lined paper. Problem: Have no way of detecting or capturing an event when the input...

Good HTML and CSS to use with <input type="radio">?

What's the best way to use <input type="radio"> in HTML? I'm looking for HTML that's semantically good, whose formatting is configurable via CSS. I want to be able to style/render it to look something like: Car: (o) Yes (X) No (o) Maybe Train: (o) Yes (o) No (X) Maybe Address: [An input text...

Tool to monitor website(html) changes/to get snapshot

Hi all, Could you recommend me some tool (not online one) to monitor html changes in website or to get complete snapshot of a website? My task is to migrate current website to the next version of CMS. Migration requires code changes as well, because of new API. The idea is to make snapshot of the website before migration and after. Af...

Pass arrays from a jsp to a function in a js file via the onload attribute in the body tag

Hi all, I have a jsp and a js files. I would like to pass arrays from the jsp to a function in the js file via the onload attribute in the body tag. How can I do that? For example: <head> <script language="javascript" type="text/javascript"> var indexNames = ['chIndex', 'recordIndex']; var indexLocation = [0, 1]; <...

IE6 buggy position:fixed rendering with absolute positioning

I have a page with a fixed background image that is supposed to stretch to fill the entire viewport. To achieve this I have body height set to 100% and overflow to auto. Unfortunately this triggers that hoary old IE6 positioning bug where anything set to position:absolute behaves as though it is fixed. This is part of a CMS template so...

Myriad pro font does not appear on Safari

Hi all I have an asp.net page with an asp.net menu. I defined the font in the menu items to be Myriad Pro. In IE and Firefox it appears normally, but in Safari the menu items appear blank. when I changed the font type to another font it worked fine. so is there a way to make the Myriad Pro font appear on Safari. thanks ...

Keep added class with JQuery through pages refresh..

Hello everyone, I have the following JQuery Code concerning my tabs : $("#onglet>ul>li").click(function(){ $("#onglet ul li").removeClass('Selectionne').addClass("OngletPrincipal"); $(this).removeClass().addClass('Selectionne'); $(this).unbind('mouseenter mouseleave'); it works, but as soon as I click on a tab which le...