html

Customized bulleted list items in ASP.NET

Hi, I am just a beginner in ASP.NET. My question is simple, I wanna add list items dynamically from the code behind file and I want each item to have a text and couple of images as hyperlinks. The HTML sample should be like, <ul> <li>do foo &nbsp;<a href="#"><img src="some_image.png" /></a></li> <li>do bar &nbsp;<a href="#"><img sr...

How can web technology be used for a C++ application GUI?

Can web technologies be used for a desktop application written in a traditional language like C++? I'd guess that they can, though I've not been able to find any evidence of this. I understand Adobe Air can make desktop apps using Flash, but it uses web languages like php etc. What I'd like to do is to be able to build my GUI elements - ...

How to make onclick automatically through onload function

I have a href link and I would like it to be clicked when the page is loaded. ...

Is there a good HTML Meta tags overview somewhere?

Is there somewhere on the Internet a list of common meta tags that can be included in the header of any HTML page? There's this site but it's not working properly. Anything better than this? ...

Problem displaying error on the webpage using js

I have created a webpage, in which i have a few input box and a submit button in a <form action="" method="post" name="password"> On the click of the submit button, it calls a js function, which checks if the passwords are same, and if not it displays the error if (passwrd1!=passwrd2) { document.getElementById("response").innerHTML...

how to do word-break in html

I have html code like this <tr class="odd"> <td><b>Reason for Termination:</b></td> <td>this has bunch of reasons like reason 1, reason2, reason3, reason 4, reason 5 etc</td> <td></td><td></td> </tr> I want the second TD tag to have some sort of predefined word break. so that when the page is loaded there would be an 'end...

JQuery Text slideDown / slideUp Overlay on Image Keeps Bouncing?

I am trying to replicate the text overlay effect that occurs when you mouse over an image - found on the Guardian web site. I have it working except when my mouse goes over the trail-text area that area bounces (slideDown slideUp) repeatedly a number of times. I think it is because the trail-text area becomes the focus and causes the m...

Formatting PHP Echo

I want to have a small text box with a scroll bar that will hold frequent outputs from PHP based on server-side activity. How do I set up formatting like this? ...

Is there a great WYSIWYG html editor component that had Drag n' Drop *like* the Google Waves editor?

Is there a component out there that can be used that provides some of the great capabilities that the Google Waves editor provides (or Google Docs editor)? If it only works on a certain browser, that is fine. If it is part of GWT or some other framework, that is fine. I know that this will probably require Google Gears. I would prefer ...

Convert HTML to XAML

Is there a way to convert HTML into XAML? I noticed that you can paste HTML into a RichTextBox and you can get the XAML by looking at the FlowDocument. However, this is a hack. Is there a better way? ...

Write Multiple Full HTML 'Files' to Single Output Stream?

I'm writing a testing utility- I want to show multiple finished HTML "pages" in a single browser window. Is this possible? I'm using Java Servlets. For example, normally the user goes to a utility screen, fills in a bunch of fields and POSTS this to my servlet, which builds up a full HTML stream based on their input and writes it to Ht...

jQuery realtime form validation

I am currently using $.blur(fn();) for form validation, but this only takes effect when the form field loses focus. Is there a way of doing it on keypress to get realtime validation? I suppose I could do the 'poll all fields every second' approach, but I am sure there must be a more elegant way? ...

How to read input in a html page with javascript without focus in one field

Hi. I want to ask how can someone read keystrokes while in a html page without having focus in a particular field. Is there some event that i can hook a method that reads input? Thanks in advance. PS. We use JQuery if that helps. ...

Easiest way to echo HTML in PHP?

I want to conditionally output HTML to generate a page, so what's the easiest way to echo multiline snippets of HTML in PHP 4+? Would I need to use a template framework like SmartyPants? echo '<html>' + '\n'; // I'm sure there's a better way! echo '<head>' + '\n'; echo '</head>' + '\n'; echo '<body>' + '\n'; echo '...

How does global Javascript object save state?

/************************************************************************** * * Function: toggleVis * * Description: Following Function hides and expands the main column. * * ***************************************************************************/ // Set the default "show" mode to that specified by W3C DOM // c...

How to make a JQuery drop-down appear in the right place?

Hey everyone, I'm not familiar at all with JQuery and I'm not very good with CSS, but nonetheless I find myself working with it. So, basically here's my dilemma: I have a simple jquery script where you click on an image and a little login box drops down using slideToggle. I took a script someone had already written to do this, but thei...

Placing CSS information on an HTML page

Where are all of the places you can put CSS style information on an HTML page? I know you can place CSS style info in the head of an HTML page, where else is it valid to put CSS elements? I would like to place my CSS someplace else on the page due to inheritance, e.g: <style type="text/css"> ... </style> ...

Scrollable HTML table with top row and left column frozen

Has anyone been able to implement a scrollable table in HTML where the TOP row and LEFT columns are frozen, but the rest of the table is scrollable? A perfect example of this is: Google Squared I tried to reverse engineer the code for the google squared table, but I have been unsuccessful so far. Note: I need the ability to FREEZE the...

.net c# <a href> links, killing link when in correct location

Hi, I am developing a navigation bar for the top of a website. One of the interesting things I noticed about the sites original was that when you had navigated to a location, the link would no longer be a lnk. The prior developer achived this with a lot of code and variables floating around, I am just wondering if there is a much simp...

hide/show not working properly with jquery

Hello, I have a page with three rows of main information that all have a 'More Info' button attached, sort of like wefollow.com and their info button. When the 'More Info' link is clicked a <tr> with a class of "mi" slides down above the main info. The problem that I am getting is hiding the <tr> before the 'More Info' link is clicked...