html

MFC : IHTMLElement how to remove an html element...

Hi all, I have a dialog which has a web control... and with it I add elements using the put_innerHTML method of the class IHTMLElement. How do I delete elements though? I can't seem to find the method for it. Thanks... ...

can anybody know the free flv video player for website?

I need to upload videos like video gallery in website. Thats y I need one flv video player? Pls help me to get those players ...

CSS margin tweak help

Help me tweak the CSS of this page: http://draw3cards.com/questions/1501/buyback-vs-flashback I tried to understand why the Adsense Ad appears misaligned - I would like it in line with the surrounding box. I looked at it with Firebug but missed any margin or padding in that element. Can you help? ...

HTML mht doesn't render well on ajax call?

I have a file (viewdoc) which writes a .mht file to the screen. In my application I have two main divs: one for the menu (= treeview) and one div to display the .mht file (#documentContent). My menu calls a javascript function which performs an ajax request to viewdoc and put the output of viewdoc in my content div (#documentContent): ...

Does anyone get zero-height select fields in Firefox 3.6.3?

If you open this HTML in Firefox 3.6.3 (confirmed in some earlier versions too), and click the drawStuff() link repeatedly, it doesn't render the contents of the last div consistently. Looking more closely it seems like it's rendering select fields with height=0. Any idea why this would happen? <!DOCTYPE html PUBLIC "-//W3C//DTD HTML ...

textarea with bullet point for each line

I have a textarea where users enter notes and want to automatically add a bullet point for each line. I was thinking of using a rich text editor (eg CKEditor) with bulleted mode enabled. Any better ideas? ...

Using JQuery to traverse DOM structure, finding a specific <table> element located after HTML 'comment'

I currently have a website source code (no control over the source) which contains certain content that needs to be manipulated. This would be simple on the surface, however there is no unique ID attribute on the tag in question that can uniquely identify it, and therefore allow for further traversal. Here is a snippet of the source co...

HTML: how to make a file download require a username and password

In a basic HTML web page, how do you make the user have to enter a username and password before they are allowed to download a file. What is the best way of achieving this on a website, preferably in plain HTML. ...

how to include a html page with in another html page

Hai I want to include an html page with in another html page. So I used the following code <!--#include file="footer.html" --> But it's not working. I am using Linux server. Is there is any other way to do this? ...

Flex/AIR/HTML PDF scriptable viewer

Hi all! I've written a PowerPoint-like application in Flash, and now our client would like to view the speaker notes (a PDF file) on a separate screen while using the application. What I would need is a separate application/html page which can show the PDF and programmatically change page when the master slide changes. Is this possible...

get the right id of a record in database in each click on the edit button

hi every one, i am facing a big problem right now. I have a html table in each row i have a button called edit allowing user to relod the form with parameter that he has selected. for this i define a hidden type to get the id of the record in database to access to various colonne and to refresh the form with those parameters. My challeng...

What should I put in the href when I prototype?

When protyping we often do empty anchors. A very common way to do this is to do something like: <a href="#">Go here</a> But if the client clicks this link, the page will scroll to the top. But if we leave out the href attribute, the link won't behave like a link. I've see stuff like: <a href="javascript;">Go here</a> But it doesn'...

javascript problems when generating html reports from within java

Hi, I have been working on a Java project in which the reports will be generated in HTML, so I am implementing methods for creating these reports. One important functionality is to be able to have as much info as possible in the tables, but still not clutter too much. In other words the details should be available if the user wishes to ...

Variable width columns in a table

I'm using an HTML table for a calendar and I want to fill the cells with various events from my database. Usually they will land on weekends but some will run for long weekend, bank holidays or even the odd week day. How can I get my tables columns to expand and shrink accordingly. I'd like to avoid the use of javascript if possible. ...

How to change the font & color when using Html.TextAreaFor?

I'm using following code to display some text and it won't change the font color, anyone know why? <%= Html.TextAreaFor(m => m.Component.ApplicationDescription, new { cols = "40%", Style = new Style { ForeColor = Color.Red } })%> ...

Preloading images in HTML, is there a more modern way?

I have an image loaded by JS on a mouse event. It's a fairly big image so I want to make sure it gets pre-loaded. I reemmber some old techniques from years ago and found this example: <SCRIPT LANGUAGE = JAVASCRIPT> if (document.images) { img1 = new Image(); img2 = new Image(); img1.src = "imageName1.gif"; img2.src = "imageN...

functions with same names in javascript

Hi, I tried to write a function on a js file and another function with the same name in the page.I expected an error but no error came and i got only the function from the js file to execute.How is this possible.Even if i write a function in a separate js file,everything is rendered in a single html file.Then how come it is possible <sc...

how to hide the button value using html

hi , i want to know how to hide button value: i am using style:color: transparent but i didn't know why it doesn't work. thanks ...

Fast, lightweight HTML parser for C++

I'm looking for a fast, lightweight open-source HTML parser -- something along the lines of a non-validating SAX parser (except, of course, for HTML). The answers to this question cover a parser that generates a DOM (don't want that), and these answers suggest conforming the HTML to XML before sending it to Xerxes (can't do that in my c...

get drop down value using dojo

I have struts code like <html:select property="ce"> <html:option value = "5">5</html:option> <html:option value = "10">10</html:option> <html:option value = "15">15</html:option> </html:select> <div id="dis"> <div> if a option is selected,dojo should get the valu and multiply by 10 and display that in the div?how to do that. ...