Berkeley CSUA MOTD:Entry 22045
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/10 [General] UID:1000 Activity:popular
7/10    

2001/8/8 [Computer/SW/Languages/JavaScript, Computer/SW/WWW/Browsers] UID:22045 Activity:high
8/7     Is there a way to add elements to a form with javascript?
        (eg, I click a button and a textbox appears.)  Thanks.
        \_ You can use css to set textbox so it doesn't appear on the
           browser (couple ways to do this), and then use javascript
           to toggle.
        \_ yes, with DHTML.  You do something like <SPAN ID="foo"></SPAN> and
           then dynamically set the contents of it to be whatever you want
           with document.all["foo"].innerHTML = "bar";
           you will have some problems getting this to work across different
           browsers, though, since IE and Netscape have a different object
           model for all this DHTML stuff.
           \_ This won't work in Netscape for two reasons. As you point out
              document.all["foo"] (foo is an id) is IE specific code.
              On top of that, Netscape 4 (may be fixed in 6) won't reflow
              a page, so you can't dynamically modify the content of
              span/div elements.
              If you need cross-browser compatibility, I think your best
              bet is what the first poster suggested -- create all the
              elements you want statically and use css to toggle them
              visible/hidden.
              \_ if you really care about cross-browser compatibility, you
                 wouldn't be doing anything dynamic in the first place.
        \_ Don't do it on a production page.  It's bad from usability
           standpoint.
2025/07/10 [General] UID:1000 Activity:popular
7/10    

You may also be interested in these entries...
2010/8/8-9/7 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Web] UID:53914 Activity:nil
8/8     Trying to make a list of interesting features languages have
        touted as this whole PL field comes around, trying to see if they
        have basis in the culture of the time: feel free to add some/dispute
        1970 C, "portability"
        1980 C++, classes, oop, iterators, streams, functors, templates
             expert systems
	...
2009/9/28-10/8 [Computer/SW/Languages/C_Cplusplus] UID:53409 Activity:nil
9/28    http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
        Java is #1!!! Followed by C, PHP, C++, Visual Basic, Perl,
        C#, Python, Javascript, then finally Ruby. The good news is
        Pascal is going waaaay back up!
        \_ C is still more popular than C++?  I feel much better about myself
           now.
	...
2009/8/3-11 [Computer/SW/Languages/Web] UID:53231 Activity:moderate
8/1     Where's the place people go for free webspace these days?  Helping
        my sis's  kid learn how to set up html/php/some minor javascript.
        \_ not geocities:
           http://help.yahoo.com/l/us/yahoo/geocities/close/close-07.html
        \_ why are there 2987394872 places offering free blog space but
           not alot offering free webspace like before.
	...
2009/7/21-24 [Computer/SW/Languages/Java] UID:53168 Activity:moderate
7/20    For those who care btw, it looks like eclipse is now A Standard Tool
        at UCB ugrad cs, probably replaced emacs.  Furthermore, people get
        angry at seeing Makefiles, (since eclispe takes care of that).  I
        guess it's just a sign of the times.
        \_ The more people at my work use eclipse the less the code is
           managable in emacs.  I'm not sure which application's fault
	...
2009/6/30-7/15 [Computer/SW/Languages/JavaScript] UID:53098 Activity:nil
6/30    Javascript, I love you:
        var b = new Boolean(false);
        b;        // false
        !b;       // ALSO false
        !b == b;  // But this is true!
        !!b == !b // Negate both sides and it's false again. FUCK.
	...
2008/9/22-24 [Science/Electric, Computer/Companies/Google, Computer/SW/Editors/Vi] UID:51263 Activity:kinda low
9/22    Gmail's "conversation feature" drives me nuts! Is there a way to
        disable that and make Gmail act like every other e-mail client on the
        planet? WTF thought this was a nice thing to have on by default?
        \_ Umm, why don't you just use another email service then...
           \_ Umm, I do, which is how I have something to compare to. I get
              mail in at least 4 places only one of which is Gmail. I
	...
2008/6/17-20 [Computer/SW/WWW/Browsers] UID:50275 Activity:kinda low 57%like:50273
6/16    Firefox 3 coming out tomorrow.
        http://news.yahoo.com/s/nf/20080612/bs_nf/60269
        Memory usage - Firefox 3 Beta vs. Firefox 2 vs. IE 7:
        http://blog.pavlov.net/2008/03/11/firefox-3-memory-usage
        \_ There's a rule that says NEVER BE THE FIRST TO TRY IT.
           I'm going to let Firefox3 version 1 hammer out bugs first.
	...
2008/3/4-7 [Computer/SW/Virus] UID:49325 Activity:kinda low
3/4     Hi, what's the best free anti-virus software for XP?  What about
        anti-spyware?  Currently I'm using Active Virus Shield and Spybot.
        Thanks.
        \_ I've used: avg, spybot s&d, adaware, trend micro's housecall.
           \_ Does Spybot S&D protect Firefox?  It soulds like the injection
              feature only supports IE.
	...
2008/3/5-7 [Computer/Companies/Google] UID:49346 Activity:kinda low
3/5     How does Google Map widget work? Is it a flash program or a
        pure Javascript program? When you include a Google Map on your
        home page, how does it talk to the <DEAD>maps.google.com<DEAD> server?
        I thought cross domain is not possible.
        \_ Pure JavaScript.  It uses an <iframe> to avoid cross-domain issues.
           \_ You mean the thing that scrolls/moves around is an
	...
