Click here to Skip to main content
15,899,025 members
Home / Discussions / Java
   

Java

 
GeneralRe: gui in java Pin
igalep13216-Apr-10 22:25
igalep13216-Apr-10 22:25 
GeneralRe: gui in java Pin
AmbiguousName17-Apr-10 0:35
AmbiguousName17-Apr-10 0:35 
GeneralRe: gui in java Pin
igalep13217-Apr-10 0:53
igalep13217-Apr-10 0:53 
GeneralRe: gui in java Pin
David Skelly19-Apr-10 22:32
David Skelly19-Apr-10 22:32 
QuestionClose JFrame using JButton?? Pin
AmbiguousName16-Apr-10 2:20
AmbiguousName16-Apr-10 2:20 
QuestionObject Pannin problem in Java 3D Pin
ShafiqA14-Apr-10 2:19
ShafiqA14-Apr-10 2:19 
Questionhow to remove subMenuItem on its click Itself? Pin
002comp14-Apr-10 0:45
002comp14-Apr-10 0:45 
QuestionWeather.com script: create cookie to store zip code Pin
bill bradley13-Apr-10 13:11
bill bradley13-Apr-10 13:11 
Project I am working on has a courtesy Weather.com Page. The intent is to display the client side weather conditions--not the server.

The HTML code from Weather.com looks like this:

<script type="text/javascript">
</script>

<div id="wx_module_7847" style="padding-left: 225px;" >
if (!document.cookie && document.cookie != "") {
Alert("Cookies must be enabled in Internet Explorer to use Weather.com<br />in the Aloha Manager's Desktop.")
}
if (!document.amdczip && document.amdczip != "") {
createCookie('amdczip', '40212', 365)
}
var wczip = readCookie('amdczip')
document.write('wczip')


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


The VAR var wx_locID can be changed under license. However, I am having a difficult time requesting a Zip Code using a form/input, saving it as a cookie for future use, retreiving that cookie and assigning its value to the var wx_locID.

It var exists inside a script. I cannot modify that script per weather.com terms and conditions, but I need to pass the zipcode to it.

Any assistance would be appreciated.
AnswerRe: Weather.com script: create cookie to store zip code Pin
David Skelly13-Apr-10 22:34
David Skelly13-Apr-10 22:34 
Questionsupport for javascript?? Pin
AmbiguousName13-Apr-10 7:51
AmbiguousName13-Apr-10 7:51 
AnswerRe: support for javascript?? Pin
David Skelly13-Apr-10 22:32
David Skelly13-Apr-10 22:32 
Questionruntime exception Pin
pelach111-Apr-10 21:40
pelach111-Apr-10 21:40 
AnswerRe: runtime exception Pin
Nagy Vilmos12-Apr-10 11:19
professionalNagy Vilmos12-Apr-10 11:19 
AnswerRe: runtime exception Pin
TorstenH.12-Apr-10 20:15
TorstenH.12-Apr-10 20:15 
QuestionApplet Button thru HTML Pin
002comp11-Apr-10 19:49
002comp11-Apr-10 19:49 
AnswerRe: Applet Button thru HTML Pin
TorstenH.11-Apr-10 21:11
TorstenH.11-Apr-10 21:11 
GeneralRe: Applet Button thru HTML Pin
002comp11-Apr-10 22:33
002comp11-Apr-10 22:33 
GeneralRe: Applet Button thru HTML Pin
002comp12-Apr-10 0:15
002comp12-Apr-10 0:15 
GeneralRe: Applet Button thru HTML(Solved) Pin
002comp12-Apr-10 1:05
002comp12-Apr-10 1:05 
QuestionLocking the size of window Pin
sangeeta200910-Apr-10 21:31
sangeeta200910-Apr-10 21:31 
AnswerRe: Locking the size of window Pin
Richard MacCutchan11-Apr-10 14:34
mveRichard MacCutchan11-Apr-10 14:34 
AnswerRe: Locking the size of window Pin
TorstenH.11-Apr-10 20:54
TorstenH.11-Apr-10 20:54 
Questionshortest remaining time first Pin
Blackberry8910-Apr-10 2:31
Blackberry8910-Apr-10 2:31 
AnswerRe: shortest remaining time first Pin
Richard MacCutchan11-Apr-10 14:34
mveRichard MacCutchan11-Apr-10 14:34 
GeneralRe: shortest remaining time first Pin
Blackberry8912-Apr-10 11:10
Blackberry8912-Apr-10 11:10 

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.