html

Creating new html in JS or ajax loading a html layout?

I have a page where I need to create a large amount of HTML that's not already present in the page. Using jQuery I've been building the page with JS piece by piece, adding divs here and there, etc, until I get my layout. Right now I'm thinking rather than do all that in JS, I can create the layout in a separate HTML file and then load ...

Selenium doesn't register button press

Hey all, I have a problem running Selenium IDE over one of my AJAX pages. There is a HTML button with a javascript onclick submit that causes a new form element to appear once the button is clicked. The button also only appears through AJAX after a select value has been selected on a previously displayed drop down. Selenium sees the ...

Html Generation from Xml Tree (C#/.NET)

I have an HTML document stored in memory as an Linq-to-XML object tree. How can I serialize an XDocument as HTML, taking into account the idiosyncrasies of HTML? For example, empty tags such as <br/> should be serialized as <br>, whereas an empty <div/> should be serialized as <div></div>. HTML output is possible from an XSLT styleshe...

Weird javascript

I 've got a very interesting thing with an html here. <html> <head> <script language="Javascript"> var str="me&myhtml"; function delimit(){ document.write(str); document.write("<hr>"); } </script> </head> <body onload="delimit()"> </body> </html> You see 'me&myhtml' with a line beneath. However, if you comment //document.write...

Are forums considered tabular data?

Stackoverflow uses tables for questions/answers, I was told by many SO users that this was wrong and that questions and answers are not tabular data. So now I ask, are forums tabular data? Most major forums (vbulletin) I beleive all are using tables. I am assuming this is considered tabular but I would like a second or more opinion ...

WordPress Subscribe2 plugin escapes characters in blog name when sending email

Hello, I'm using Subscribe2 plugin in my new upcoming WordPress blog (http://www.adlerr.com). My blog's title is "Roee Adler's Blog". When sending an email, Subscribe2 escapes the apostrophe in my blog's title, and the e-mail subject is received as follows: [Roee Adler&#039;s Blog] Please confirm your request The e-mail body is: Roe...

Use ASP.NET to e-mail contents of an entire HTML Page?

I have a HTML page that I have created that essentially consists of: <div> <table> <tr> <td><asp:label runat="server" id="someText"></asp:label></td> </tr> </table> </div> The label text is generated on page load from an SQL query. The above is a very basic and simplified version of what I have on my pag...

Text is busting out of the contained box

Hi, I have a user control that displays summary information, and it busts out of the contained box if the text is like: <NOBR>00000000000000000000<wbr/>00000000000000000000...</NOBR> I added the nobr and wbr tags, but it still doesn't force the text to wrap to the next line. The entire row is displayed (with the "..."), so for sure ...

Get a #link to not refresh the page?

Is there anyway to get a link to another part of your page (<a href="#link">) to not refresh the page? Some times it will not refresh the page, and other times it will. This is a problem as i also have that link doing some javascript changes to the page onclick, which are then discareded when the page is refreshed at the same time. Any ...

Send keys to WPF Browser control

Can I programatically send [UserID]{TAB}[Password]{CARRIAGE RETURN} to a webbrowser control which has a userID, password and Sign-in button there. I wanted to use my own virtual keyboard in my application. Any tips here? ...

Changing CSS for Last li

Hi Everyone: I am wondering if there is some way to change a css attribute for the last li in a list using CSS. I have looked into using :last-child, but this seems really buggy and I can't get it to work for me. I will use Javascript to do this if necessary, but I want to know if anyone can think up a solution in CSS. Thanks for any...

iFrame Question

I have a website that has a huge background image. I need to put a flash player at the top of the website, and I just realized that each page they click on is a new page, and thus restarts the Flash player. So I would like to put that flash player in an iframe so it will continue to play throughout the user surfing. But my issue is wil...

How do I use JavaScript to grow an HTML form?

I'm creating a simple web application with which a user may author a message with attached files. That "attach additional files" link does not yet work. It should add an additional file input control to the form each time it's clicked. I need a JavaScript method addanotherfileinput() to replace the clicked anchor: <a href=...

Why webpage running much slower in IE than in Firefox?

when I running one asp.net web site, there is one page is running very slow in IE, but other pages are running ok. It' wired that this page is running ok in firefox. Is there someone know the problem is? thanks!!! I am using Asp.net and js on that page ...

css href and links

It seems that when I add an 'href' tag to my anchor I lose all my css formatting. Is there something special the way css treats links? Here is the simple css .topmenu > ul > li > a:visited, .topmenu > ul > li > a:active, .topmenu > ul > li > a:hover, .topmenu > ul > li > a:link, .topmenu > ul > li > a { font-family...

How do I use jQuery to grow an HTML form?

I'm creating a simple web application with which a user may author a message with attached files. That "attach another file" link does not yet work. When clicked, it should add an additional table row and file input control to the form. <tr id="fileinput0"> <td>Attachments</td> <td> <input type="file" name="Attachme...

Simple jQuery test using "toggle" function, not behaving as expected

I've constructed a simple test with jQuery to see if I can get an element to show/hide upon the clicking of a button. HTML file: <link href="test.css" rel="stylesheet" type="text/css" /> <script src="jquery.js" type="text/javascript"></script> <script src="test.js" type="text/javascript"></script> <input type="submit" id="show" val...

How can I mirror text selection?

Say you have two inputs: <input id="input1" type="text"/> and <input id="input2" type="text"/> such that through some JavaScript magic, anything you type in input1 will also be put in input2. In this sense input2 "mirrors" input1. Is there a way that I can also "mirror" text selection. So if I select some text in input1, how can I hav...

auto resize swf to fill 100% remaining height of page

i've got a page with a header, a swf, and a footer. the header has fixed height (100px) and 100% width. the footer has fixed height ( 25px) and 100% width; i want the swf to automatically resize, keeping to its original aspect ratio of 600x450, when the window/page is resized, to fill the remaining height in the window. a 2nd, less de...

Funky rendering in IE for HTML + CSS

http://churchcentral.com/rfi.php?site%5Fid=4&amp;division%5Fid=2144 is the page, and IE only is the problem. If you notice, the text at the end of "Step 2", the text "the next page" is repeated. If you highlight either of those portions of text, IE will highlight both of them. Is this a bug in IE? We've seen this happen on the same pa...