/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Need an assist w/javascript

I’m adapting the “lookup script” for use on my website. (see article, this website: script at [url]http://www.webreference.com/js/column15/code1.html[/url] )

I would like to place it in the left frame of my homepage and have it display resulting URL from the “Lookup” in the right frame. Seems like it should be simple, but I’m very new to this stuff.

Clues/help??? Please???

Thanks,
Art

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@FangApr 05.2009 — function display() {
var list = document.organizer.list;
if (list.selectedIndex > -1) // if an option is selected
[COLOR="Blue"]rightFrameName.[/COLOR]location.href = list.options[list.selectedIndex].value;
}
Copy linkTweet thisAlerts:
@BrestaeauthorApr 05.2009 — Thank You!!!! I'll give that a shot!
Copy linkTweet thisAlerts:
@BrestaeauthorApr 05.2009 — I tried the suggestion by FANG, rightFrameName.location.href

That causes the entire left frame (where the script lives), to be displayed in the right frame, but without the script having returned its result. So the left frame simply gets reproduced in the right frame.

Further suggestion?

Thanks very much!
Copy linkTweet thisAlerts:
@FangApr 06.2009 — Is this the [I]name [/I]of the right frame?

What is the value returned by [I]list.options[list.selectedIndex].value[/I]
Copy linkTweet thisAlerts:
@BrestaeauthorApr 06.2009 — Thanks for replying again...

I figured it out. Had to add [B]parent.[/B]rightFrameName.location.href =

Thanks for the push... that got me barking up the right tree!
×

Success!

Help @Brestae spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...