Announcement

Collapse
No announcement yet.

An American Cares

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Originally posted by Brad D Byrne View Post
    oh also, to answer an earlier question about reusing external css and js files,
    just use link & src like the following in the head section,

    Code:
    <head>
    <link rel="stylesheet" type="text/css" href="http://intelifaqs.com/mycssfile.css" >
    <script language="javascript" type="text/javascript" src="http://intelifaqs.com/myjsfile.js" ></script>
     
    </head>
    Brad, Just tried this
    <html>
    <head>
    <title>
    Testing
    </title>

    <style link rel="stylesheet" type="text/css" href="CSS_Test.css" >

    <!-- 'not using JS here so not needed yet
    <script language="javascript" type="text/javascript" src="http://intelifaqs.com/myjsfile.js" ></script>
    -->

    </style>
    </head>
    <body>
    <div class="Center_Box">
    ' rest of code here
    I tried both href="CSS_Test.css" 'in same folder
    & href="C:\Testing\CSS_Test.css" 'using absolute address
    but neither worked (no CS loaded).

    Here's the actual "CSS_Test.css" file
    <!--
    a:link{
    color: blue;
    background-color: transparent;
    font-weight: bold;
    font-style: normal;
    text-decoration: none
    }

    'rest deleted for space reasons here
    ' but it's the identical code that works if in the HTML code
    -->
    It's a pretty day. I hope you enjoy it.

    Gösta

    JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
    LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

    Comment


    • #22
      Gösta,



      <style link rel="stylesheet" type="text/css" href="CSS_Test.css" >

      the "CSS_Test.css" is not a complete address, you need to add the "http:// etc...

      including folders/dirs, or if in same directory you can simply use,

      href="./CSS_Test.css"

      Comment


      • #23
        you can also add as many style <link... 's as you want
        Last edited by Brad D Byrne; 10 Dec 2007, 11:57 AM.

        Comment


        • #24
          oh, read to fast!

          for local addressing, ie,

          href="C:\Testing\CSS_Test.css"

          I think you either need to use, href="C:/Testing/CSS_Test.css" or

          href="local file=C:/Testing/CSS_Test.css" or something???, can't remember?

          just upload it and try using the server, it will work

          Comment


          • #25
            example,

            <link href="./rostyle12.css" rel="stylesheet" type="text/css" />

            works for me on local machine

            Comment


            • #26
              Okay Brad, I tried

              example,

              <link href="./rostyle12.css" rel="stylesheet" type="text/css" />

              works for me on local machine
              And pretty much every other variation - absolute addressing, forward/backward/no slashes, "../" (a convention I use frequently on other sites), "./" (your suggestion).

              I thought maybe there was something in "CSS_Test.css" that was causing the failure so I C&P'ed the file and inserted directly inside the Style tags and it worked as supposed to (using the defined CSS styles). Clearly I am doing something stupid (what else is new?)

              Here is actual testing code:
              <html>
              <head>
              <title>
              Testing
              </title>
              <style>
              <link href="./CSS_Test.css" rel="stylesheet" type="text/css" />
              </style>
              </head>
              <body>
              <div class="Center_Box">
              Center Box
              </div>
              <div class="Left_Box">
              Left Box
              </div>
              </body>
              </html>
              And here is the actual "CSS_Test.css" I am using
              <!--
              a:link{
              color: blue;
              background-color: transparent;
              font-weight: bold;
              font-style: normal;
              text-decoration: none
              }
              a:hover{
              color: rgb(0,168,255);
              background-color: yellow;
              font-weight: normal;
              font-style: italic;
              text-decoration: none
              }

              h4
              {
              color: Blue;
              background-color: transparent;
              font-weight: bold;
              font-style: normal;
              font size="20"
              line-height: 50%;
              text-decoration: underline
              }
              b{color: blue}

              .Center_Box {
              position: absolute;
              top:1mm;
              left:12.8%;
              height:98%;
              width:89%;
              overflow: scroll;
              padding:4mm;
              margin: 0mm;
              font-family: Ariel;
              font-size: 12pt;
              line-height: 150%;
              color: rgb(0, 0, 0);
              font-style: normal;
              font-weight: normal;
              letter-spacing:0em;
              text-align: Left;
              border-style: solid;
              border-color: rgb(255,102,102);
              border-width:.5mm;
              background-color: rgb(255,250,230);
              z-index: 2
              }
              .Left_Box
              {
              position: absolute;
              top:1mm;
              left:2mm;
              height:98%;
              width: 12%;
              padding:2mm;
              margin: 0mm;
              font-family: Arial;
              font-size: 9pt;
              line-height: 125%;
              color: rgb(0,0,0);
              font-style: normal;
              font-weight: normal;
              letter-spacing:0em;
              text-align: Center;
              border-style: solid;
              border-color: rgb(0,51,255);
              border-width:0.5mm;
              background-color: rgb(214,255,255);
              z-index: 2
              }
              <!-- overflow: scroll; -->
              -->
              Testing css
              Stumps me!. I just can't get it to "include".
              It's a pretty day. I hope you enjoy it.

              Gösta

              JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
              LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

              Comment


              • #27
                remove the <style> tags

                should be,

                <title>
                Testing
                </title>
                <link href="./CSS_Test.css" rel="stylesheet" type="text/css" />
                </head>

                Comment


                • #28
                  did it work?

                  here's the html; http://www.intelifaqs.com/Gosta/Gosta.html

                  and here's the css;
                  http://www.intelifaqs.com/Gosta/CSS_Test.css

                  Comment


                  • #29
                    Originally posted by Shawn Anderson View Post
                    well that puts a damper on it from a PB perspective. For database interaction, you'll need to use something like PHP, which I'm no help with.
                    Actually I'm not envisioning much "interaction". Just a dynamic filling of the "Selection" boxes.


                    I think I understand your principle now of how it should work.

                    Let me ask you this: are the select lists going to change often, or will they be the same most of the time? I understand that the value of select A will change the options for select B, etc.
                    As I envision (hate to keep using that word, but ...) it the values will not change frequently (say updated on a weekly or monhly basis) but will not stay unchanged for long periods. As organizations are added, then maybe a finer selection process will require updating (in Organization Type for example).



                    If once all the possible base values are input, and they won't change often, I could do all of the select boxes with just javascript.
                    Using JS, other than C&Ping code snippets, is beyond my pay grade (skill level) {grin}.

                    Once all the choices are made and you need to call information from a database, you'll need to use something besides PB if you're on a Linux server.
                    I don't envision much/any interactivity required for/with a site visitor (other than clicking "Email Me" buttons. And I have generated HTML code using PB so that's not a problem (yet).

                    Thanks your interest Shawn. I hope you'll decide to become involved with the AAC project (if you can).
                    It's a pretty day. I hope you enjoy it.

                    Gösta

                    JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                    LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                    Comment


                    • #30
                      Originally posted by Brad D Byrne View Post
                      did it work?
                      Yup!

                      Hooray for Hollywood. Always something simple, ain't it. Thanks. Now I'll pay around with multiple "includes".
                      It's a pretty day. I hope you enjoy it.

                      Gösta

                      JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                      LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                      Comment


                      • #31
                        this is an idea of how it could work with just javascript:

                        Code:
                        <html>
                        <head>
                        
                        <script type="text/javascript">
                          // this is my database if you will
                        	var B="<select id='fruit'>";
                        	B+="<option value='apples'>apples</option>";
                        	B+="<option value='oranges'>oranges</option>";
                        	B+="<option value='peaches'>peaches</option>";
                        	B+="</select>";
                        	
                        	var C="<select id='colors'>";
                        	C+="<option value='red'>red</option>";
                        	C+="<option value='blue'>blue</option>";
                        	C+"<option value='orange'>orange</option>";
                        	C+="</select>";	
                        	
                        	var D="<select id='shapes'>";
                        	D+="<option value='square'>square</option>";
                        	D+="<option value='circle'>circle</option>";
                        	D+"<option value='triangle'>triangle</option>";
                        	D+="</select>";			
                        	
                        	var E="<select id='towns'>";
                        	E+="<option value='New York'>New York</option>";
                        	E+="<option value='Chicago'>Chicago</option>";
                        	E+="<option value='Los Angeles'>Los Angeles</option>";
                        	E+="</select>";		
                        
                        	// function that decides what the next select will be
                        	function nextSelect(){
                        			var a=document.getElementById('selectA').value;
                        			var v="";
                        		
                        			// switch is javascripts "select case"
                        			switch (a){
                        				case "fruit":
                        					v=B;
                        					break;
                        				case "colors":
                        				  v=C;
                        				  break;
                        				case "shapes":
                        				  v=D;
                        				  break;				  
                        				case "towns":
                        				  v=E;
                        				  break;
                        			}
                        			
                        			document.getElementById('nSelect').innerHTML=v;
                        			
                        	}
                        
                        </script>
                        
                        </head>
                        <body>
                        
                        Select A:<br>
                        	<select onChange="nextSelect()" id="selectA">
                        		<option value="fruit">fruit
                        		<option value="colors">colors
                        		<option value="shapes">shapes
                        		<option value="towns">towns
                          </select>		
                        <p>  
                        
                        Next select depending on the value of select A:<br>  
                          <div id="nSelect"></div>
                        
                        
                        
                        </body>
                        </html>

                        Comment


                        • #32
                          Thanks Shawn. That looks like it would work. I'll play around with it as soon as I get a chance (hopefully tomorrow). Tonight (what little is left for an old man {grin}), I'm going to fool around with what Brad posted earlier.

                          Just this afternoon, I installed VBulletin to my server (at http://www.SwedesDock.com hosted on Exit109.com). Note I found out that Exit109 has PHP, MySql, and all that good stuff. You had asked earlier. The Admin (and owner who is a friend) helped me set it up. Tomorrow I hope to get it running (fingers x'ed).

                          I figure it will help with the AAC project as more people get involved (I hope, right now I'm just a lone voice in the wilderness {Oh, woe is me} ) and I will be able to keep focus on the target (eventual AAC legislation) much better than can be done on a more open forum like PB's. (And it's not fair to use PB's facilities for non PB stuff either.)
                          It's a pretty day. I hope you enjoy it.

                          Gösta

                          JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                          LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                          Comment


                          • #33
                            Gösta,

                            here's a quick page to give you an idea of where I think you might be going with this, I havn't added any ajax stuff yet, maybe tonight? also, the css is not real clean, (but pretty good!) I have much better code using graphics to solve cross-browser issues, but that will take a few more weeks so it doesn't confuse me on my other stuff,

                            http://www.intelifaqs.com/Gosta/AnAmericanCares.html

                            Comment


                            • #34
                              New forum

                              Thanks Brad. I'll take a look at it tonight. I've been pretty busy today (since about 6am) between personal stuff, updating the website a little, AND setting up a forum just for An American Cares. So am a little bushed. Need a rest {sigh}

                              From here on out, I'll be handling AAC stuff on the Forum. Here's the address you are intested: http://www.SwedesDock.com/Forum. There's only one registered member so far {grin}
                              It's a pretty day. I hope you enjoy it.

                              Gösta

                              JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                              LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                              Comment


                              • #35
                                FWIW, there are plenty of similiar initiatives out there. We used to send a shoebox each year through my kid's school via Franklin Graham's Operation Christmas Child

                                The microloan idea appears to be highly successful, as well, through organizations such as http://www.kiva.org
                                --pdf

                                Comment


                                • #36
                                  Originally posted by Shawn Anderson View Post
                                  this is an idea of how it could work with just javascript:
                                  Shawn,

                                  I tried the code but it only showed Select A (no B, C or D). It may be I had a C&P error.

                                  It really looks promising though. Seems like it would be pretty easy to generate the Option values with a PB program.

                                  If you reply, I would much appreciate it if you did it on the AAC forum:

                                  http://www.swedesdock.com/Forum/show....php?p=5#post5

                                  I don't want to tie up PB resources on a non PB project.

                                  Thanks.
                                  It's a pretty day. I hope you enjoy it.

                                  Gösta

                                  JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                                  LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                                  Comment


                                  • #37
                                    Originally posted by Paul Franks View Post
                                    FWIW, there are plenty of similiar initiatives out there.
                                    Actually Paul, there aren't. What makes AAC significantly different is the Pre Paid AAC boxes with Uncle Sam picking up shipping charges over the Pre-Pay.
                                    It's a pretty day. I hope you enjoy it.

                                    Gösta

                                    JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                                    LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                                    Comment


                                    • #38
                                      Originally posted by Gösta H. Lovgren-2 View Post
                                      Actually Paul, there aren't. What makes AAC significantly different is the Pre Paid AAC boxes with Uncle Sam picking up shipping charges over the Pre-Pay.
                                      Gösta,

                                      I can see this for our own military, but otherwise, what constitutional right does the US Government have to use tax payer money for charitable giving? What about people who object to their taxes going to certain organizations they don't want supported? Who, and by what authority, gets to decide that tax payer money should be spent on these organizations? Constitutionally, I see no provisions for such expenses to be legally taken up by "Uncle Sam". Not that I can't see some slimy congressman doing it for the photo-op, but do the ends justify the means? In this case, stepping all over (or going around) the Constitution?
                                      Software makes Hardware Happen

                                      Comment


                                      • #39
                                        Originally posted by Joe Byrne View Post
                                        Gösta,

                                        I can see this for our own military, but otherwise, what constitutional right does the US Government have to use tax payer money for charitable giving? What about people who object to their taxes going to certain organizations they don't want supported? Who, and by what authority, gets to decide that tax payer money should be spent on these organizations? Constitutionally, I see no provisions for such expenses to be legally taken up by "Uncle Sam". Not that I can't see some slimy congressman doing it for the photo-op, but do the ends justify the means? In this case, stepping all over (or going around) the Constitution?
                                        Joe,

                                        Ever hear of the concept of "Foreign Aide". We literally give out (hundreds of) billions already all over the world (much of which never reaches its intended target for any number of reasons). And apparently you aren't familiar with the Care Package program after WWII.

                                        As for it being Constitutional, if An American Cares isn't, then I'm sure you will/won't be the first to challenge it in court.

                                        And, really Joe, you are off topic here. If you want to discuss this philosophically or conceptually I'll be glad to do so in the Cafe or on the AAC Forum (just start a new thread).
                                        Last edited by Gösta H. Lovgren-2; 12 Dec 2007, 11:51 AM.
                                        It's a pretty day. I hope you enjoy it.

                                        Gösta

                                        JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                                        LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                                        Comment


                                        • #40
                                          Shawn,

                                          From your example
                                          Code:
                                          ...
                                          Next select depending on the value of select A:<br> 
                                          <div id="nSelect"></div>
                                           
                                          // Gösta's notes:
                                          // If you could post an example of what goes in here I might be able
                                          // to figure out something on my own. I could then use PB to access 
                                          // "Country" files, etc. to generate the JS Select codes.
                                           
                                          </body>
                                          ...
                                          Last edited by Gösta H. Lovgren-2; 14 Dec 2007, 08:24 AM. Reason: clarity
                                          It's a pretty day. I hope you enjoy it.

                                          Gösta

                                          JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                                          LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                                          Comment

                                          Working...
                                          X