html

ASP.NET Watermark over page

Is there a way to create a light see through watermark over an entire web page? One that stays on the screen, even if its scrolled? My thought was to create a .PNG bitmap and use a DIV tag with a style sheet that has my PNG set to the background image, as well as position absolute set. The problem is, I don't think it will scroll as my p...

JSP/Struts/JS form submission: how to modify inputted text data before submission?

Noob at javascript etc. here. I’m a php/core Java programmer tasked with maintaining a bunch of JS code in JSPs using Struts. What I need to do is simple, but I can’t figure out an easy solution. Given the following code excerpt for a struts’ed HTML form and a JS submit function, I need to modify the text field “query”’s data after the ...

HtmlTable, HtmlTableRow, HtmlTableCell - creating thead, tbody and tfoot

Hi! I'm working with c# ASP .Net, HtmlTable, HtmlTableRow, HtmlTableCell to create a table. for example... i need to have some cells to be wrapped by <tfoot> and </tfoot> i tried to do it with HtmlGenericControl to wrap these cells with the tag "tfoot" to the HtmlTable but it didn't work. i know that HtmlTableCell can have in the con...

Wrapping up Elements with JQuery

Hi Everyone, I do have a element and its content some where on the page : <div style="padding-bottom:9px; font-size:13px;line-height:25px;"> Fine quality, full grain pebble leather <br> <div style="line-height: normal; margin-bottom: 6px; "> Sophisticated black with detailed accent lining </div> Tailored satin...

AJAX & Firefox ?

I'm trying to populate a div in html via ajax. The data source is a google search for "bing sucks" I call the method with loadXMLDoc('http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=Bing%20sucks') It works in InternetExplorer, but it doesn't work with Firefox/Chrome. If I load just a file from the local domain (test....

HTML form method with nice URL

I just want to know whether there is a way to answer this question with "Yes" without using JavaScript. What I want to do is have a search form that automatically generates URLs like http://example.com/search/my+search+term or something similar when I enter my search term into a search text field. EDIT: Due to some mis-understanding (a...

Limitations and future of HTML+JavaScript for web applications

I am a non-web programmer, but I am getting now more interested in web technologies. I know that HTML and JavaScript are today the fundamental technologies for web applications, but it also seems that actually they were not created strictly for that. (HTML was created for web pages, JavaScript to make them a bit dynamic). Does it have a...

Semantic Markup and Forms

Currently, my form looks like this: <label for="comment">Comment:</label> <textarea name="comment" id="comment" rows="6" cols="20"></textarea><br /> <label for="checker">Check the box:</label> <input type="checkbox" name="checker" id="checker" value="ON" /> Should these then be converted to <dt>/<dd> since they're somewhat definition...

How do you validate password protected sites with w3c?

Like the title says, I have an online app that I am wanting to validate, but users need to log in first to access them. How do I go about validating this? Thanks! Joel ...

Show hidden div with bookmarks

Basically I hide all of the answer divs on the page, but I want to show a div if the a user has clicked a bookmarked link to it. Here's the javascript code <script type="text/javascript"> $(document).ready(function(){ //hide the all of the element with class msg_body $(".faq_answer").hide(); //toggle the com...

Jquery menu and slideshow don't play together nicely.

I am using the superfish menu and also a jquery slideshow on the same page. For some reason they aren't playing together nicely, I have no idea why. If you mouse over the links at the top there should be a fade effect for the sub menu items. I've uploaded a file so you can see how the menu doesn't work. http://www.wilwaldon.com/jqu...

Dynamic Columns in CSS

I have dynamic elements that I would like to flow downward and fill over multiple columns (like in Word, for example) rather than float left or right or stack in the typical manner. Are there any functions of CSS that make this possible? If not, what course of action can I take here? ...

Storing HTML in datastore and Decoding during XSL transformation

I'm trying to store html object tags for video players in a datastore. This data will be serialized and passed back to client javascript where it will be transformed and displayed in the browser to show the video. I need to be able to htmlDecode the data so that it is evaluated properly in the browser. Any ideas how to accomplish th...

How can I link to a page and have the page auto-refresh when the user gets to it?

After users register for my site, I want to link them to my homepage and then I need that page to refresh. Anyone know how to do that via the link? (Not by adding code to the homepage.) ...

Unobtrusive, self-hosted comments function to put onto existing web pages

I am building a new site which will consist of a mix of dynamic and static pages. I would like to add commenting functionality to those pages with as little work as possible. I'm curious as to whether such a solution exists in PHP. The ideal set of features would be: Completely independent from the surrounding page / site: PHP code g...

How to read javascript event programatically

Imagine you have a button like this: <input name="myButton" type="button" value="button" onclick="return test();" > where the test functions is as follows: function test(){ // do something return true; // based on some logic return boolean } Now let's say,I don't know what is set for the onclick event, and at runtime I need to ...

Modifying the contents of a page based on a "select" element

I currently have a page that allows a user to enter different types of database entries via a select("questions" for a survey), i.e. Multiple Choice, Text, Drop-down, etc. Each one atleast contains a textarea and 2 input type="text"s. Right now this is done by having 4 divs in the HTML, 3 of which are hidden via CSS ("display:none"). Th...

Git-diff to HTML

Hi, I'm looking for a way to produce HTML files from a git-diff output, preferably using python. I've been looking at http://docs.python.org/library/difflib.html without being able to figure out how to use the git-diff output as an input. Any clue? Many thanks ...

dynamic image resizing

i want to change img size to 200x150 using tag. please help. ...

disabling a javascript script when loaded on a smart phone

I am using the following HTML fragment to load a different stylesheet for smartphones: media="only screen and (min-device-width: 4801x)" media="only screen and (max-device-width: 480px)" I would like to disable a certain javascript script for smartphone users as well. Is that possible? I don't think i can do: <script media="only scre...