WXforum.net
May 24, 2013, 11:32:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6622  •  Posts: 178836  •  Topics: 18145
Please welcome windme, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: HTML Template Help  (Read 2982 times)
0 Members and 1 Guest are viewing this topic.
chargedbird
Senior Member
**
Offline Offline

Posts: 59



« on: June 13, 2009, 12:02:22 PM »

Hello all,
I don’t know if this is the correct room to post this question. Admin's please move to correct location if needed..

Here is my question,
This question has to with HTML programming/code. When I upload my index.html which was created from wx.htx the gauge page or is called the gauge table is where I am having problems. If you go to www.santeewx.com you will see the gauges are not organized. How can I lock those gauges to a specific location? I looked at the template (using Dreamweaver) and it just references to gauges. I would like to put a gauge in a specific location on the page and I have no idea how to do that and the same with the wind speed info. Any information will be greatly appreciated or even a sample page would be great so I look at the source code, but I need a good template. Any information will be greatly appreciated.

Cheers
Brad
Logged
mackbig
Forecaster
*****
Offline Offline

Posts: 4076



WWW
« Reply #1 on: June 13, 2009, 01:20:47 PM »

The purpose of the gauge tag is so that each time you play with your desktop you dont need to re-tag the html.   However if you want to hard code, you can do this, but keep in mind if you add another graph/dial/whatever on your desktop it will not automatically show on your page.

What you should do is this.   Get all the gauges you want on your page in the VWS desktop.  Have the htx file create an html file.
Then go in an look at what was include for gauges.

should look like this
Code:
<font color="#FFFFFF" face="Arial"><img src="broadcast.jpg"> <img src="vws005.jpg"> <img src="vws007.jpg"> <img src="vws012.jpg"> <img src="vws013.jpg"> <img src="vws022.jpg"> <img src="vws153.jpg"> <img src="vws161.jpg"> <img src="vws907.jpg"> <img src="vws908.jpg"> <img src="vws917.jpg"> <img src="vws1006.jpg"> <img src="vws1007.jpg"> </font>

Then put that into your HTX file in place of
Code:
    <font color="#FFFFFF" face="Arial">^all_gauges^</font>
 

Then open in Dreamweaver (as that is what you said you were using), and move the images around

Then save, and now you would have an HTX file that created your HTML with the gauges exactly where you like.  Just remember if you add a new dial/gauge in the future to the VWS desktop it will not be on this page till you add that ref to the htx file.

Andrew
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
chargedbird
Senior Member
**
Offline Offline

Posts: 59



« Reply #2 on: June 13, 2009, 05:13:35 PM »

Andrew,
Thanks for the info, I understand what your saying and I like your idea. Thanks again

Brad
Logged
Anthony
Moderator
Forecaster
*****
Offline Offline

Posts: 1707


WWW
« Reply #3 on: June 14, 2009, 08:23:19 AM »

When you want to make changes to your web page(s). You want to always edit the htx file that is assiciated with that partucular hrml page. It's the htx files that vws converts to html pages. So if you do edit an html page. VWS simply over writes it with the old data that is still in the htx file.

Logged



Thanks,
Anthony
WB8YUE
mackbig
Forecaster
*****
Offline Offline

Posts: 4076



WWW
« Reply #4 on: June 14, 2009, 08:26:31 AM »

That is what we were talking about.  Andrew

When you want to make changes to your web page(s). You want to always edit the htx file that is assiciated with that partucular hrml page. It's the htx files that vws converts to html pages. So if you do edit an html page. VWS simply over writes it with the old data that is still in the htx file.
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
chargedbird
Senior Member
**
Offline Offline

Posts: 59



« Reply #5 on: June 14, 2009, 10:57:58 AM »

Before I start editing these files. When the *.htx file has this code <font color="#FFFFFF" face="Arial">^all_gauges^</font>the web page will have all the gagues I have selected, however how does it know where to place them on my page, I arrange my VWS Desktop on how I would like to gagues to appear, however the gagues are like put on my page in random locations they are not in the same location as my VWS desktop page, I 'm just wondering how the programming/code know where to put these gagues? Thanks again

Brad
/color]
Logged
Anthony
Moderator
Forecaster
*****
Offline Offline

Posts: 1707


