DOM should provide an method to look up field name easily.
Then, it will be helpful when do scripting for required field, spell check.
Read more at www.faqts.com/knowledge...
DOM should provide an method to look up field name easily.
Then, it will be helpful when do scripting for required field, spell check.
Read more at www.faqts.com/knowledge...
Finally, I got the diff tool which met my need. It can compare two files side by side. For those lines with difference, it can highlight the word difference and lists top/bottom panels.
Previously, I downloaded a copy of WinMerge from www.download.com. That was so out-of-date.
Read more at winmerge.sourceforge.ne...
If 3D APIs are implemented in canvas, then you will see how easy to draw image. Anyway, SVG should have advantage of event handling.
Read more at fuchsia-design.com/Canv...
I am looking a js canvas lib to do bar chart and pie chart with nice 3d effect.
Read more at apples-to-oranges.com/b...
Guss what the result is here? It's 0.
var fooArray = new Array();
fooArray["a"]="a";
fooArray["b"]="b";
fooArray["c"]="c";
alert(fooArray.length);
1, input name="pictures" accept="image/*" type="file"Just try the file type filter as acccept attribute. None of above works on IE6 and Firefox.
2, input name="pictures" accept="image/gif,image/jpg" type="file"
3, input name="pictures" accept="*.gif,*.jpg" type="file"
This is the problem I just conquer in the Firefox.
For example, I have some space symbols in the textarea.
<TEXTAREA> abc</TEXTAREA>
1, <TEXTAREA onclick="this.innerHTML"> abc</TEXTAREA>
I got "  abc".
2,
<TEXTAREA onclick="this.value"> abc</TEXTAREA>
I got " abc".
Just tried Yahoo photo mail. I don't have any particular point for the
mail composer, but I really don't like the character verification.
I don't really get the point why yahoo need character verification. If
Yahoo has done the right authentication, why bother need to have
character verification. By the way, some of characters are hard to read.
Just feel it's inconvenient.
Just installed Google Earth. Unfortunately, my video card in the dell
server does not meet the minimum requirement.
On my way to work, 20 miles, 6 deers laid on the highway. Some of them
were there few days.
We have such great outdoors environment in here and we enjoy the
convenience of express way. Unfortunately, not good for wildlife.
In my community, the mother deer just has a little deer this year. I
hope those two one-year deers with this mother deer prior year don't
make any journey to human road.
Browser shortcut key is convenient for your most visit sites.
In FireFox, I have set up "yahoo" for http://mail.yahoo.com.
I try to find the similar feature in the IE. In the favorite property
dialog, I find Shortcut Key in the Web Document tab. But, it say "None"
and I can't change it at all. What's wrong in here? How do I set it up?
When I start AOL browser, I notice three more service running in window
task manager.
One AOLHostMonager.exe, two AOLServiceHost.exe. They takes some space,
and only one AOLServiceHost.exe goes away when AOL browser is closed. I
really don't like it.
Two days ago outside my window, I saw a ground hog cross street and
hidden under a tree near by road. I saw that ground hog yesterday, but
not today. The local traffic is so busy, I hope she move to safe territory.
I just installed thunderbird, then imported mail from NS 7.2.
I could see some folders and mails.
Unfortunately, when I opened it again, I only saw few folders, no mail.
I uninstalled it and reinstalled it again, but I just couldn't see the
import tool again.
I searched web. There were few sites telling people how to configure
profile manually.
It just got me crazy. Back to NS 7.2 again. Sigh! Well, At least, I
still can receive Netscape web mail.
Head one | Body one | Head two | Body two |
---|
I can use javascript to control BODY style like
document.body.style.fontFamily = fooFont;
document.body.style.fontSize = fooSize;
How about for HTML tag?
You may question me what's for and what's the point since all html tags
are inside BODY?
I am working on HTML editor.
In Firefox, I turn on designMode inside IFRAME. I click a brand new
document, then Firefox tells me I am clicking HTML tag, not BODY tag.
In Firefox, I can get a node color in javascript like
window.getComputedStyle(node,null).getPropertyValue("color")
Then, I get rgb(0,%200,%200) for black and rgb(255,%200,%200) for red.
I try to convert them back to hex code, but what does "%200" mean?
Line two : 50% opacity in TD. |
Since Mozilla can't render vertical alignment correctly (Bugzilla Bug 276766) .
Then, I come out this solution.
------------------
A IMG {border-width:0px; vertical-align:-1px;}
-----------------
Unfortunately, this cause more truoble for IE 6.
1, The inline align doesn't work.
<A HREF=# ..><IMG align="left"></A>
2, Table cell height can't be control any more.
<TD><A HREF=# ..><IMG xxx></A></TD>
In Safari 1.3, I try to turn iframe designMode="on".
I can type in something, copy/paste, and turn text bold by ctrl+b, but nothing happen when I try to use execCommand() to apply bold font.
Not sure what's going wrong, but I doubt either document or TextRange object not same as IE/Mozilla.
So far, the available resource is very limited. I see few people raise this question in Dave Hyatt blog, but no one have answer yet.
Event, Apple doesn't provide any sample.
Not sure is good idea to implement HTML editor for Safari 1.3.
Safari 1.3 is Apple a big step, but still have a lot of things need to improve.
Before I updated to OS 10.3.9, I duplicated Safari, and I renamed the
duplicated one as Safari 1.2.4.
After I updated to 10.3.9, I found that duplicated one became 1.3, so I
renamed them properly.
I got one called "Safari 1.2.4", the other "Safari 1.3".
Then, I checked both user agent.
Safari 1.24 : Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en)
AppleWebKit/312.1 (KHTML, like Gecko) Safari/125.12
Safari 1.3 : Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en)
AppleWebKit/312.1 (KHTML, like Gecko) Safari/312
I am wondering that Safari 1.24 is really 1.2.4 or not.
I have a piece of JS code to expand iframe size, then scroll bar disappears.
//sample iframe code for ccExpandIFrame
//<IFRAME SRC="foo.html" NAME="dynamicFrame" marginHeight="0" marginWidth="0" width="100%" //FRAMEBORDER="no" SCROLLING="yes" onLoad="ccExpandIframe(this)">
//</IFRAME>
function ccExpandIframe(fooFrame) { // only good for page in the same domain name.
location.hash="#";
var fooWin = eval("window." + fooFrame.name);
if (document.getElementById) {
try {
//if (location.hostname == fooWin.location.hostname) {
var fooBody = fooWin.document.body;
var fooHeight=fooBody.scrollHeight + fooBody.offsetHeight - fooBody.clientHeight;
var fooWidth=fooBody.scrollWidth + fooBody.offsetWidth - fooBody.clientWidth;
fooFrame.style.height = fooHeight;
fooFrame.style.width = fooWidth;
fooFrame.style.borderStyle="none";
if (document.all) {
fooBody.scroll="no";
fooFrame.frameBorder=0;
}
//}
} catch (e) {}
}
}
But my problem is when I try to include other site into iframe, permission denied is triggered. Once cross domain, the other domain window object can't be accessed.
The only way I can access is IFRAME object. Still need to find out a way when IFRAME showing scroll bar, but it's pretty much dead end.
I really try to reduce tables in my html page; especially, nesting tables.
But, when I try to implement it, there are a lot of challenge, like
browser bugs or no way to do that.
For example, I have a simple table layout like that :
.............
Name : | Alex |
Phone : | 555 1234 |
I would like to find out what is the equivalent html code for the above
sample. Remember, this layout can be in the middle of page or end of page.