If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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?

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?

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...

I created the following ncweather.html in Mac/Dreamweaver and upload it to my local Xampp server. My plan is to launch ncweather.html from the Content Management system in order to have the weather show up on the Digital TV in the showroom.
When I go to the xampp server and launch the ncweather.html directly the path is file:///C:/xampp/htdocs/ncweather.html.

And if I go to my parallels window IE, and put in the following path - http://websrv-02/ncweather.html or the ip address for the xampp server - all I receive is a blank window.

I know this is probably something real simple like a path issue but I am drawing a complete blank.
I created the following ncweather.html in Mac/Dreamweaver and upload it to my local Xampp server. My plan is to launch ncweather.html from the Content Management system in order to have the weather show up on the Digital TV in the showroom.
When I go to the xampp server and launch the ncweather.html directly the path is file:///C:/xampp/htdocs/ncweather.html.

And if I go to my parallels window IE, and put in the following path - http://websrv-02/ncweather.html or the ip address for the xampp server - all I receive is a blank window.

I know this is probably something real simple like a path issue but I am drawing a complete blank.

I didn't try the first code snippets you posted, but it doesn't look like you're using wunderground.com's API, so my first inclination is to suspect that they have blocks in place to prevent unauthorized access to their system. Their blocking methods may not be rigid enough to prevent access when you load your page in the browser with file:/// because the browser then sends a blank 'referer', but will prevent access when the page is loaded via http://.

I'm also wondering why you don't use http://localhost/ to access the file on your XAMPP server. I don't know that much about it, but I haven't seen other hostnames used before.

very frustrated

Originally Posted by rtrethewey

I didn't try the first code snippets you posted, but it doesn't look like you're using wunderground.com's API, so my first inclination is to suspect that they have blocks in place to prevent unauthorized access to their system. Their blocking methods may not be rigid enough to prevent access when you load your page in the browser with file:/// because the browser then sends a blank 'referer', but will prevent access when the page is loaded via http://.

I'm also wondering why you don't use http://localhost/ to access the file on your XAMPP server. I don't know that much about it, but I haven't seen other hostnames used before.

I actually contacted their support the other day and they didn't seem to see any problems or mention that I was using their code wrong. All they ask is that you give credit to them in your code which I did.

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:

No, it's got nothing to do with HTML 5. Even though you're using an HTML 5 <!DOCTYPE>, you're not using any mark-up that older browsers would have problems with. All in all, your problems sound like there could be a DNS issue on your system. I'd suggest testing the code on a real website to see if that helps.

I'm not familiar with xampp, but I use wamp, which should be similar As the code works when you access it as a local server, but not when accessed from a client, I suspect that its your firewall that is not set up to allow xampp to operate across the network.

No, it's got nothing to do with HTML 5. Even though you're using an HTML 5 <!DOCTYPE>, you're not using any mark-up that older browsers would have problems with. All in all, your problems sound like there could be a DNS issue on your system. I'd suggest testing the code on a real website to see if that helps.

What exactly would I do to fix a DNS issue?
Why is this happening?
I can open the same exact file directly from the server using Google Chrome but not IE. I can open in DW using FireFox and Safari but not Chrome.