html

Using absolutely positioned element inside inline-block element in Opera

I keep getting weird results under Opera 10.60 trying to absolutely position block element inside inline-block element. Sample code: <html><head><style type="text/css"> div.container { position: relative; display: inline-block; padding: 5px 100px; border: 1px solid red; } div.block { display: block; position:...

How do I HTML-/ URL-Encode a std::wstring containing Unicode characters?

Hi, I have another question yet. If I had a std::wstring looking like this: ドイツ語で検索していてこちらのサイトにたどり着きました。 How could I possibly get it to be URL-Encoded (%nn, n = 0-9, a-f) to: %E3%83%89%E3%82%A4%E3%83%84%E8%AA%9E%E3%81%A7%E6%A4%9C%E7%B4%A2%E3%81%97%E3%81%A6%E3%81%84%E3%81%A6%E3%81%93%E3%81%A1%E3%82%89%E3%81%AE%E3%82%B5%E3%82%A4...

Using the <legend> tag for input.

So I've got a form, who's content will change based on a dropdown list of different reports. So the question is, how horrible would it be to include a select box as the legend tag for the fieldset? I know that technically it works, and semantically it makes sense (the actual text of the legend tag, the selected value is a caption of th...

Store files in MySQL database from HTML form.

Hey Guys, I've got the following HTML form. As you can see it's saving a file. <form enctype="multipart/form-data" action="welcome.php" method="post "onsubmit="return validateFormOnSubmit(this)"> <b>Name</b><br/> <input type="text" name="fname" /> <br/> <b>Description</b><br/> <TEXTAREA NAME="description" COLS=40 ROWS=6></TEXTAREA...

How to place one element exactly to the same visible position, as another ?

I have two elements "src" and "dest" "src" and "dest" are in different DOM-nodes, that can not have the same parent. I need to place "src" element in the same visible position, as "dest". "src" element must also have the same sizes, as "dest". I have following code for case, when "src" and "dest" having the same parent: src.css(...

does DOM order determine the order of form parameters posted?

If I have a form like this: <form> <input name="param[]" /> <input name="param[]" /> <input name="param[]" /> </form> Can expect to receive these parameters in the same order when the form is submitted? I've noticed that Chrome, Rails, and Webrat preserve the order of the parameters, but that may be caused by implementation det...

iPhone, parsing HTML with TouchXML

Hey guys, has any of you some experience with parsing HTML with the TouchXML lib on the iPhone. I would like to parse some html and therefore try to do the following self.parser = [[CXMLDocument alloc]initWithData:self.html options:0 error:&error1]; if (error1) { NSLog(@"Error: %d", error1); } NSError *error; NSArray *resultNod...

How to add link tag inside noscript tag its showing

I added tag inside the tag as following <noscript> <link type="text/css" rel="stylesheet" href="${staticFilesUrl}/css/noscript-overrule.css" /> </noscript> but in firefox when the javascript is enabled I see something like this <noscript> &lt; link type="text/css" rel="stylesheet" href="/static/snsbank/css/noscript-overr...

Table not refreshing properly after jQuery manipulations, in Google Chrome

I made a solution to another of my questions. But, after some recent changes, it's looking good in Firefox 3.6 but showing quite bad display anomalies in Google Chrome. It seems it's not refreshing/redrawing the table header row after the JavaScript code changes its position. It's especially noticeable when the floating table header row...

HTML Update News Page

Hi, I have a site which is basically a few HTML Pages. I no have a requirement to create a facility where a site admin can create and maintain a News section. I am just pondering what my options are? It needs to be a fairly simple process to maintain news items and ideally not be database driven. Although I'm struggling to see how I c...

Accordion Menu Assistance

Hi, Hoping someone can assist with this Accordion Menu plugin that I am playing with, specifically example 3: Non-accordion (standard expandable menu). see:> Accordion Menu I am basically trying to use the example 3 option of this accordion menu by where I have 5 menu options, where two out of the five have sub-menus and the other thr...

XSLT : How to create conditional link without duplicating code

The generated HTML page contains reference links that sometimes doesn't exist in my page. I should display this link as a simple label. Currently this is done: <xsl:choose> <xsl:when test="$nb_action != 0"> <a href="#action">Action (offensive, defensive, reconnaissance)</a> </xsl:when> <xsl:otherwise> Action (offensive, defensive...

Full height CSS column

I have the following HTML to build a 900 pixel wide, centered page, with a header, footer and content section: <body> <div id="mainMaster"> <div id="main"> <form runat="server"> <div id="header"> </div> <div id="content"> </div> </form> </div> ...

Trouble accessing checkbox properties (client-side vbscript)

I have a bunch of checkboxes where a user can select from a list of systems which they want to load. The checkboxes are created like so: '*************************************************************** ' Print systems from DB in a table for the load page. '*************************************************************** Function PrintSys...

Selector for pressed button

Is there any option, or special selector to change the style for a pressed button, what I mean by that..when a user clicks a button I want to change the style for that button? Is there any option to do that like: :focus or only with javascript click/focus event? ...

CSS non-stretching box

Hello all. I have a question about my layout. I have a setup something like this: <div id="container"> <div id="body"> <div id="item"> </div> <div id="item"> </div> </div> </div> And I want the body box to stretch with the amount of items I put in it but it doesn't. anyone know how to fix this with css. ...

Html Tableless form

I have a section of an html page that I want to display in a table-like way. I keep hearing not to use <table> for layout. And I get the general reasoning. 1) mark up becomes bloated, so it takes longer to download, 2) a table is rendered all at once(so it might delay loading until all of it is read) 3) probably a myriad of other rea...

Creating Zend_Form elements from row html

Hi there, I am having an issue with Zend_Form and your help will be appreciated. in fact I have a class to generate categories as options $categories = My_Util_Category::toHtmlSelect();//for simplicity I removed other lines this code generates <select> <option > root</option> <option> root / children</option> </select> On ...

Event not bubbling in some Browsers when clicked on Flash

Environment: Windows 7, Internet Explorer 8, Flash ActiveX 10.1.53.64, wmode=transparent Just wrote a small test page that you can load in IE and Firefox or any other Browser. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/...

How do you get the currently selected <option> in a <select> via JavaScript?

Real newbie stuff this, but how do you get the currently selected <option> of a <select> element via JavaScript? ...