html

CHtmlView class and focus

I am having Dialog Box Application written in MFC. Dialog is having 3 child controls on it. 2 Buttons (Button 1 & Button 2) and a HTML Control (Class derived from CHtmlView) HTML Control has been navigated to a HTML page having 2 checkboxes (Check Box 1 & Check Box 2). Control Z-Order for focus should be like: Button 1 Button 2 HTML Con...

Telerik Dock is duplicating boxes and "_breaking_" the webpage, how can I fix the problem?

Here is the Code: VB: Imports System.Web.Script.Serialization Partial Class MyLanding Inherits System.Web.UI.Page Private LoginClass As New LoginClass Private _dockStateCleared As Boolean = False Private _conn As New SqlConnection(ConfigurationManager.ConnectionStrings("MidwestPartsConnectionString").ConnectionString) ...

Is there a way to port a chrome extension to other browsers?

Is there a way to port a chrome extension to other browsers, without having to entirely re-write the code? My chrome extension uses the browser_action command to open "popup.html" in the extension window... Update: I found this and found it only somewhat helpful for porting... ...

innerHtml and innerText destroys tabs in Internet Explorer

I want to take the content of a textarea and put it in a <pre>. Problem is that if i set the innerHTML-property of the pre to the value of the textarea all tabs and linebreaks will be removed in Internet Explorer. If i use innerText instead of innerHtml i will get the line-breaks but tabs still disappear. Works fine in other browsers. I...

Play swf file once on mouseover using javascript

Hi Folks i need to play a .swf flash file when i mouse over one of my links so <a href="123.html" onMouseOver=" PLAY MY SWF ONCE ">123</a> can you please help me achieve this using javascript Thanks ...

Outputting something like rowspan with dynamic number of records

Given a table like this: Col 1 | Col 2 1 2 1 3 2 4 ...and could be any number of 1's, 2's, etc. in Col 1. I want to dynamically output something that would look like this: <table> <tr> <td rowspan="2"> 1 </td> <td> 2 </td> </tr> <tr> ...

Absolute positioning and scroll bar in Internet Explorer

Disclaimer This question is a repost. I originally asked it here. While there was one person who was kind enough to help me, he ultimately couldn't find an ideal solution. The reality of the situation is Doctype just doesn't have the huge number of users that Stack Overflow does. This is an important problem for me, and I really need...

Session or Global Variables in HTML

Hi All, In HTML do we have any variable which can be accessed in all pages similar to Sessions Variables in ASP.NET ? I have a Querystring value in welcome.HTML and I want that value in complete.htm User can't go directly to complete.htm from welcome.htm as there are other pages in between those pages. Regards msbyuva ...

Dreamweaver Regex: Replace dumb quotes with curly (typographic) quotes

Hi all, Does anybody know how to replace the HTML entity for dumb (straight) double quote marks (&quot;) with curly typographic html entites - &ldquo; and &rdquo; respectively? I only know the basics of regex at the moment and was hoping that there were some good dreamweaver find-and-replace tutorials but so far have found nothing usef...

Nested optgroup solution from drop down list

I have a drop down <select> list of pages in a site, however the structure is quite complicated to go in the list e.g.; Home Projects Category 1 Item 1 Item 2 Item 3 Category 2 Item 4 Item 5 Item 6 Category 3 Item 4 Item 5 Contact Accessibility Sitemap What I want to do is say "select a page to link to" and then present the ...

Regexp to search/replace only text, not in HTML attribute

Hello, I'm using JavaScript to do some regular expression. Considering I'm working with well-formed source, and I want to remove any space before[,.] and keep only one space after [,.], except that [,.] is part of a number. Thus I use: text = text.replace(/ *(,|\.) *([^ 0-9])/g, '$1 $2'); The problem is that this replaces also text i...

Fluid inline list and row alignment

I have a fluid grid built with <li> elements. eg: <ul> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>​ li { border:solid 1px green; width: 100px; min-height:50px; display: inline; margin: 10px; float: left; }​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ so this looks...

how do i show the options in a select box when i tab into the box?

I am building an application and have a page with a bunch of select boxes where the user must set different options... How do i show all the options that are available when the user tabs into the box? Currently i can tab into the box and start typing and it will search through the options, but it does not show the available ones. Is th...

IE: Unicode characters in HTML select and option tags

I need show options in a select with unicode characters. Try this: <select id="ddlNota_CateId"> <option value="1091">&#26641;&#31435;&#20351;&#29992;ICT&#30340;</option> </select> And show unrecognized charcaters (树立使用ICT的). :s Example in http://200.115.217.50/test.html ...

formating part of text inside a textfield

Suppose you have a text-field in your webpage. The value inside text-field is "This is your welcome text". Is there any way by which I can provide red color to "welcome" and not to other words. In short applying styling on some part of text inside a text-field. can some body suggest a way of doing it? ...

HTML <code> blocks - Should HTML tabs display inside?

Within a standard code block, should HTML appear exactly as written? For example, if I put the following: <code> <script type="text/javascript">Something in javascript</script> </code> Should it appear exactly as above? I assume the code button here on stackoverflow is doing something else other than just putting it in ? Thanks! ...

Parse HTML links from a google query

Hi, First the revised code which throws javax.swing.text.ChangedCharSetException: import java.io.*; import java.net.*; public class Main { public static void main(String[] args) throws IOException, Exception { String query = "#pragma"; Socket s = new Socket("google.com",80); PrintStream p = new PrintStr...

Is there a good language/syntax for field validation we can re-use?

I'm working on a web app (using Python & Bottle) and building a decorator for validating HTTP parameters sent in GET or POST. The early version takes callables, so this: @params(user_id=int, user_name=unicode) ... ensures that user_id is an int, user_name is a string, and both fields exist. But that's not enough. I want to be able to ...

Internet Explorer: relatively positioned button alignment in absolutely positioned box

In IE7, my order sample button "#itmSampl" isn't vertically aligned with the ".add-to-cart" button to the left of it, although in FF3.6 and Chrome 5 it is. I need it to be aligned correctly in IE6-8. Does anyone see what I'm missing? <style type="text/css"> #buttonbox { position:relative; width:326px; } #accounting #box-accounting .ima...

2 buttons in the same position. Display at different times!!

Is it possible to place two buttons in the same position in an aspx page. Depending on some condition, it has to display one among them. <asp:ImageButton ID="btnapply" ImageUrl="../images/apply.gif" runat="server" ImageAlign="Right" OnClick="imgApply_Click" ValidationGroup="0" /> <asp:ImageButton ID="btnremove" ImageUrl="../images/r...