Click here to Skip to main content
15,915,094 members
Home / Discussions / Web Development
   

Web Development

 
QuestionMCTS Certification Pin
yadlaprasad16-May-10 20:06
yadlaprasad16-May-10 20:06 
AnswerRe: MCTS Certification Pin
The Man from U.N.C.L.E.17-May-10 7:34
The Man from U.N.C.L.E.17-May-10 7:34 
Question">" problems in PHP statement Pin
SNArruda15-May-10 6:06
SNArruda15-May-10 6:06 
Questionwebsite ads Pin
mnemonic6913-May-10 10:17
mnemonic6913-May-10 10:17 
AnswerRe: website ads Pin
T M Gray19-May-10 12:04
T M Gray19-May-10 12:04 
QuestionReading a client-side INI into javascript Pin
bill bradley11-May-10 16:45
bill bradley11-May-10 16:45 
AnswerRe: Reading a client-side INI into javascript Pin
enhzflep11-May-10 18:05
enhzflep11-May-10 18:05 
Questionworking with weather.com free html applet Pin
bill bradley11-May-10 16:41
bill bradley11-May-10 16:41 
I have this code snippet from Weather.com that displays local weather.
In the script portion of code is the var wx_locID which is the zip code of the hosted site.

I am trying to enhance this functionality by allowing the client to enter their own zip code, have it saved, then retreived using a cookie, then pass the value to the var in the script when the client clicks on the weather icon.

I am having difficulty passing the value to the var.

Any perspective would be appreciated.

Here is the script:


<div id="wx_module_7847" style="padding-left: 225px;" >

<a href="http://www.weather.com/weather/local/34979">Your City's Weather Forecast, AA (11111)</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 = '08043';

/* 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_7847';

/* 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=300x250*WX=FHW*LNK=SSNL*UNT=F*BGI=spring*MAP=null|null*DN=askbillbradley.com*TIER=0*PID=1177763389*MD5=be2899d91f6feddef8216cd03ec459a7';

document.write('<scr' + 'ipt src="' + document.location.protocol + '//wow.weather.com/weather/wow/module/' + wx_locID + '?config=' + wx_config + '&proto=' + document.location.protocol + '&target=' + wx_targetDiv + '"></scr' + 'ipt>');
</script>


</div>
QuestionClient-Side Start-Up Script Pin
bill bradley11-May-10 16:36
bill bradley11-May-10 16:36 
QuestionFREE php jquery forms with recaptcha Pin
Yoingco11-May-10 11:42
Yoingco11-May-10 11:42 
QuestionWebsite not granting access to its files Pin
fjparisIII9-May-10 14:52
fjparisIII9-May-10 14:52 
AnswerRe: Website not granting access to its files Pin
Peace ON9-May-10 21:03
Peace ON9-May-10 21:03 
GeneralRe: Website not granting access to its files Pin
fjparisIII10-May-10 3:46
fjparisIII10-May-10 3:46 
GeneralRe: Website not granting access to its files SOLVED Pin
fjparisIII10-May-10 15:33
fjparisIII10-May-10 15:33 
QuestionMoving website from 32-bit to 64-bit Pin
Gregory Gadow7-May-10 6:34
Gregory Gadow7-May-10 6:34 
AnswerRe: Moving website from 32-bit to 64-bit Pin
Peace ON7-May-10 21:28
Peace ON7-May-10 21:28 
GeneralRe: Moving website from 32-bit to 64-bit Pin
Gregory Gadow10-May-10 4:16
Gregory Gadow10-May-10 4:16 
QuestionImplementing multiple checkboxes with their own actions Pin
calivw787-May-10 4:48
calivw787-May-10 4:48 
AnswerRe: Implementing multiple checkboxes with their own actions Pin
Not Active7-May-10 5:01
mentorNot Active7-May-10 5:01 
GeneralRe: Implementing multiple checkboxes with their own actions Pin
calivw787-May-10 5:13
calivw787-May-10 5:13 
GeneralRe: Implementing multiple checkboxes with their own actions Pin
Not Active7-May-10 6:57
mentorNot Active7-May-10 6:57 
Questiononly default controller is loading for all request - Critical Pin
Jayapal Chandran5-May-10 21:39
Jayapal Chandran5-May-10 21:39 
AnswerRe: only default controller is loading for all request - Critical Pin
User 17164925-May-10 22:04
professionalUser 17164925-May-10 22:04 
GeneralRe: only default controller is loading for all request - Critical Pin
Jayapal Chandran6-May-10 23:31
Jayapal Chandran6-May-10 23:31 
GeneralRe: only default controller is loading for all request - Critical Pin
User 17164927-May-10 7:48
professionalUser 17164927-May-10 7:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.