Re: [css-d] Changes how (some) browsers handle the a:visited pseudo-class
On Sun, Apr 11, 2010 at 05:13:44PM -0400, Bob Rosenberg wrote: Also IMO the feature should be OFF unless the user SPECIFICALLY activates it (not set to ON requiring the user to turn it off to cripple it). IOW: If you want to have the Browser play Net Nanny then require the user to give permission not do it behind the user's back until the browser is told to stop messing with the page/code and display it as supplied. And I disagree entirely. Especially for something so minor as the ability to make visited links look nothing at all like unvisited links[1], software should be secure by default and require users to deliberately choose to enable less secure modes of operation, not the other way around. [1] The changes described still allow you to visually distinguish visited vs. unvisited links, provided that they still look basically the same. I don't see losing the ability to shrink visited links to a microscopic font or replace their backgrounds with biohazard warnings to be any big loss. Certainly not a big enough loss to warrant knowingly choosing a default behavior which is known to put users' privacy at risk. -- Dave Sherohman __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] CSS Object class not working on IE
Hi Thierry I'm trying to move an swf to the center of the page: www.watercolourcourses.com Thanks - Original Message - From: Thierry Koblentz thierry.koble...@gmail.com To: 'Ed Goodson' e...@copywritecolombia.com; css-d@lists.css-discuss.org Sent: Sunday, April 11, 2010 10:15 PM Subject: RE: [css-d] CSS Object class not working on IE This css code in my external .css works to put padding on a flash object tag in FF but nada in IE: object { padding-left:30px; } Normally I'd use another way around this but for various reasons this is my preferred solution Why is this not working in IE? Thanks I'm curious to know why you use padding on a object. What's the expectation? Because I don't think padding should change the rendering of the element. And what is the other way around you mention? Do you have a URL we can check? -- Regards, Thierry www.tjkdesign.com | articles and tutorials www.ez-css.org | ultra light CSS framework __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] IE6 float bug
On 4/11/10 3:15 PM, Peter Bradley wrote: I have an example site that I've developed for a course I'm doing. There are no serious problems with it except in IE6; of which there is just one that I can't remember how to fix. Here's one of the pages affected: http://www.peredur.net/tt280/pb88_ph.htm On opening the page, the right sidebar is mis-positioned; but it jumps back into the correct place if I hover over a link in the main-nav navigation bar. I seem to remember that there is an easy fix for this in CSS, but I can't for the life of me find my notes. Can anyone, please, remind me as to what I have to do? I believe your wrapper needs a layout, so David's suggestion should work as it sets a width on #wrapper. Did you try that fix? Also, I'd wrap the main content in another DIV and style that one with overflow:hidden and zoom:1 to create a new block formatting context to escape the left float. -- Regards, Thierry www.tjkdesign.com | articles and tutorials www.ez-css.org | ultra light CSS framework __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] CSS Object class not working on IE
I'm trying to move an swf to the center of the page: www.watercolourcourses.com That object is in a paragraph, so style that P like this: .someID { width: 425px; margin-left: auto; margin-right: auto; } That should do it -- Regards, Thierry www.tjkdesign.com | articles and tutorials www.ez-css.org | ultra light CSS framework __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] Re the non-secure login code...
Three good people have now requested and received copies of the code we're using for a simple login page. I have no problem sharing it, but if, bottom line, I am being helpful or if I'm luring folks into flawed practice. If one of the sage veterans on this list would care to review what we're using, I'd be glad to send it to her/him. Chuck M __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] validation with no warnings
Hi, I am pleased that I managed to get this site done without asking the list for help! I did however post about doctype at the start and still didn't find the right answer. http://wch.redrunner.co.uk/ The index page just has one warning, the others have 3. I don't really get HTML and CSS briefs anymore (Drupal, Joomla) but if I do this is how I code. I'd love it if someone could tell me what doctype and UTF setting suits my style so that I can just strike that from my list. Link to an example or cut and paste the code into here would be great. Thanks, Chris __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] validation with no warnings
--- On Mon, 4/12/10, Chris Blake ch...@3pointdesign.com wrote: http://wch.redrunner.co.uk/ The index page just has one warning, the others have 3. I'd love it if someone could tell me what doctype and UTF setting suits my style so that I can just strike that from my list. Hi Chris, Your home page only has a single warning, which relates to the line-break in your doctype declaration. Instead of: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/ html4/strict.dtd write: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; or: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; Your other pages are simply missing a content-type declaration; why not use the same one as your home page: meta http-equiv=Content-Type content=text/html; charset=UTF-8 FWIW, I use HTML4/strict (because I see no point in using XHTML since it's not supported properly by IE, but I still want everything to be as strictly defined as possible) and UTF-8 (for non-ASCII support, although I normally use character entities anyway). - Bobby __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] validation with no warnings
http://wch.redrunner.co.uk/ The index page just has one warning, the others have 3. I'd love it if someone could tell me what doctype and UTF setting suits my style so that I can just strike that from my list. Hi Chris, Your home page only has a single warning, which relates to the line- break in your doctype declaration. Instead of: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/ html4/strict.dtd write: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd or: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; Your other pages are simply missing a content-type declaration; why not use the same one as your home page: meta http-equiv=Content-Type content=text/html; charset=UTF-8 FWIW, I use HTML4/strict (because I see no point in using XHTML since it's not supported properly by IE, but I still want everything to be as strictly defined as possible) and UTF-8 (for non-ASCII support, although I normally use character entities anyway). - Bobby Hi, OK thanks, I have changed all the pages now, but it seems as though I have to go through and change all the apostrophes, copyright symbols to HTML in order to pass. Home page has no warnings!! Excellent, thanks! Cheers, CB __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] validation with no warnings SOLVED
Hi, Thanks to everyone that replied. I have no figured out that HTML4/ Strict works for me and UTF8 is good too. I also learnt to change the preferences in my editor so that 'default file encodings' was 'Unicode UTF8' rather than automatic, which means that I do not need to use odd HTML characters for things like apostrophes (the keyboard one works just fine). Excellent news, I am so happy and feel that I understand it a bit better now. Cheers again, CB On 12/04/2010, at 11:22 PM, Chris Blake wrote: http://wch.redrunner.co.uk/ The index page just has one warning, the others have 3. I'd love it if someone could tell me what doctype and UTF setting suits my style so that I can just strike that from my list. Hi Chris, Your home page only has a single warning, which relates to the line- break in your doctype declaration. Instead of: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/ html4/strict.dtd write: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd or: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; Your other pages are simply missing a content-type declaration; why not use the same one as your home page: meta http-equiv=Content-Type content=text/html; charset=UTF-8 FWIW, I use HTML4/strict (because I see no point in using XHTML since it's not supported properly by IE, but I still want everything to be as strictly defined as possible) and UTF-8 (for non-ASCII support, although I normally use character entities anyway). - Bobby Hi, OK thanks, I have changed all the pages now, but it seems as though I have to go through and change all the apostrophes, copyright symbols to HTML in order to pass. Home page has no warnings!! Excellent, thanks! Cheers, CB __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Re the non-secure login code...
On Apr 12, 2010, at 11:08 AM, Reese wrote: I'd be happy to take a look, I'm always on the lookout for good login scripts and I'd be happy to provide any feedback I can. Here's what I've been sending out. After making the offer, it occurred that it's been so long since I started using the code I wasn't sure I could accurately help anyone else start using it. But it looks pretty basic. Do one thing, though. Make sure you try it on duplicates or non-essential files. (Of course, you would have done that anyway.) ONE*** This goes in the head section of the html page: script src=login.js type=text/javascript/script TWO*** Then this form goes in the body section. You decide the content to include other than the form fields. form name=login id=login center table width=760 border=0 cellspacing=25px cellpadding=5px trtd colspan=2a href=../index.htmlimg src=m.png alt=M name amp; logo width=750 height=87 align=top title=Return to Home //a /td /tr trtd colspan=2img src=o.png alt=Account Login at O /nbsp;br / /td/tr tr bgcolor=#154212th colspan=2Enter Your Private Websitebr / span class=style1Please type your Username and Password, then click Login mdash; Not Return/span/th/tr trthspan class=style2nbsp; br / Username:/span/th thspan class=style2nbsp; br / Password:/span/th/tr trthdiv align=centerinput type=text name=username //div/th thdiv align=centerinput type=text name=password //div/th/tr trth colspan=2 input type=button value=Login! onClick=Login() / /th/tr /table /center /form THREE*** The you create the login.js file from the following code. We have 13 different logins leading to thirteen different pages. Each one needs just 3 pieces of info: username, password and the page linked to. Chuck M Begin function Login(){ var done=0; var username=document.login.username.value; username=username.toLowerCase(); var password=document.login.password.value; password=password.toLowerCase(); if (username== password==b) { window.location=pagename.html; done=1; } if (username==c password==d) { window.location=pagename2.html; done=1; } if (done==0) { alert(Invalid login!); } } // End __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Re the non-secure login code...
Just one comment (for now !) -- Shouldn't input type=text be input type=password ? Otherwise the user's password will remain visible on-screen. Philip Taylor __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] IE6 float bug
David Laakso wrote: IE/6.0 does not support min/max width or height and trips/bounces on the percent margins on the wrapper. * html #wrapper { width:975px; margin: 0 auto; } * html #left-nav { height:85ex; } Best, ~d Thanks, David. It was the * html nonsense I'd forgotten. All working now. Cheers Peter __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] IE6 float bug
David Hucklesby wrote: Usually, adding an extra wrapper element inside your outer #wrapper with a 'width: 100%;' declaration on it helps IE compute the sidebar width correctly first time around. The jumping comes from a recalculation once IE has figured out 25% of the actual width of #wrapper. Not tested, but this usually works for me. Cordially, David -- Thanks, David. Yes I can see how that would work. I fixed it with David Laakso's suggestion, but I'll remember yours for next time. Thanks Cheers Peter __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] IE6 float bug
Thierry Koblentz wrote: I believe your wrapper needs a layout, so David's suggestion should work as it sets a width on #wrapper. Did you try that fix? Depending on which David you mean... I got it going with David Laakso's suggestion. Also, I'd wrap the main content in another DIV and style that one with overflow:hidden and zoom:1 to create a new block formatting context to escape the left float. That's very useful. Thanks. I can see where that could be needed. Thanks for the suggestion. Cheers Peter __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Re the non-secure login code...
I'd be happy to take a look, I'm always on the lookout for good login scripts and I'd be happy to provide any feedback I can. ONE*** This goes in the head section of the html page: script src=login.js type=text/javascript/script TWO*** Then this form goes in the body section. You decide the content to include other than the form fields. form name=login id=login ... input type=button value=Login! onClick=Login() / THREE*** The you create the login.js file from the following code. We have 13 different logins leading to thirteen different pages. Each one needs just 3 pieces of info: username, password and the page linked to. This is not an appropriate topic for a CSS list. This presentational markup desperately begs to be stripped bare and replaced with nice clean semantic markup and a stylesheet. Any form functionality that depends on JavaScript cannot be secure. Write your security logic in a server-side script, then use JavaScript if you want to enhance the user experience, but asking JavaScript to be your gate-keeper is asking a narcoleptic to be your nightwatchman. Including JavaScript calls in markup is so '90s old-school it's amazes me that people still code this way. Google separation of development layers and progressive enhancement, please. Croggled, Paul __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Re the non-secure login code...
At 4/12/2010 09:56 AM, Philip TAYLOR wrote: Shouldn't input type=text be input type=password ? Otherwise the user's password will remain visible on-screen. FYI I was interested recently to read some push-back against the age-old assumption that password input should be obfuscated: Jakob Nielsen's Alertbox, June 23, 2009: Stop Password Masking Summary: Usability suffers when users type in passwords and the only feedback they get is a row of bullets. Typically, masking passwords doesn't even increase security, but it does cost you business due to login failures. http://www.useit.com/alertbox/passwords.html [I think this part of the discussion properly belongs over on WSG or Webdesign-L...] Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] How to handle cached styles...
Hi all, I wanted to get some collective input on how you all handle updating styles that are cached. Many times on large projects I'm involved with we end up using query strings ?v=04-12-2010 to force new styles to show. I'm not a big fan of it... _clint -- iron sharpens iron __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] How to handle cached styles...
Hi all, I wanted to get some collective input on how you all handle updating styles that are cached. Double clicking the refresh button will usually do the trick. There's also private browsing mode, which will keep things from caching. ---Tim __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] How to handle cached styles...
I use safari and it pretty much does a hard refresh every time. Sometimes with firefox i hold the shift key whilst refreshing. On 13/04/2010, at 3:02 AM, Climis, Tim wrote: Hi all, I wanted to get some collective input on how you all handle updating styles that are cached. Double clicking the refresh button will usually do the trick. There's also private browsing mode, which will keep things from caching. ---Tim __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] How to handle cached styles...
On Mon, Apr 12, 2010 at 12:11 PM, Chris Blake ch...@3pointdesign.comwrote: I use safari and it pretty much does a hard refresh every time. Sometimes with firefox i hold the shift key whilst refreshing. On 13/04/2010, at 3:02 AM, Climis, Tim wrote Double clicking the refresh button will usually do the trick. There's also private browsing mode, which will keep things from caching. ---Tim Right, I'm speaking more for the site users, how they can get updated styles with as minimal disturbance as possible. Eg, a site visitor doesn't know necessarily when you have pushed some css for design changes. It will look broken for them. -- iron sharpens iron __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] How to handle cached styles...
Right, I'm speaking more for the site users, how they can get updated styles with as minimal disturbance as possible. Eg, a site visitor doesn't know necessarily when you have pushed some css for design changes. It will look broken for them. Oh. That's a far more interesting problem that I don't have a solution for, but I'd also be interested in learning one... ---Tim __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] How to handle cached styles...
On 13/04/2010, at 7:11 AM, Chris Blake wrote: I use safari and it pretty much does a hard refresh every time. Sometimes with firefox i hold the shift key whilst refreshing. On 13/04/2010, at 3:02 AM, Climis, Tim wrote: Hi all, I wanted to get some collective input on how you all handle updating styles that are cached. Double clicking the refresh button will usually do the trick. There's also private browsing mode, which will keep things from caching. I suspect Clint is referring to how to handle it from a developer point of view rather than a user. Most of us should know how to refresh our browsers. There are various options including query strings and symlinking the real directory or file to a directory or file that contains a version number. I use a tool called juicer that concatenates and minifies CSS and javascript for deployment. It has a couple of options for handling cache busting http://cjohansen.no/en/ruby/juicer_a_css_and_javascript_packaging_tool . The author of this tool also describes the cache issue here http://cjohansen.no/en/ruby/juicer_a_css_and_javascript_packaging_tool Cheers, Tim __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] How to handle cached styles...
On 13/04/2010, at 7:26 AM, Tim Snadden wrote: I use a tool called juicer that concatenates and minifies CSS and javascript for deployment. It has a couple of options for handling cache busting http://cjohansen.no/en/ruby/juicer_a_css_and_javascript_packaging_tool . The author of this tool also describes the cache issue here http://cjohansen.no/en/ruby/juicer_a_css_and_javascript_packaging_tool Sorry - second link should be http://cjohansen.no/en/apache/using_a_far_future_expires_header __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] CSS Sprites, Image Replacement, or Just Images?
Hello all - Just looking for some expert advice for how to approach one part of a new project. The following jpg comp is all that exists yet, as I'm just now building out the site and would like to know how to proceed on the 3 main headings/choice options on the page. http://www.springfieldmo.gov/strategicplan/images/concept.jpg The 3 headings that are listen create and embark are image based. I had originally thought of using one image and a CSS sprite approach to show the part for each heading that is needed. But then I got to thinking that each of these really should be treated as an h2 header. I've never done any CSS image replacement, but wondered what the prevailing ideas on here would be as to how to treat this issue? - simple, stand alone images - h2 tags with image replacement, and if so, what's considered the current, best method - CSS sprite - h2 tags w/ images as backgrounds (this would negate the use of the font, which I do like) - something else I haven't thought of Thanks for some advice in advance. Christopher Akins Web Coordinator City of Springfield, MO www.springfieldmo.gov __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Re the non-secure login code...
Javascript is not a proper way for a login system. Use a server side language such as PHP, ASP, PERL, CGI, JSP. On Mon, Apr 12, 2010 at 19:35, Charles Miller chuckmil...@new.rr.com wrote: On Apr 12, 2010, at 11:08 AM, Reese wrote: I'd be happy to take a look, I'm always on the lookout for good login scripts and I'd be happy to provide any feedback I can. Here's what I've been sending out. After making the offer, it occurred that it's been so long since I started using the code I wasn't sure I could accurately help anyone else start using it. But it looks pretty basic. Do one thing, though. Make sure you try it on duplicates or non-essential files. (Of course, you would have done that anyway.) ONE*** This goes in the head section of the html page: script src=login.js type=text/javascript/script TWO*** Then this form goes in the body section. You decide the content to include other than the form fields. form name=login id=login center table width=760 border=0 cellspacing=25px cellpadding=5px trtd colspan=2a href=../index.htmlimg src=m.png alt=M name amp; logo width=750 height=87 align=top title=Return to Home //a /td /tr trtd colspan=2img src=o.png alt=Account Login at O /nbsp;br / /td/tr tr bgcolor=#154212th colspan=2Enter Your Private Websitebr / span class=style1Please type your Username and Password, then click Login mdash; Not Return/span/th/tr trthspan class=style2nbsp; br / Username:/span/th thspan class=style2nbsp; br / Password:/span/th/tr trthdiv align=centerinput type=text name=username //div/th thdiv align=centerinput type=text name=password //div/th/tr trth colspan=2 input type=button value=Login! onClick=Login() / /th/tr /table /center /form THREE*** The you create the login.js file from the following code. We have 13 different logins leading to thirteen different pages. Each one needs just 3 pieces of info: username, password and the page linked to. Chuck M Begin function Login(){ var done=0; var username=document.login.username.value; username=username.toLowerCase(); var password=document.login.password.value; password=password.toLowerCase(); if (username== password==b) { window.location=pagename.html; done=1; } if (username==c password==d) { window.location=pagename2.html; done=1; } if (done==0) { alert(Invalid login!); } } // End __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] How to handle cached styles...
cFA wrote: Hi all, I wanted to get some collective input on how you all handle updating styles that are cached. Many times on large projects I'm involved with we end up using query strings ?v=04-12-2010 to force new styles to show. I'm not a big fan of it... _clint Delete entire site (ball of confusion) from host/server. Upload new site (different ball of confusion) to host/server. Best, ~d -- desktop http://chelseacreekstudio.com/ mobile http://chelseacreekstudio.mobi/ __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] CSS Sprites, Image Replacement, or Just Images?
Just looking for some expert advice for how to approach one part of a new project. The following jpg comp is all that exists yet, as I'm just now building out the site and would like to know how to proceed on the 3 main headings/choice options on the page. http://www.springfieldmo.gov/strategicplan/images/concept.jpg The 3 headings that are listen create and embark are image based. I had originally thought of using one image and a CSS sprite approach to show the part for each heading that is needed. But then I got to thinking that each of these really should be treated as an h2 header. I've never done any CSS image replacement, but wondered what the prevailing ideas on here would be as to how to treat this issue? - simple, stand alone images - h2 tags with image replacement, and if so, what's considered the current, best method - CSS sprite - h2 tags w/ images as backgrounds (this would negate the use of the font, which I do like) - something else I haven't thought of You could try this: http://tjkdesign.com/articles/how-to_use_sprites_with_my_Image_Replacement_ technique.asp -- Regards, Thierry www.tjkdesign.com | articles and tutorials www.ez-css.org | ultra light CSS framework __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/