html

anti pornography image uploading

Possible Duplicate: What is the best way to programatically detect porn images? Im currently working on a site were i would like to offer the users to freedom to upload images to be displayed on said site. The problem is i dont want pornographic images to be displayed. i know google and other sites are already using some sort of...

how to access form array fields with struts2

Hello friends, Currently I am working on one form which contains 2 buttons. Clicking on 1 button I am getting block of html fields as below. ` <table width="100%"> <tbody><tr> <td class="style4" width="12%" align="center">CODE<span class="style3"> </span></td> <td width="18%"><input name="c_code[]" value="" id="c_...

E-mail in a pop up window

Hi! I would like to have a new e-mail window to pop up when I change value on an attribute. Does anyone have any suggestion how to fix that? ...

How to get CSS file to affect only a section of HTML

I have an external CSS file (I cannot change it at all) which I need to use in my HTML file, but I want the CSS to only affect a section of my HTML. (For example everything in <div id="externally_styled"></div>) How is this possible, again, without changing the CSS file (and the CSS file contains also general styles that affect body tag...

setting rowspan on colgroup?

Simple (I hope), HTML question. Let's say I have a column group that spans 3 columns. But it also spans 9 rows. But in actuality, I want there to be 3 levels of columns (so basically, 3 columns, split across 9 rows). The only objectives really are: a) avoid embedding tables (for various reasons) b) keep the sections modular. c) allow ...

Transform HTML to JSF

Hi there I hava an unordered List navigation and i wanted to transform this to JSF code. Actually , there is no JSF tag .. Here is the raw-HTML Navigation : <ul id="navbar"> <li id="articles"><a href="Link1">Articles</a></li> <li id="topics"><a href="Link2" title="Topics">Topics</a></li> .... </ul> ..so what should i do ? ...

$.ajax working with file and not url?

in the $.ajax function the url part has data.json which is a text file but i want to put a url i.e. the code works with $(document).ready(function() { $('#content').html(''); $.ajax({ url:'data.json', dataType: "json", success: function(data) { $('#content').append('<p>'+...

What's the best way to get round a 'Potentially Dangerous Request' error in asp.net?

The project I am currently working on has, in the checkout, an option to attach an embedded YouTube video to an advert. This is causing a headache: My original plan was to take the embed html that the user provides from YouTube and split out the videoID, and store only that, rejecting anything that does not fit a certain pattern, to en...

How do I show content when Javascript isn't available, hide it when javascript is available and not flicker in either case?

I have a simple form for shipping options and I am using javascript to auto submit the form when someone selects a new option from the drop down list. In order to support browsers without javascript there is also a button to submit the form. This button is hidden using javascript. However, this means my button is visible for a brief pe...

Does any button in a form automatically submit? How do I disable this?

I'm trying to have a clear button inside a html form, but it appears to automatically submit. How do I work around this? I feel like I am missing something obvious. Thank you, I have a working answer ... so now I'm just curious. Is there any reason to use the button element in a form, or any reason not to? ...

Want to fire Dropdown SelectedIndexChanged Event in Javascript

I have dropdown on my page, I am changing selected value of dropdown from popup window using javascript. I have some logic in dropdown SelectedIndexChanged event, so I need to fire the SelectedIndexChanged event when dropdown selection changed from javascript. ...

Resize Window

I have a html page. I want to make sure that if I resize the window, the contents also get resized so as not to get scrolled horizontally. What can I do? ...

XSLT Insert html content

I'm trying to insert some HTML at a given point. The XML file has a content node, which inside that has actual HTML. For exmaple here is the content section of the XML: ----------------- <content> <h2>Header</h2> <p><a href="...">some link</a></p> <p><a href="...">some link1</a></p> <p><a href="...">some link2</a></p> </...

html form and negative top css values

I'm trying to position a small little search box form using CSS with a negative top value but when I do this you can no longer click in the text input box or click the button. You can still tab to the form and functionality still works. I've tried positioning the form itself, putting the form in a div and positioning that, positioning a ...

Iframe with jquery

Hi Everybody, Is it possible to change iframe scrolling attribute with jquery ? I need to change iframe css as well. When the root document load completed i'm changing the src attribute of iframe and then i'm attaching to iframe load event with jquery this part work with successfully. After that i'm trying to change some attributes ...

radio buttons disappear in ie and chrome

The below is in style sheet select,input ,td a {border:1px solid green; width:25%;height:25px;font-size:20px;margin- left:.1em;} input.myradio {border:none;width:0%;height:0%;font-size:0%;} The below is in html <td><input class="myradio" type="radio" name="poolstatus" value="Add">Add</input><td> It's perfect in firefox but chrom...

Why does Firefox put a horizontal scrollbar on my div?

I've got a very simple test case: <html> <body> <div style="border:2px solid black; overflow: auto;"> x </div> </body> </html> When I render it, I get a horizontal scrollbar: I had been using FF 3.0.3 for Linux, and thought it might be a browser bug, so I upgraded to FF 3.5b4 (the latest release candidate). Still ...

ASP.NET webpage with basic html text

I have a specific Content Page (with an existing Master Page) that pretty much just has basic text wrapped with some <p>, <ul>/<li>, <h3>, <h4>, <blockquote> tags...like a blog post. Is this ok to hardcode all of this html into my content page? Is there a better way (design-wise) to put text into an ASP.NET web page? ...

Can I determine what the default state of a checkbox was at pageload (or what value reset() reset it to.)

When an html page is loaded, different input elements can be initialed as they are declared in the HTML. If the user changes some of the input values and then executes a reset() on the form, then the form is reset to it's initial loaded state. My question is, can I determine that "initial element state was" using javascript (ideally i...

How to stop all DOM events using javascript?

I am writing a DOM inspector, something like what firebug is doing but sure very simpler "just inspect elements". What i want to do is when the user click on an element it will make some functions i wrote, and in same time i don't want this element to do any other pre attached events. Means: If the user inspected anchor element, and t...