Displaying keyword search results 1 - 8
Created by James on April 04, 2011 19:41:51 Last update: April 04, 2011 19:41:51
Use the nodeName attribute to get the name of the HTML tag, tagName is not recommended .
<!DOCTYPE html> <html> <head> <title>jQu...
Created by James on July 19, 2009 20:51:23 Last update: January 11, 2011 20:14:18
If CSS3 border-image is properly supported, making a rounded corner box is very easy. You just need a round corner image like this: The following markup:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...would render like this (try it in Firefox 3.5 and Google Chrome): However, IE as of version 8.0 does not support border-image . So until border-image is reliably supported in all major browsers, we still have to rely on tried and true tricks to make it work. In general, I found three general categories of tricks to make rounded corners: Good old tables. This trick creates a table of 9 cells and uses the 8 cells on the perimeter to render the borders and rounded corners. The central cell is used for...
Created by James on June 24, 2010 22:04:19 Last update: June 24, 2010 22:04:19
Start with this page:
<!DOCTYPE html> <html> <head> <title>jQu...When you click "Submit", the form submits fine. Now turn the form to a jQuery dialog:
<head> <title>jQuery UI Dialog</title> ...When you click "Submit", the form no longer submits! Why? When you convert the contents of the form into a dialog, the form becomes empty! The "Submit" button is no longer associated with the form. Conclusion: you should always put the form tag inside the element you are converting to a dialog.
Created by Fang on April 01, 2010 22:24:58 Last update: April 02, 2010 02:49:38
In this note I'll show you how to create and package a JSP custom tag. The purpose of this tag is to display a random splash image for a home page, among a set of images. We should be able to add or delete candidate splash images from the WAR archive without the need to change the JSP. This is the intended use of the tag:
<%@ taglib uri="http://custom.tag.com/demo" prefix...In the above example you provide a set of images named splash*.png (e.g., splash1.png, spalsh2.png, ...), and the tag will pick a random one to display when the JSP is rendered. Let's get started. I'll use Maven for this purpose. Create the standard Maven directory structure
./pom.xml ./src ./src/main ./src/main/jav...pom.xml
package tagdemo; import java.util.ArrayList......
Created by Dr. Xi on November 18, 2009 22:53:33 Last update: November 18, 2009 22:56:17
Created by Dr. Xi on January 29, 2009 21:33:44 Last update: January 30, 2009 17:43:33
You can use applet , object , or embed tags to embed an applet in your HTML page. However, The applet tag is interpreted by both IE and Mozilla family of browsers. The applet tag won't automatically download a JRE if the Java Plug-in isn't already installed. The object tag works only for IE The embed tag works only for Mozilla family of browsers, i.e., Firefox. Use applet tag:
<applet code="MyApplet.class" width="200" ...Use object tag:
<!-- latest JRE --> <OBJECT classid="clsid:...Use embed tag:
<!-- highest JRE that supports MIME type ...Mixed object and embed tag:
<object classid="clsid:8AD9C840-044E-11D1-B3E9...You need to use a different name for the Mozilla embed tag and use that name to refer to the applet...
Created by Dr. Xi on April 22, 2007 21:58:45 Last update: January 19, 2009 20:26:12
Your code will be syntax highlighted when you specify the language of your code with the BBcode code tag:
[code=lang] Your code here [/code]where "lang" is the language of your code. For example, the following Perl code
#!/usr/bin/perl print "Hello World!\n";is rendered with:
[code=perl] #!/usr/bin/perl print "Hel...The following are supported languages and their corresponding names for BBcode:
Apache conf: apacheconf, aconf, apache Bash...The full list is available from http://pygments.org/ , which is our backend engine for syntax highlight rendering.
Created by Dr. Xi on November 28, 2007 20:20:44 Last update: November 28, 2007 20:20:44
<html> <body> <script language="JavaScri...However, this only works in IE, not Firefox. In Firefox, you have to use window.onload = myHandler .
// This only works for IE document.body.onl...