html

How to get image path for <img src="?"> tag from XML file

I'd like to use an xml file <pics> <pic no="1">c:\pic1.jpg</pic> <pic no="2">c:\pic2.jpg</pic> <pic no="3">c:\pic3.jpg</pic> <pic no="4">c:\pic4.jpg</pic> <pic no="5">c:\pic5.jpg</pic> .... </pics> in an html table: <table cellspacing="2" cellpadding="2" border="0"> <tr> <td><img src="" width="150" height=...

WPF application which outputs html

I'm creating a WPF (in c#) application that will create html files based on it's output. Is there a way to use the concept of an html 'view' (from the asp.net mvc) in a desktop application without reinventing the wheel? Basically I just want to save a list of outputted items in html which is so simple in a web application (and even using...

HTML form problems

Hello again!Here is my code : <body onload="read()"> <div class="style1" id="Layer3"> <textarea name="textarea" cols="30" rows="5" id="msg" ></textarea> </div> <div id="Layer1">Hello World!<img src="body.jpg" width="842" height="559" /></div> <div id="Layer2"><img src="close.jpg" alt="Go Online/Offline" name="close" width="63" height...

html div position absolute inherited ?

if my first div is 'postion:absolute' will by 2nd div inherited that? <div class="positionab">test 1 </div> <div class="secondiv"> test 2 </div> .postionab{ position: absolute; left:0px; } when test 2 is rendered on screen it is position on the most upper left .. why is it like that? ...

<header> vs. <head>

In this tutorial: http://railstutorial.org/chapters/filling-in-the-layout#top There is "header" I know that in HTML there is "head" But, what is <header> ? Thanks. ...

IE7 Misinterprets My HTML

This site displays fine in IE8, Mozilla, Safari and Chrome but IE6/7 really screws it up. I've been trying to bux fix the layout, but I'm ready to give up. Wordpress 3.0, coded using BBEdit and PSPad, hosted on Yahoo (terrible, but not my choice). Site: yovinomd.com In IE8 dev tools, the HTML is all wrong. For some reason there are...

PHP echoing HTML code with more PHP included

I have blocks of HTML code in a MySQL database and my framework needs to print these within a PHP template which will be outputted to the browser. To do so I make this call: </tr> <!-- Section 3 --> <?php echo SIN_SiteView::get('section3') ?> <tr> Which gets the code either from the APC or MySQL, now the code it obtains looks ...

Determine how much time does a webpage take to load on user's machine

I want to measure the user perceived experience of web page loading. It is not sufficient to measure the time between receiving request and sending the response. Because that would be the server response time. The user's experience would depend on network latency and his bandwidth in addition to server response time. Any idea? The web p...

Is it possible to have several different textcolors in one textarea?

I'd like serveral words / phases in a textarea to appear in different colors... How would I go about doing this? Below is an example, I'd like the word green to appear green etc etc... <textarea style="width: 100%; height: 100%; resize: none;"> Is it possible to have multiple colors in a textarea? How would i set certain phases or word...

Embed raw data in HTML to parse in jQuery

I've been living in the desktop world for most of my career, so forgive me for asking such a basic question, but I'm not quite sure where to start looking. I want to return some raw data along with my HTML, and parse and display the data using jQuery as soon as the HTML is ready. I know roughly what my js code should look like, but I'm ...

How to replace HTML image buttons with text link?

Hi, I'd like to make my webpage highly compatible; so when a user turns off all styles when browsing my sites, I want them to be able to find everything in text. The problem is that some of my webpages use image buttons like the following: <a href="next.html"><img src="images/next_button.png"></a> This is a problem since when I visit...

Print in separate page javascript?

I am currently using php and getting complete user details and displays it into a html table. The problem that I have is when I print 3 tables each of them are printed on each page perfectly. But when I try to print over 3 tables, each table moves upwards and the tables are printed partially on each page (1 ½ user details in each page). ...

jQuery: how to change tag name?

jQuery: how to change tag name? For example: <tr> $1 </tr> I need <div> $1 </div> Yes, I can Create DOM element <div> Copy tr content to div Remove tr from dom But can I make it directly? PS: $(tr).get(0).tagName = "div"; results in DOMException. ...

CSS: how can I make this table fit the border when resized?

I would like to make the table with the three images fit inside the border when the page is resized (using CTRL + in the browser), so it looks like this: And not like this: How do I do this? This is the body and table CSS code: body { background-color: #CC7722; margin-left:20%; margin-right:20%; ...

adding leaders using html or style sheets

Is there any way to fill a style sheet box with leader? For example given two style sheet boxes next to each other... Topic 132 I'd like to fill the first box with . . . on the right so it looks like Topic . . . . . . . . . . . . . . . . . . . . 132 ...

Generate html code which depends on a parameter from java.

I want to be able to generate html pages where some parts of the html should depend on some parameters. My idea is that I could have a template like OneMailTemplate.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>MailTemplate</title> <meta http-equiv="Content-Type" content="text/html...

How to select a class by GetElementByClass and click on it programmically.

I have been trying to use this code to read the element by class in html/ajax knowing GetElementByClass is not a option in webBrowser.Document. I can't seem to get a return value then invoke the member. Is there a work around for this? References: Getting HTMLElements by Class Name Example: <span class="example">(<a href="http://www.t...

HTML Drop Down List Best Practices

Hey, I'm putting together a fairly simple HTML/Javascript/PHP form (I am fairly new to all of these). One field of the form requires users to select an option from a reasonably long list (using a drop down list). The contents of the list are extremely unlikely to ever change. Is there a "better" way to populate the list than simply usi...

JQuery UI progress bar not showing up until page loads fully

Hey guys, I'm loading a dynamic application (which takes 20-30 seconds), and I'm trying to create a dynamic progress bar that shows the user how much of the task has been completed dynamically as the page loads. I'm accomplishing this by setting buffer to false and having my script output a line of JavaScript as it progresses that call...

HTML 5 Websockets will replace Comet?

It looks like Websockets in HTML 5 will become a new standard for server push. Does that mean the server push hack called Comet will be obsolete? Is there a reason why I should learn how to implement comet when Websockets soon (1-2 years) will be available in all major browsers? Then I could just use beaconpush or pusher instead till ...