/    Sign up×
Community /Pin to ProfileBookmark

Big Problem – Please Help!

Hi, I’ve been designing a type of form that you can type in your information in simple input forms then you click submit and i used javascript to write it all out onto a virtual page it makes. the virtual page is made when i make a function like the following:

function writePage()
{
var input=document.form.input.value
document.write(input)
}

when it does something like that it makes a new page and displays it.. everything was working out great until i added in a huge amount of code into the scripting and now when the virtual page is made it doesnt display it.. just a blank screen.. and when i view its source i can see that it wrote the code out properly till on the second line it just stops.. i have a feeling it has to do with running out of cache or something? please help and sorry about the long story

peace
Brian

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@VladdyApr 06.2005 — ..one link is worth a thousand words ...
Copy linkTweet thisAlerts:
@BigMoosieApr 06.2005 — Yes, we can hypothesise about what errors you may have made but what good would that be? There are many reasons your code may not be working.
Copy linkTweet thisAlerts:
@briannagle_2004authorApr 06.2005 — Here is the actual files.. if you try the form you'll find it really easy to understand. i have no idea what i going wrong because there are no errors being displayed at all..

[upl-file uuid=02d40736-80ea-4a1d-88b7-8531097669ed size=2kB]form.zip[/upl-file]
Copy linkTweet thisAlerts:
@BigMoosieApr 06.2005 — There is only one slight error in you code and it appears at the very end of the javascript file:

[CODE]
if (text10checkbox==true || text10commentcheckbox==true)
{
document.write('<tr>')
document.write('</table></html>')
}
}
[/CODE]


Tt should be:

[CODE]
if (text10checkbox==true || text10commentcheckbox==true)
{
document.write('<tr>')
}
document.write('</table></html>')
}
[/CODE]
Copy linkTweet thisAlerts:
@BigMoosieApr 06.2005 — oh yeah and you should have document.open(); before all of your document.write(); and document.close(); after all of your document.write();
×

Success!

Help @briannagle_2004 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.18,
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,
)...