/    Sign up×
Community /Pin to ProfileBookmark

Newbie.. need a lot of help!!

I have to create a form button named Create Resume. When clicked, this button has to call a function that generates a new Web page displaying a resume based on the user input. I have to use document.write() method to populate the newly generated web page that has all of my xhtml elements, variable values, ect.. this is all I have.. I am stuck with the document.write function that calls the web page.. any help would be greatly appreciated!!

<form action=”createResume.htm” onsubmit=”return validate_form(this);”
method=”post”>
<input type=”submit” value=”Create Resume”>
</form>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@justinbarneskinApr 20.2010 — Like maybe....[code=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD><TITLE>Tu8-7am26</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<STYLE type=text/CSS>

</STYLE>
<SCRIPT type="text/javascript">
function validate_form(t){te=t.elements; var res =window.open('','res','top=150px, left=200px, width=400, height=375, location, menubar, scrollbars, toolbar, resizable, status');
res.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"nt"http://www.w3.org/TR/html4/strict.dtd">n<HTML>n<HEAD><TITLE>job history</TITLE>n<META http-equiv=Content-Type content="text/html; charset=UTF-8">n<STYLE type=text/CSS>nnn</STYLE>n'+'<'+'SCRIPT type="text/javascript">nn'+'<'+'/SCRIPT>n<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>n<BODY scroll="auto"><h2>'+te[0].value+'</h2><h3>'+te[1].value+'</h3><h4>'+te[2].value+'</h4><h5>'+te[3].value+'</h5>nn</BODY></HTML>');
res.document.close();

return false

}
</SCRIPT>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY scroll="auto">
<form action="createResume.htm" onsubmit="return validate_form(this);"
method="post">
<input value="Name here"><br>
<input value="silly stuff here"><br>
<input value="fill space with pomp and self congratulating accolades"><br>
<textarea>obligatory begging to work for food</textarea>

<input type="submit" value="Create Resume">
</form>
</BODY></HTML>[/code]
×

Success!

Help @kmbenton85 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.16,
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,
)...