WWW
« Reply #6 on: June 15, 2009, 07:55:54 AM »

You VWS desktop has nothing to do whith how the guages apear on your web site. Two completely different things. Get your self a nice web page editor and use that to open the htx files and arrange the graphs and guages the way you want them. There are many fee basic web pages editors available on the internet.

Logged



Thanks,
Anthony
WB8YUE
mackbig
Forecaster
*****
Offline Offline

Posts: 4076



WWW
« Reply #7 on: June 15, 2009, 08:41:00 AM »

Brad,
Its not easy doing what you are trying to do.  But follow the instructions I gave earlier.  That will show you which gauges you need to "place"   As for moving them after you know the names, that is the hard part.  It will probably take some trial and error in dreamweaver.   Not sure its worth it really, but if you really want your "wind speed info" in a certain place on the page, that is how you will have to do it.

I know Lars helped someone else clean up their wx view of gauges a few month ago.

Andrew
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
stevebrtx
Forecaster
*****
Offline Offline

Posts: 470



WWW
« Reply #8 on: June 16, 2009, 08:07:58 AM »

I'm not familiar with Dreamweaver, I'm still using FrontPage, but I lock everything into tables roughly 800 pix wide. A dynamic display will move depending on the viewers browser etc. I want the format you see and that's one way to get it. http://chapalaweather.net/
Logged

Anthony
Moderator
Forecaster
*****
Offline Offline

Posts: 1707


WWW
« Reply #9 on: June 16, 2009, 08:14:15 AM »

Dreamweaver is a very nice web page editor so I hear. I've also heard it's not the easiest to lear to use either. I use Front Page from MS. As I said earler. There are some free ones out there that are good also. I don't think Dreamweaver would be a good editor for some one who has never attempted tp create or edit a web page/site.

Logged



Thanks,
Anthony
WB8YUE
mackbig
Forecaster
*****
Offline Offline

Posts: 4076



WWW
« Reply #10 on: June 16, 2009, 09:04:15 AM »

Steve, I see you finished Canadianizing your gauges and key numbers....nice.   Has that quieted the masses?

Andrew

I'm not familiar with Dreamweaver, I'm still using FrontPage, but I lock everything into tables roughly 800 pix wide. A dynamic display will move depending on the viewers browser etc. I want the format you see and that's one way to get it. http://chapalaweather.net/
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
stevebrtx
Forecaster
*****
Offline Offline

Posts: 470



WWW
« Reply #11 on: June 16, 2009, 09:31:52 AM »

Ha, yes, they seem somewhat pacified for the moment. However, I'm a bit frazzled, we had a big storm last Weds and it fried my main pressure water pump and the antenna for my wireless DSL, so I was on dialup until yesterday. And Sat when I went to put new batteries in everything the rain gauge died and so I struggled for endless hours trying to reset the .bin files etc.

Being in MX you really can't trust anything to be shipped in, so in a few weeks someone will bring down a new gauge from TX, so until then it's manual updates which are always a panic and we're just now entering our rainy season. Here we have two seasons, dusty (for 8 months, no rain) and muddy (4 months, rain).
Logged

chargedbird
Senior Member
**
Offline Offline

Posts: 59



« Reply #12 on: July 05, 2009, 06:55:16 PM »

Afternoon all,
Quick and easy question. The HTML templates have the *.htx extension and would like to know if I can use the *.dwt extension? I will remember that I must select the correct template file under HTML settings, just would like to know if VWS looks for the *.htx templates or is there is something special about the *.htx file

Thanks in Advance
Brad
Logged
mackbig
Forecaster
*****
Offline Offline

Posts: 4076



WWW
« Reply #13 on: July 06, 2009, 06:52:55 AM »

I dont think the htx extension really means anything, probably just an idea to recall which is a template and which is final htm (which definitely does not need to be htm, as I used php, txt, or "other" on the output side).  The program is pointed at the file using the setup screens, so you could probably call it anything you want txt, dwt, even htm, as long as the output side has a different extension so it does not overwrite itself.

Andrew
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #14 on: July 06, 2009, 07:53:57 AM »

Brad, take a look at my page http://www.axelvold.net.

I have done exactly what i think you also want to do, select the gauge or graph link in the menu

//Lars
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


