SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What's wrong with this code?

    Hi

    I have created the following HTML code in DreamWeaver for local weather using Wunderground.com/weathermaps/. When I preview it in browser from DreamWeaver it works fine. But when I try to launch the weather.html file from the server/folder that it's stored in - my results are a blank screen with x in upper left hand corner. URL = http://websrv-07/weather.html

    I think it may have something to do with this line of code.
    <param name="flashvars" value="http://www.wunderground.com/wundermap/?lat=35.78179&lon=-78.60454"; />
    Does anyone have any suggestions?

    Thanks

    HTML Code:
    <!doctype html>
    <html>
    <head>
    <meta charset=utf-8">
    <title>Local Weather</title>
    </head>
    <body>
    
    <object width="1920" height="1080" id="_08378221" data="http://www.wunderground.com/wundermap/?lat=35.78179&lon=-78.60454
    type="application/x-shockwave-flash" />
    
    <param name="movie" value="http://www.wunderground.com/wundermap/?lat=35.78179&lon=-78.60454 type="application/x-shockwave-flash" />
    
    <param name="allowscriptaccess" value="always" />
    
    <param name="autoStart" value="1" />
    
    <param name="allowfullscreen" value="true" />
    
    <param name="bgcolor" value="#000000" />
    
    <param name="index" value="-1" />
    
    <param name="flashvars" value="http://www.wunderground.com/wundermap/?lat=35.78179&lon=-78.60454"; />
    
    </object>
    
    </body>
    
    </html>

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    Here is another update, I made quite a few code changes and basically am down to a few lines of code, see attached.

    I'm able to preview my file in Dreamweaver, and open the file directly from the server. However, when I attempt to open the code in the URL = http://websrv-07/weather.html the screen remains black. Any thoughts on this?
    Thanks...

    HTML Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <!--"This image courtesy of Weather Underground"-->
    <title>Local Weather</title>
    </head>
    <body>
    
    <object width="1920" height="1080" id="_08378221" data="http://www.wunderground.com/wundermap/?lat=35.78179&amp;lon=-78.60454" >
    
    <param name="flashvars" value='http://www.wunderground.com/wundermap/ lat=35.78179 & lon=-78.60454'>
    
    </object>
    
    </body>
    
    </html>

  3. #3
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,285
    Mentioned
    181 Post(s)
    Tagged
    4 Thread(s)
    You need to identify the host (or IP address) of your server.
    http://websrv-07/weather.html is not a valid address. Perhaps it is a local server but NOT visible on the Internet.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  4. #4
    SitePoint Enthusiast
    Join Date
    Jun 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ParkinT View Post
    You need to identify the host (or IP address) of your server.
    http://websrv-07/weather.html is not a valid address. Perhaps it is a local server but NOT visible on the Internet.
    Let me test my understanding here and try to explain my situation in more detail. In a different scenario I would upload my html files to a service provider such as goDaddy and then access the files from my browser.

    For this particular situation I have created an html file that will give me the weather for a specific area. The file itself resides within my internal server which has Xampp installed. My intention is to upload the weather.html file on a Digital Siganage server (again internal).

    Sooo with that in mind how can I go about identifying my local server so that the file can use the information provided in my weather.html file? Is there a particular line that I add within my weather.html file for the local Xampp server ip?

    I hope that makes sense.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone?

  6. #6
    SitePoint Zealot moretea's Avatar
    Join Date
    Jun 2004
    Location
    Texas, USA
    Posts
    117
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Have you tried navigating to http://localhost/weather.html? Or maybe http://127.0.0.1/weather.html?

  7. #7
    SitePoint Enthusiast
    Join Date
    Jun 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by moretea View Post

    yes, it works in Google Chrome, FireFox and Safari but not in IE. Go figure I need it to work in IE.

    I found this info online and it has worked for other HTML files but for some reason its not working now. Did IE change something again regarding HTML5?

    There is a handy script on Google Code called "HTML Shiv" that will help IE recognize HTML 5 elements. So in the <head> of your HTML document you want to reference it. It's best to enclose it in IE conditional comments so that other browsers aren't confused:

    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->


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
  •