473,739 Members | 4,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help pasting in Weather Channel code into FrontPage?

2 New Member
Hi, everyone. I'm having a really difficult time pasting in generated code from the Weather Channel for a weather sticker for my webpage. This was the code sent to me via email:

<!-- cut and paste the below code into your HTML editor --><div id="wx_module_2 384"> <a href="http://www.weather.com/weather/local/15904">Johnstow n, PA (15904) Weather</a></div><script type="text/javascript">/* <!-- */ /* Locations can be edited manually by updating 'wx_locID' below. Please also update */ /* the location name and link in the above div (wx_module) to reflect any changes made. */ var wx_locID = '15904'; /* If you are editing locations manually and are adding multiple modules to one page, each */ /* module must have a unique div id. Please append a unique # to the div above, as well */ /* as the one referenced just below. If you use the builder to create individual modules */ /* you will not need to edit these parameters. */ var wx_targetDiv = 'wx_module_2384 '; /* Please do not change the configuration value [wx_config] manually - your module */ /* will no longer function if you do. If at any time you wish to modify this */ /* configuration please use the graphical configuration tool found at */ /* https://registration.we ather.com/ursa/wow/step2 */ var wx_config='SZ=3 00x250*WX=FWC*L NK=SSNL*UNT=F*B GI=seasonal1*MA P=null|null*DN= www.getitwrites olutions.com*TI ER=0*PID=102440 3000*MD5=4cf359 8911b9cbfe242fc c4db995732d'; document.write( '<script src="'+document .location.proto col+'//wow.weather.com/weather/wow/module/'+wx_locID+'?co nfig='+wx_confi g+'&proto='+doc ument.location. protocol+'&targ et='+wx_targetD iv+'"></script>');/* --> */</script><!-- cut and paste the above code into your HTML editor -->

I've tried this about 6 times and have made sure that my code starts and ends with the "script" tag, but I can't get it to work. I'm frustrated. Can anyone just help me to get the "important stuff" out of this code to I can insert this? It looks like there's a whole lot of additional text "notes" in here I don't really need, as well.

I appreciate any and all help...

Your frustrated newbie,
Dawn
Jan 21 '07 #1
3 3826
acoder
16,027 Recognized Expert Moderator MVP
[HTML]<!-- cut and paste the below code into your HTML editor -->
<div id="wx_module_2 384">
<a href="http://www.weather.com/weather/local/15904">Johnstow n, PA (15904) Weather</a></div>
<script type="text/javascript">
/* <!-- */
/* Locations can be edited manually by updating 'wx_locID' below. Please also update */
/* the location name and link in the above div (wx_module) to reflect any changes made. */
var wx_locID = '15904';
/* If you are editing locations manually and are adding multiple modules to one page, each */
/* module must have a unique div id. Please append a unique # to the div above, as well */
/* as the one referenced just below. If you use the builder to create individual modules */
/* you will not need to edit these parameters. */
var wx_targetDiv = 'wx_module_2384 ';
/* Please do not change the configuration value [wx_config] manually - your module */
/* will no longer function if you do. If at any time you wish to modify this */
/* configuration please use the graphical configuration tool found at */
/* https://registration.weather.com/ursa/wow/step2 */
var wx_config='SZ=3 00x250*WX=FWC*L NK=SSNL*UNT=F*B GI=seasonal1*MA P=null|null*DN= www.getitwrites olutions.com*TI ER=0*PID=102440 3000*MD5=4cf359 8911b9cbfe242fc c4db995732d';
document.write( '<script src="'+document .location.proto col+'//wow.weather.com/weather/wow/module/'+wx_locID+'?co nfig='+wx_confi g+'&proto='+doc ument.location. protocol+'&targ et='+wx_targetD iv+'"></script>');
/* --> */
</script>
<!-- cut and paste the above code into your HTML editor -->[/HTML]
I've posted your code in HTML tags. Please use code tags, the code is easier to read.
Jan 22 '07 #2
AricC
1,892 Recognized Expert Top Contributor
Can you post the whole pages code?
Jan 22 '07 #3
AricC
1,892 Recognized Expert Top Contributor
Worked correctly for me. It must be a cut and paste error. Make sure you are in code viewer mode find the place you want to put this create 3-5 blank spaces then paste this code.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>Test</title>
  5. <style type="text/css">
  6.  
  7.  
  8. </style>
  9. </head>
  10.  
  11. <body>
  12. <!-- cut and paste the below code into your HTML editor -->
  13. <div id="wx_module_2384">
  14. <a href="http://www.weather.com/weather/local/15904">Johnstown, PA (15904) Weather</a></div>
  15. <script type="text/javascript">
  16. /* <!-- */
  17. /* Locations can be edited manually by updating 'wx_locID' below.  Please also update */
  18. /* the location name and link in the above div (wx_module) to reflect any changes made. */
  19. var wx_locID = '15904';
  20. /* If you are editing locations manually and are adding multiple modules to one page, each */
  21. /* module must have a unique div id.  Please append a unique # to the div above, as well */
  22. /* as the one referenced just below.  If you use the builder to create individual modules */
  23. /* you will not need to edit these parameters. */
  24. var wx_targetDiv = 'wx_module_2384';
  25. /* Please do not change the configuration value [wx_config] manually - your module */
  26. /* will no longer function if you do.  If at any time you wish to modify this */
  27. /* configuration please use the graphical configuration tool found at */
  28. /* https://registration.weather.com/ursa/wow/step2 */
  29. var wx_config='SZ=300x250*WX=FWC*LNK=SSNL*UNT=F*BGI=se  asonal1*MAP=null|null*DN=www.getitwritesolutions.c  om*TIER=0*PID=1024403000*MD5=4cf3598911b9cbfe242fc  c4db995732d';   
  30. document.write('<script src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></script>');
  31. /* --> */
  32. </script>
  33. <!-- cut and paste the above code into your HTML editor -->
  34.  
  35. </body>
  36. </html>
  37.  
Jan 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1504
by: Jeremy Jones | last post by:
is looking for two software developers to develop tests (written in Python) to test our internally developed applications for the cable tier. There is a reference to the job on the Python Job Board (http://www.python.org/Jobs.html). Anyone interested can email me at zanesdad at bellsouth dot net or jmjones at weather dot com. Jeremy Jones
18
2840
by: Gr8DaddyG | last post by:
I am trying to paste the following code into the HTLM editor of my webpage: <script src='http://voap.weather.com/weather/oap/USFM0004?template=EVNTV&par=1004845350&unit=0&key=470c828c1eed4306eeef1f0c11d4bf45'></script> But, it will not display correctly. Here's exactly what it displays: src='http://voap.weather.com/weather/oap/USFM0004?template=EVNTV&par=1004845350&unit=0&key=470c828c1eed4306eeef1f0c11d4bf45'></script> It's...
2
1631
by: MS | last post by:
In my project I want to execute some commands on the remote machine. I am using .Net Remoting to achieve this. My server which is an exe is copied on the remote machine and it receives command from client which is executed by the exe. I am facing problem while executing the exe on the remote machine. If I start the exe manually everything works fine but if I execute it remotely through code using WMI an exception is thrown saying "No...
2
1906
by: WAYNEL | last post by:
Hi I am trying to re-write some of the example code that Agilent gives for VB to VB.Net. In .Net I keep getting the error 'cannot change the number of dimensions of an array'. I have paste the module I am having an issue with. Can anyone help!
4
1682
by: Paul M | last post by:
Larry, i've got an xml file which has multiple cities as the top level item. When i read it in using XMLReader, and define the variables, as below, it finds the correct number of cities in the xml file, but repeats the first one 3 times. I'm sure its something minor but i just cant seem to figure it out. here is the XML, and source code below:
2
1781
by: Arthur Dzhelali | last post by:
I have a two xml files schema is identical. When I read file into dataset and then bind dataset to the form. These are weather files we are getting from weather service. One file has only local weather so I don't have any problems with that, but other has weather for several different locations. Basically I need to select only weather for location if I know its code. I should have exactly same dataset so I will be able bind it to the...
8
1624
by: Mark Odell | last post by:
I've read the FAQ and I still can't see how to get what I want. Here's what I'd like to do: I have a list of register numbers that the CPU's instruction set requires be literal constants, e.g. #define DMA_CR0 0x100 #define DMA_CR1 0x108 #define DMA_CR2 0x110 #define DMA_CR3 0x118
4
1367
by: Mark Cooney | last post by:
OK this might be long winded by want to show you everything I am doing. Down below is the result I get from an API Call to a website called Betfair. The following is some code I am trying, but I have also tried many different variations. Dim response As HttpWebResponse = request.GetResponse() 'Get the response stream Dim reader As StreamReader = New StreamReader(response.GetResponseStream)
6
3512
by: Chetanhl | last post by:
Can some1 tell me whats wrong in my code or plz provide your own solution so that i can learn from it.I got this question in a text whos result shows 0.0% accuracy in this code althought getting same output.Question is below:- Hey i am solving this question :- Time-Division Multiplexing (TDM) is a type of multiplexing in which two or more signals or bit streams are transferred simultaneously as sub-channels in one communication...
0
8792
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9266
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9209
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6754
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6054
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4826
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3280
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.