chargedbird
Senior Member
**
Offline Offline

Posts: 59



« Reply #15 on: July 06, 2009, 12:47:11 PM »

Lars,
Yes you are correct, that is exactly what I want to do. I need to stuy your source code.
Thanks
Brad
Logged
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #16 on: July 06, 2009, 01:16:06 PM »

Lars,
Yes you are correct, that is exactly what I want to do. I need to stuy your source code.
Thanks
Brad


Check your email, i have just sent you those files.

fell free to use them and change in them how you want

//Lars
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


dsscheibe
Senior Member
**
Offline Offline

Posts: 69


WWW
« Reply #17 on: July 12, 2009, 04:45:45 PM »

  I have a problem with my page that is driving me nuts, I've tried all kinds of stuff to fix it and this is the best I can get it and I don't understand why.  I'm fairly good at HTML, so so at CSS.  The right column with the records, forecast, astronomical, links stuff hangs down below the other two columns with a lot of blank space.  I can't see any reason it does this.  It SHOULD be even with the bottom of the center column of the gauges which in theory should be the longest column..  It is a mess of tables with in tables (but it is all valid), there is one table that sets up the three columns and other tables with in those TD tags to set up the format for the data.  It does the same thing in both FireFox and IE 7 though IE renders the CSS attributes of the page completely differently than FireFox does.

http://members.cox.net/dsscheibe/vws/
Logged

Scott
Davis Pro2 Plus daytime aspirated, wired
Virtual Weather Station 14:01 P18
CW2069
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #18 on: July 12, 2009, 05:18:50 PM »

Hi Scott

I can't see anything strange with your page, the 3 columns all have the same length in my browsers (IE8, FF3.0.1 and opera)

What screen resolution do you have?
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


dsscheibe
Senior Member
**
Offline Offline

Posts: 69


WWW
« Reply #19 on: July 12, 2009, 05:29:03 PM »

Hi Scott

I can't see anything strange with your page, the 3 columns all have the same length in my browsers (IE8, FF3.0.1 and opera)

What screen resolution do you have?

I'm running at 1280x960  the page changes width with the resolution because we have a old system at work that is like 800x600 and it took me a while to get it to display with out scrolling side ways in most resolutions.
Logged

Scott
Davis Pro2 Plus daytime aspirated, wired
Virtual Weather Station 14:01 P18
CW2069
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #20 on: July 12, 2009, 05:36:44 PM »

I dont know if this should be like this?

Code:
<tr>
<th width="34%" colspan="2" align="center" valign="middle"   bgcolor="#c0c0c0">
Today's Records
<!-- **********  color="#FF0033"  ********** -->
</th>
</tr>

should it not be td instead of th
« Last Edit: July 12, 2009, 06:32:19 PM by Axelvold » Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #21 on: July 12, 2009, 05:40:02 PM »

One more thing, there is no height specified on the right column
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


dsscheibe
Senior Member
**
Offline Offline

Posts: 69


WWW
« Reply #22 on: July 12, 2009, 10:33:32 PM »

I dont know if this should be like this?

Code:
<tr>
<th width="34%" colspan="2" align="center" valign="middle"   bgcolor="#c0c0c0">
Today's Records
<!-- **********  color="#FF0033"  ********** -->
</th>
</tr>

should it not be td instead of th

th is table header and works the same as td table data, though in my style sheet TH is a larger bolder font than TD is.  It is valid HTML in 4.0 and 5.0, maybe 3.0 as well I'm not sure when it was instituted.  All the th have a slightly darker background, have a bolder border around them as well.  Pretty sure they aren't causing the problem.
Logged

Scott
Davis Pro2 Plus daytime aspirated, wired
Virtual Weather Station 14:01 P18
CW2069
dsscheibe
Senior Member
**
Offline Offline

Posts: 69


WWW
« Reply #23 on: July 13, 2009, 12:02:07 AM »

One more thing, there is no height specified on the right column

 I have tried that, it doesn't seem to make a difference at all.  The problem is the height changes as you narrow the width of the page, the table contracts and the text starts to wrap instead of being on one line to compensate.
Logged

Scott
Davis Pro2 Plus daytime aspirated, wired
Virtual Weather Station 14:01 P18
CW2069
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.11 seconds with 19 queries.