SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 35 of 35

Thread: Code for a fundraising thermometer

  1. #26
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    758
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Are you trying to run this file locally by double clicking on it or are you running a webserver locally? If it's the former, try changing the URL to jQuery to be preceded by a "http:"

    i.e.
    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  2. #27
    SitePoint Member
    Join Date
    Dec 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm uploading my three files to my hosting account, and then I'm viewing the html file live online. I'm also clearing my browser cache each time, just in case. In any case, I added the "http" like you indicated, but that didn't make a difference.

    Sorry this is turning into so much trouble! I appreciate your patience with me!!!

  3. #28
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    758
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dlc3172 View Post
    Sorry this is turning into so much trouble! I appreciate your patience with me!!!
    No probs

    Mind letting me have a look at the URL where you're putting it?
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  4. #29
    SitePoint Member
    Join Date
    Dec 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AussieJohn View Post
    No probs

    Mind letting me have a look at the URL where you're putting it?
    Well, my site's not public yet and I really don't want to post the URL in a public forum. Does it help if I tell you I'm using Yahoo hosting service? And, in case it's important, I'm using Yahoo's SiteBuilder tool and I'm simply embedding the code with the tool's "insert html" feature, which let's you insert any kind of code, not just html.

    And, if it helps, here's the full code from the html page:

    Code:
    <!DOCTYPE html>
    <html xml:lang="en-au" lang="en-au">
    <head>
      <meta charset="utf-8">
      <title>Thermometer</title>
      <link rel="stylesheet" type="text/css" href="thermo.css" />
    
    
      <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    
      <script type="text/javascript" src="thermo.js"></script>
    </head>
    <body>
      <div id="content">
    
        <div id="thermo1" class="thermometer">
    
            <div class="track">
                <div class="goal">
                    <div class="amount"> 90000 </div>
                </div>
                <div class="progress">
                    <div class="amount">47835 </div>
                </div>
            </div>
    
        </div>
    
        <div id="thermo2" class="thermometer horizontal">
    
            <div class="track">
                <div class="goal">
                    <div class="amount"> 1000000 </div>
                </div>
                <div class="progress">
                    <div class="amount">354680 </div>
                </div>
            </div>
    
        </div>
    
      </div>
    </body>
    </html><!-- text below generated by server. PLEASE REMOVE --><!-- Counter/Statistics data collection code --><script language="JavaScript" src="http://l.yimg.com/d/lib/smb/js/hosting/cp/js_source/whv2_001.js"></script><script language="javascript">geovisit();</script><noscript><img src="http://visit.webhosting.yahoo.com/visit.gif?us1354583998" alt="setstats" border="0" width="1" height="1"></noscript>

    by the way, I'm going out of town tomorrow, so if I don't reply to your next post right away, I'll be back in a couple days... THANKS AGAIN!

  5. #30
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    758
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dlc3172 View Post
    Well, my site's not public yet and I really don't want to post the URL in a public forum. Does it help if I tell you I'm using Yahoo hosting service? And, in case it's important, I'm using Yahoo's SiteBuilder tool and I'm simply embedding the code with the tool's "insert html" feature, which let's you insert any kind of code, not just html.
    Can't say I've ever used Yahoo's Sitebuilder - providing that the file references are all correct it *should* work.

    If your site is accessible publicly, feel free to PM me with the URL and I'll take a look when I get a chance.
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  6. #31
    SitePoint Member
    Join Date
    May 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE8

    The CSS does not appear to work well in IE8. Also Fiddle has problems with IE8.

    Not so worried about Fiddle, but has anyone managed to get this to look good in IE8?

    Thank you in advance

  7. #32
    Grüße aus'm Pott
    SitePoint Award Recipient Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    2,370
    Mentioned
    38 Post(s)
    Tagged
    1 Thread(s)
    Hi,

    If this is a CSS question, you will get a better response if you post in the CSS Forum.
    Start a blog, they said. People will read it, they said.

  8. #33
    SitePoint Member
    Join Date
    May 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope specific question about this thermometer example. Does not work in IE8. Best guess CSS issue.

  9. #34
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    758
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SmoothTokyo View Post
    The CSS does not appear to work well in IE8. Also Fiddle has problems with IE8.
    Yup, you're correct. I used mostly CSS3 stuff for the cool things on that thermometer. The rounded corners, drop shadow and the indicator lines are all CSS3 features that IE8 does not understand. I've kept it relatively generic so styling it can be achieved quite easily with a little knowledge of CSS.

    Quote Originally Posted by SmoothTokyo View Post
    Not so worried about Fiddle, but has anyone managed to get this to look good in IE8?
    I might put an item on my Todo list to build a few more styling examples of this thermometer/progress meter.
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  10. #35
    SitePoint Member
    Join Date
    May 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi AussieJohn,

    Thank you for the response. Is it possible to provide an example of some simple CSS that works with IE8? I am sure it is simpler for you. If needed I can ask for a small budget for that will help accelerate the process.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •