html

Copying wingdings (etc) from word documents to html text fields

When I write out some text (standard English, no fancy characters) in Word using Windgings as a font, copying the text and pasting into an html textfield results in the OS's "I don't know what character this is" characters (little squares on Windows). It seems that changing the font (what should be a display-only property) is preventing...

Populate Vector from JSP, Output Vector to JSP

Hi this is a trivial question, but I cannot seem to get it to work. I am populating a vector from my jsp. (I have verified that the vector has elements in it) Now, I want to output the contents of the same vector back to my same jsp. Any takers out there for some code? ...

asp.net page is not responding while converting word document to html

i m using microsoft.office 11.0 object library and microsoft word 11.0 object library. The code makes problem only when we host the website locally or in server other wise it function well. i think below code makes problem. Ant one pls help me. i m in an urgent. Microsoft.Office.Interop.Word.Document doc = wordApplication.Documents.Open...

How can I monitor the value of a hidden input element?

I have a SELECT element which adds its value to a hidden INPUT via Javascript every time an OPTION is clicked (along with a visual representation of each selection) and I'd like to be able to monitor changes for another Javascript function. For the sake of modularity, I can't integrate the second function into the first one. I would also...

Can this be done without tables or JavaScript: 100% height wills remaining height of container

Is it possible to make a none table based layout that allows #bottom element to fill 100% of the remaining space left in the parent element without the use of JavaScript? Here is what works when using tables: <html> <head> <style> table{ height: 100%; width: 100%; } ...

How can i remove this console from my page?

Am testing my webpage on firefox and everything is looking fine, but when i run my page on IE or chrome a section with Clear ReCSS console DOM Object Close What is it and how can i remove it? ...

python method to extract content (excluding navigation) from an HTML page

Of course an HTML page can be parsed using any number of python parsers, but I'm surprised that there don't seem to be any public parsing scripts to extract meaningful content (excluding sidebars, navigation, etc.) from a given HTML doc. I'm guessing it's something like collecting DIV and P elements and then checking them for a minimum...

Does it make sense to use the <table> tag on a "modern" website?

I am developing a "modern" website, and I'm having a lot of trouble getting the CSS to make everything line up properly. I feel like they layout would be a lot easier if I just used a table, but I've been avoiding <table> tags, because I've been told that they are "old-fashioned" and not the right way to do things. Is it okay to use ta...

Custom 404 error without server

Is possible to intercept 404 error without using web server (browsing html file in the filesystem) ? I tried with some javascript, using an hidden iframe that preload the destination page and check for the result and then trigger a custom error or redirect to the correct page. This work fine but is not good on perfomance. ...

Custom dropdown box using javascript ?

Can we write custom dropdown box using javascript,html,css. and also placing backgroung-image for that. any sample example ...

Is there an Emacs Lisp library for generating HTML?

I'm looking for a solution that allows me to write native Emacs Lisp code and at compile time turns it into HTML, like Franz's htmlgen: (html ((:div class "post") (:h1 "Title") (:p "Hello, World!"))) Of course I can write my own macros, but I'm interested if there are any projects around this problem. ...

Expand image inside DIV

How can I expand an image to have the same height as the div after resizing? Or how can I fill the white space left by the image with a color? ...

What's should setting an HTML textbox value to null do?

We have a JSON response which can contain null values (e.g. { myValue: null }) - we assign this value to a textbox on a form: (actually, we use JQuery, but this is equivalent var nullString = null; document.getElementById('myInput').value = nullString; If we assign this value to an HTML textbox value, the behaviour seems browser-depen...

IE z-index relative/absolute bug in list

I have the following navigation where .topNav has position:relative and subnav has position:absolute. I cant get the sublist to appear over the main list due to z-index problems. This seems to be a known problem. <ul> <li class="topNav">About Us <ul class="subNav"><li> Subsection A</li><li>Subsection B</li></ul> </li> </ul> Does anyon...

How do I print from the wpf WebBrowser available in .net 3.5 SP1?

Hi, we are currently using a winforms WebBrowser control in our app in a WindowsFormsHost and printing by calling 'WebBrowser.ShowPrintDialog()' We have an issue with this in that the dialog does not appear to be modal and the parent window can be dismissed causing issues if a print is later attempted. I was looking at the new wpf webb...

What would be the best way to make this layout (css or tables) ?

Hi, I am developping an application where there are subscriptions available. I wanted to know what would be the best way to structure data like the following schema (using tables or css). (Sorry, I am at work and cold not post the picture of what I want on a free image hosting service.) |¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯...

Using vim for html decoration

Do you have any preferred methodology for managing html formatting tags in vim? The best I've come up with is creating some macros to insert tags at the current cursor position - ctrl-i for <i>, ctrl-j for </i>, etc. It would be handy to be able to, say 2w{something} to italicize 2 words, for instance, without needing to navigate the c...

How can I get three columns, sibling divs, each expand to fill its parent?

I have been searching forever. Sorry, I am pretty desperate at this point so I thought I would ask here. Below is an HTML sample. When column B is longer than a single page (viewport, sorry I am not sure on the correct terminology here) then A and C are not expanding in height to fill the container div. They fill the entire page but stop...

How to increase the page height by X pixels by using only javascript

Assume an HTML page: <html> <body> .. html content (outside of our control) .. .. javascript block .. .. some more html content (outside of our control) .. </body> </html> Assume further that the only part of the HTML page that we're able to control is a javascript block in the middle of the page. Using that javasc...

(rails) taking from DB and rendering into HTML

Hi. I'm building a website for my Web Dev class, and I'm stuck on rendering HTML. I want to be able to use a simple form (Pretty much all I have right now is a scaffold for this controller, and I attempted sticking a content_type into my controller, but no progress.) to submit text and have it rendered as HTML. The idea is that, since th...