html

Generating HTML (i.e. br and p tags) from plaintext in C++

I've got a bunch of text like this: foo bar baz What's likely to be the most efficient way in C++ of transforming that to this: <p>foo<br />bar</p> <p>baz</p> for large(ish) quantities of text (up to 8000 characters). I'm happy to use boost's regex_replace, but I was wondering if string searching for \n\n might be more efficient?...

How to set one of the values in dropdownlist as selectedvalue in asp.net mvc?

I have a dropdownlist with values -1,1,2 and text A,B,C i wanna set B as selectedValue by default when the page is loaded. Something which can be done at the Page Level i.e in aspx or ascx. ...

Stop page from appearing in browser history

I have a simple flow A.html -> B.html -> C.html Now, B either 302's to C, or shows a progressbar, and then after some ajax call is done goes to C. When the user is on C, and they hit "Back" I want them to end up on A instead of B. If the page 302ed, then the back behavior is what I want, but otherwise they get that intermediary page....

Horizontal slider menu

I'm trying to build a fixed menu like the image. I've searched for some jquery plug-in,but only thing I found was accordion or tab menu which opens up in vertical direction. I wish to implement this menu content with jquery + css like Visual Studio's floating panel system with content in horizontal direction Do you have any examples for...

Why does page-anchor not work in Opera?

I got the following webpage-builtup: <div id="menu"> </div> <div id="content"> <!-- you just need to see the last part of the page? us this link --> <a href="#down">down</a> <!-- A LOT OF CONTENT ... no fun to scroll down --> <!-- EVEN MORE CONTENT ... still no fun to scroll down --> <a name="down" id="down" /> </...

hsl color problem in Firefox

Hi Guys, I am trying to declare the border of a div using hsl() like this: border: 2px solid hsl(0,200,105); I am using Firefox 3.5 and there is no border being rendered at all. The same code works perfectly if hsl() is replaced with rgb() I read somewhere that Firefox supports hsl() and hsla() Am I doing something wrong? and if h...

jQuery html() in Firefox (uses .innerHTML) ignores DOM changes

I'm really suprised I haven't run into this problem before, but it seems that calling jQueries .html() function on an element ignores changes in the DOM, i.e it returns the HTML in the original source. IE doesn't do this. jQueries .html() just uses the innerHTML property internally. Is this meant to happen? I'm on Firefox 3.5.2. I have...

iPhone Book Wrapper app, HTML pagination

Hello Guys, i'm developing an app that will be just a wrapper for a certain book the book is in HTML so, i want to make something like stanza, i want to determine no. of pages given the Whole book HTML and to paginate that dynamically into views. is there any built-in methods that can help me with that? or does anyone know any idea of ...

Two Divs with unknown width and dynamic scaling

I have two div's without any width as I am working on a fluid layout. Div - 1 - Floated left - contains a set of tabs Div - 2 - Floated right - contains some preferences related to the tabs If the number of tabs increases or on resizing the browser Div 2 should scale itself into a separate line (100% width), separating (border-bott...

Trying to make submenu overlap main-menu in IE on window resize w/o using JS?

Hey everyone, I have following css-menu: The menu works fine everywhere BUT IE6 and IE7. Here is some code: CSS (mainly for IE, similar for other browsers): .menu { height:25px; position:fixed; z-index:100; font-family:arial, sans-serif; } * html .menu { z-index:100; } .menu ul { padding:0; margin:0; ...

An impossible problem - fitting a large html table into a small space

The obvious answer to this is "it's not possible" or "make the data smaller"...I have tried these and they don't wash so I need to come up with an alternative There is a table on a web page that has 14 columns in it. 2 of the columns have text in that is quite long (but cannot wrap - the text must be all on one line for each row). Nee...

Internet Explorer form input problem.

I'm having a ton of problems with every version of IE, one of which is that IE7 won't register input in this text input field. http://www.flightm8.com/redesign I'm a bit nervous about posting the link since the site looks a mess and doesn't function properly in any version of IE at the moment, and it is still quite a way off being read...

what's the exact way to get the position of an element?

related to browser window's upper left corner of client area. ...

plain javascript code to highlight an html element

to debug some javascript code, I am looking for javascript code (preferably just js, without libraries and dependencies) that can highlight a div or span (probably by putting over it a div or span of the same size and shape with a bright color and some transparency). I pretty sure it can be done, but I don't know how to start. CLARIFIC...

How to decode HTML encoded text in MS Access

Hi all, I have a table field in MS Access 2003 which contains HTML encoded strings like this: &#913;&#957;&#964;&#945;&#947;&#969;&#957;&#953;&#963;&#956;&#972;&#962; &#960;&#945;&#947;&#954;&#959;&#963;&#956;&#943;&#959;&#965; &#949;&#960;&#953;&#960;&#941;&#948;&#959;&#965; &#963;&#964;&#951;&#957; &#954;&#945;&#964;&#940;&#961;&#964...

How to set hyperlink for a banner logo. Please help

I am trying to set hyperlink to logo which is at the left side of the banner. when i use <a href="home.php"> <div class="logo"></div></a> its not working. help me to come out of this problem ...

Scripting Object (as iframe replacement) in IE does odd stuff...

I'm using the strict xhtml on my website, so I don't have the "Iframe" element. Instead, I'm trying to use the object tag. I want to dynamically open content, so I've got a javascript function like this: <object id="oPageName"> <script> function openPage(pageName) { var ifContent = document.getElementById("oPageName"); ...

html how to create frames

Hi I would like to create an html frameset like the picture below. can anyone point me in an helpful direction as I'm not sure how to create this? Should I use frameset or something else like AJAX? ------------------------------------------ | | | | |-------...

How to return a value into webpage

Hello: I have a simple webpage that displays the credit balance for calling cards. So far without any problems, with HTML, PHP and mysql, I was able to retrieve the balance from a data base. But I have to display the result in ANOTHER PAGE, wich looks akward because the page must reload. Can I just load this value into a pre-drawed...

HTML Parsing Error

I can't find out what the problem is, and why I keep receiving this error in Internet Explorer 8, as it's the only error that I am receiving. Any thoughts as to what it means, or a simple solution? I haven't noticed any problems with my code though, it's just the message that bugs me. Webpage error details. User Agent: Mozilla/4.0 (...