html

Java - XSS - HTML encoding - Character entity reference vs. Numeric entity reference

We've been looking for ways to HTML encode our JSP pages to counter XSS. The OWASP site shows How_to_perform_HTML_entity_encoding_in_Java The article talks about entity encoding the "Big 5" i.e. 21 {"#39", new Integer(39)}, // ' - apostrophe 22 {"quot", new Integer(34)}, // " - double-quote 23 {"amp", ...

CSS IE Hover Effect - Overlapping Elements, Display:Block, and Crashes

In a fairly simple page, I have some text appear on hover over some links, like a tooltip. To start with here's my test page I'm working with: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Toolti...

Applying CSS to a form

Hello, I can't get CSS to apply to the function below. Is it because it's a form or because it uses dl, dt, and dd tags? Thanks in advance, John function show_loginform($disabled = false) { echo '<form name="login-form" id="login-form" method="post" action="./index.php"> <div class=\"logintitle\">Please login</div> <dl...

html tables. Sync column spacing between 2 tables;

I have 2 tables in separate <div>'s. One is the header and the other is the actual data which is scrollable. The issue is that they don't line up. I'm using jQuery and the tables are in a re-sizable area so i don't want to set static column widths. What can I do? ...

"Click here to read this article" "Read More" Why these are bad for screen readers?

I use "read more" at the end of paragraph just for reminder for user same like P.T.O Why it's problematic? ...

Html Canvas Resizing And Coordinate Space

Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should draw a rectangle right below the mouse cursor, but there are some really weird scaling issues which is causing it to draw at a varying offset. I think it's because the canvas coordinate space is not increasing ...

Which web browsers support Gelocation via HTML5?

Which web browsers (and version) support Gelocation via HTML5? ...

PHP, Javascript, HTML

How to get option value in PHP? And i want to redirect to the same page, if option is changed by using onClick() function. Anybody please help me. ...

<table> <table> in Flex Apps

I am learning flex and have written a little app with a TextArea that had data getting populated dynamically by embedding simple HTML (mostly for font styles) I ran into a weird issue when I wanted to include images, the images in this case are small arrows as in reddit.com. My desired aligmnent is, ------------- o | foo bar | ffdf...

JQuery selected tab problem?

I'm fairly new to JQuery and for some reason I can't get the currently selected tab to highlight correctly it should be a different color when selected. Can some one help me fix this problem? Here is the JQuery. $(document).ready(function() { //When page loads... $(".form-content").hide(); //Hide all content $("#menu ul li...

Howto: div with onclick inside another div with onclick javascript

Hi guys, just a quick question. I'm having a problem with divs with onclick javascript within each other. When I click on the inner div it should only fire it's onclick javascript, but the outer div's javascript is also being fired. How can the user click on the inner div without firing the outer div's javascript? <html> <body> <div onc...

JQuery collapsible tabs problem?

I'm fairly new to JQuery and for some reason when I add another id selector like id="a" to my <div id="tab-1" class="form-content"> my collapsible tabs wont work how can I fix this problem so I can have multiple id selectors and my collapsible tabs will work also? Here is the JQuery. $(document).ready(function() { //When page load...

Want to play mutiple videos in the same space of the page accordingly in html page

If i click video1 that will play on top means, if i click video2 tat ll play on the same space. Can anyone help me with iframe codes? ...

Search document.innerHTML

Hi, I'm looking for a way to search the generated source of a webpage ( document.innerHTML) for a string, in javascript. I wouldn't want to use window.find() since i might have to look for id's or names too. Any help would be appreciated. Thanks ...

How to create readonly textbox like structure using html(div/span) and css ?

I have web page on which i have read only text box in which i show html code. <input type="text" readonly="true" value="<table>...</table>"/> Now on the same page there is submit button because of which page post back takes place and XSS validation is triggered. Now i don't want to turn off XSS. I also tried disabled = "disabled" bu...

Junit HTML report

Is there a way to (easily) generate a HTML report that contains the tests results ? I am currently using JUnit in addition to Selenium for testing web apps UI. PS: Given the project structure I am not supposed to use ANT :( ...

how to pass parameter to servlet with anchor tag

hi can someone give me the correct syntax to pass parameter to a servlet from a html page.. i tried using anchor tag but the parameter is not getting passed.. this is what i did..\ <form name="form2" action="/cs002/NewServlet" method="post"> Enter your username : <input type="text" name="Username" value="" size="15" /> ***...

how to render multiple html files in the same page one after the other using webkit

Hi, i am using webkitgtk+ to render HTML files. I am trying to render multiple HTML files into same page (say same gtkscrolledwindow ). What i did is, i put a vbox to gtkscrolledwindow as viewport and put Webkitwebviews to vbox, one after the other. But the problem is the HTML files are no more reflowable. I want to retain reflowable pro...

How would you implement search in HTML in a WinForm app?

I have a form that displays HTML through a WinForms browser control. I wish to implement search for the contents of the browser. The requirements are: One should be able to search for one or more terms Each hit in the text should be colored e.g. in red Navigation should be provided so that one can easily move from one search hit to t...

How to get all input elements in a form with HtmlAgilityPack

Example HTML: <html><body> <form id="form1"> <input name="foo1" value="bar1" /> <!-- Other elements --> </form> <form id="form2"> <input name="foo2" value="bar2" /> <!-- Other elements --> </form> </body></html> Test code: HtmlDocument doc = new HtmlDocument(); doc.Load(@"D:\test.h...