/    Sign up×
Community /Pin to ProfileBookmark

JS and Frames Problem

Okay for a page i’m making, I have 3 frames, 1 has a form in it, and when I click the button for that form, I want a page to load in one of the other frames, how can I do this?

to post a comment
JavaScript

12 Comments(s)

Copy linkTweet thisAlerts:
@CharlesMay 15.2005 — Use that "target" attribute with the FORM element.
Copy linkTweet thisAlerts:
@szn00bularauthorMay 15.2005 — Could anyone give me an example of how you would use this? I don't see how it fits into that function. ?
Copy linkTweet thisAlerts:
@JPnycMay 15.2005 — I think he means target="frameName" inside the form tag.
Copy linkTweet thisAlerts:
@CharlesMay 15.2005 — And you'll need to use the transitional DTD:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Copy linkTweet thisAlerts:
@szn00bularauthorMay 16.2005 — I think he means target="frameName" inside the form tag.[/QUOTE]

This doesn't work, the frame is in a differen't html file, and neither does it work when using IFRAMES in the same file.
Copy linkTweet thisAlerts:
@CharlesMay 16.2005 — You're doing something wrong. Please post the URL.
Copy linkTweet thisAlerts:
@CharlesMay 16.2005 — The FORM element requires an "action" attribute.

See http://www.w3.org/TR/html401/interact/forms.html .
Copy linkTweet thisAlerts:
@szn00bularauthorMay 16.2005 — The FORM element requires an "action" attribute.

See http://www.w3.org/TR/html401/interact/forms.html .[/QUOTE]


The action is in the JavaScript, there's no server side scripting going on, this doesn't help at all.

All I need to know is how to make the FTP directory load into one of the frames.
Copy linkTweet thisAlerts:
@CharlesMay 16.2005 — The action is in the JavaScript, there's no server side scripting going on, this doesn't help at all.[/QUOTE]There's your problem, then.
Copy linkTweet thisAlerts:
@szn00bularauthorMay 16.2005 — So it's impossible to make a page load in an IFRAME by clicking a button? This seems very unlikely.
Copy linkTweet thisAlerts:
@CharlesMay 16.2005 — It is quite possible as I indicated above. But you are trying to make a JavaScript dependant page and that is very bad.
×

Success!

Help @szn00bular 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...