2008/2/7-11 [Computer/SW/Languages] UID:49084 Activity:low
2/7     Hi I'd like to learn Flash. I have no UI experience but I just want to
        learn for the sake for curiosity. I just want to create something that
        is interactive and fun, and don't care about scalability/extensibility/
        reliability/efficiency/blah-blah. What language is Flash most similar
        to and how easy/difficult is it to get started (e.g. "hello world")?
        -kchang
	...
2009/6/1-3 [Computer/HW/CPU] UID:53068 Activity:high
5/31    History of winners and losers by *popularity*:
        VHS > Beta Max
        USB2 > Firewire
        x86 > PowerPC > Everything Else > DEC Alpha > Itanium
        BlueRay > HDDvd
        \_ It's too early to tell RE: "Blue"Ray. They may both turn out to be
	...
2008/4/3-9 [Computer/Companies/Google] UID:49657 Activity:low
4/3     Google to lay off 1/4 of its DoubleClick employees. Still
        holding on Google from $600-700? Bahahahaha     -short G guy
        \_ Why are you still happy?  GOOG has stopped dropping in the past
           couple of weeks and I'm not happy.
        \_ How's that short at 100/200/300/400 working out?
           \- stock prices usually go up in the short term after
	...
2008/4/3-9 [Computer/Companies/Google] UID:49659 Activity:low
4/3     So, hates google guy, which search engine do you use?
        \_ Google for search, Yahoo for news/maps/weather/subject-lookup/mail/
           etc.  -- one of the hate-google guys
        \_ Google for non-news search, Yahoo for news, news search, maps,
           weather, subject lookup, mail, etc.  -- sour grape guy
           \_ I am similar, although I usually try Yahoo! first before
	...
2008/3/13-17 [Computer/SW/WWW/Browsers] UID:49451 Activity:moderate
3/13    Firefox 3 Beta 4:  Fast, cleans up memory good on minimize, stable,
        can install alongside FireFox 2.x
        Cons:  Extensions don't work and need to install beta versions, rich
        urlbar is nasty but as of today you can install oldbar extension
        Ah-nold would say:  Fuckin' fan-tah-stik!
        \_ Does it use less memory than 2.x when not minimized?  Long ago Fx
	...
2007/11/1-6 [Recreation/Computer/Games, Industry/Startup] UID:48515 Activity:high
11/1    Intelligient writeup of Google's OpenSocial platform by Marc
        Andreesen: http://blog.pmarca.com/2007/10/open-social-a-n.html
        I got a chance to start working with OpenSocial before the public
        release as part of my job at Slide, and it's been a pleasure to work
        with.  If you're looking for an interesting new platform to hack on,
        I'd suggest giving OpenSocial a look.  Incidentally, Slide is hiring.
	...
2007/4/13-16 [Computer/SW/WWW/Browsers] UID:46291 Activity:nil
4/13    I use IE7 to browse a web site, and the server says the UserAgent
        string is
        "UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET
        CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"
        Is MS bowing to the Mozilla community?
        \_ What are you talking about?  IE has always reported its UserAgent
	...
2005/9/12-14 [Computer/SW/WWW/Browsers] UID:39637 Activity:low
9/12    Can someone please post that one liner to run Firefox with low priority
        again?  I promise to write it down so the Sodalites can continue to wax
        poeticon politics and wipe out other posts.
        \_ http://csua.com
        \_ http://csua.com/?entry=39627
        \_ Poeticons!
	...
2005/9/1-2 [Computer/Companies/Yahoo] UID:39417 Activity:nil
9/1     I hate Yahoo. After being pushed persistently by their GUI to
        upgrade to YM7, and answering questions that ask me if I'm SURE
        that I don't want to install their tool bar and use their site
        as the default search engine, YM7 installer still installed a
        stupid Yahoo toolbar. Yahoo is getting more and more annoying
        like AOL and Netscape used to be. I hate Yahoo, I'll never
	...
2005/8/31 [Computer/SW/Unix] UID:39387 Activity:nil
8/31    Do any legitimate user-agents make HTTP requests without
        an HTTP  Host:  header these days?
        \_ Not since Netscape 1.1.  -tom
           \_ What about search engine spiders?
              \_ They don't if they want to index correctly.
           \_ Thanks. When GoogleBot makes requests with HTTP/1.0
	...
2005/5/12-13 [Computer/SW/WWW/Browsers] UID:37647 Activity:nil 66%like:37643
5/11    Firefox 1.0.4 out.
        http://www.mozilla.org/products/firefox/releases/1.0.4.html
        \_ Sigh, it's looking more like IE -- non-stop never ending updates to
        \_ Sigh, it's looking more like IE -- non-stop never-ending updates to
           fix security holes.
           \_ do you actually use IE?
	...
2005/4/30-5/3 [Computer/SW/WWW/Browsers] UID:37434 Activity:moderate
4/30    In Outlook Express I get an error message everytime I check my
        CSUA account, although I still get my mail.  I am using POP port 995
        with SSL.  Is there a way I can prevent this message, it's annoying:
        "The server you are connected to is using a security certificate that
        could not be verified.  A certificate chain processed, but terminated
        in a root certificate which is not trusted by the trust provider.  Do
	...