html

How can I get reason of page unloading in javascript's onunload event, in IE?

There may be different reasons of page unloading: 1 User closes the current window. 2 User navigates to another location. 3 Clicks the Back, Forward, Refresh, or Home button. 4 User submits a form, and then browser starts to unload current page and load page with results of form submitting. (Assuming that the current window is the fo...

html lists with specific characters?

Is there a way to style a unordered list using the greater than symbol or any symbol I choose? > one > two > three ♦ one ♦ two ♦ three without the use of url()? Thanks ...

How to open the download window when a dynamically created link is clicked in asp.net

i have stored the txtfile in the database.i need to show the txtfile when i clik the link. and this link has to be created dynamically. my code below: aspx code: <div id="divlink" visible="false" runat="server"> </div> aspx.cs protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPo...

Sliding panel in the middle of the page. Z-index given not working

Hi all, I am implementing sliding panel element but problem is when i slide out other div element is floating down. I guess and tried to give z-index to element which i am sliding but it doesn't seems to work. Let me put code for both div. <div class="vrcontrol"> <div class="slide-out-div"> <a class="handle" href="http:...

Relative to absolute paths in HTML (asp.net)

Hello all, I need to create a newsletters by URL. I to do next: Create a WebClient; Use WebClient's method DownloadData to get a source of page in byte array; Get string from source-html byte array and set it to the newsletter content. But I have some troubles with paths. All elements' sources were relative (/img/welcome.png) but I...

MySQL table export to HTML

Hi all, I've got a little problem with exporting MySQL data to html. The problem is that in one field i have values like this: <a href="http://google.com"&gt;Google&lt;/a&gt; and when i export the table in html format the generated html table for this fields contains: &lt;a href=&quot;http://google.com&amp;quot;&amp;gt;Google&amp;lt;/a&...

saving value selected in a list when submit button is clicked

Hi everyone, In my JSP I have a dropdownlist and a submit button when clicking the submit button I lose the value already selected in my list. I am using the jstl because i need to construct other table corresponding the value selected in my list.For that I must call a submit button but the problem; it reset the value selected I want t...

Print perfect web word processor ?

Hi, I'm looking for a web based word processor. I'd like something that prints exactly what the user sees on the screen. It's for an internal app so i don't need something available only throught the Internet. Thanks. ...

jQuery: list appended not displaying bullets

I have the following html: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; </head> <body> <span>not so important</span> <span title="some specific text"><img src="/img/some.gif" /></span> <span title="more specific text">important 1</span> <span title="more specific text">...

Help with 100% height and new toolbar

I have a flash object which im currently displaying with 100% width & height (Fullscreen) However I'm adding a HTML toolbar across the top of the page which is outside of the Flash source. The toolbar is 60px in height, how can I display the toolbar and the flash object filling the remainder of the screen space? ...

how to use two forms and sumit once

hey guys is it possible to have two forms with two submit buttons but when i click on the button then it saves both forms input fields im concerning to solve this in php /mysql i tried my own way : if ((isset($_POST["form-1"])) && (isset($_POST["form-2"])) { //SQL Insertion } thanks in advance ...

How to include flash within the html on hover

Hi, I was wondering if I could include some flash animation within the html on hover, thanks ...

Cross browser's probelm to highlight option item as bold in form element "select".

Hello All , I am facing one weird cross browsers problem i.e. I want to highlight some of the option items as bold by using CSS class in my form element "select". This all is working fine in firefox only but not in other browsers like safari , chrome and IE .Given below is the code. <html> <head> <title>MAke Heading Bold</title> ...

Resize div on browser resize

I have a <div> which I want to display full screen, but I also need to incorporate a 60px high <div> and a 10px high <div> at the top of the document. The size of the main div will need to re-size as the browser window is re-sized to keep it full screen. <div id="div1" style="height: 60px"> </div> <div id="div2" style="height: 10px">...

HTML - Correct way of coding a checkbox with a Label.

I've been using formtastic in order to generate HTML forms on rails applications. My question, however, is really HTML-related. Today I found a strange behaviour on the way formtastic generates checkboxes (fields of type :boolean on formtastic lingo). The rest of the fields (non-checkboxes) are generated this way: <li> <label for="m...

HTML Select DropDown list with multiple colours

Hi, Is it possible to have different colours for different items in the dropdown list? Eg: Option 1 = green Option 2 = blue etc ...

External html, for headers/navs?

Hey all, looking to see if theres a way to easily include external html file inside the body to repeat on every page, for instance: a navigator or something. Basically if i have to add a menu item or something, i have to go and paste all the code into each page. Or even a way to section parts off in Dreamweaver to update based on a file...

Resize TD. (Noob question)

I am currently re-building a table display page, just wanted to know if it's possible to resize a TD without inline styles, like add a class with width and height? Example: <td class="Td_class">Blah</td> .Td_class { height:30px; width:80px; } Probably can, just wanted to make sure for when I make this table. Thanks. ...

How to create small SPACES in HTML?

There is em dash and en dash. Is there an "en" equivalent to &nbsp; ? Is there an en equivalent to pure Ascii 32? I want a better way to write this: 123<span class="spanen">&nbsp;</span>456<span class="spanen">&nbsp;</span>789 or this: 123<span class="spanen"> </span>456<span class="spanen"> </span>789 ...

Scriptaculous Shaking Effect Problem

The scriptaculous shaking effect somehow produce some bugs for Webkit browsers, including Chrome and Safari. When shaking, the element will shift to the top left of the screen covering everything. An example code is given as below, are there any ways of solving this? <html> <head> <script type='text/javascript' src='http://ajax.googleap...