Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 6 results for
promptbox
- Page 1
Submiting form with custom prompt
Programming
Web Development
13 Years Ago
by ivan3510
…('body')[0].appendChild(
promptbox
)
promptbox
= eval("document.getElementById('prompt').style")
promptbox
.position = 'absolute'
promptbox
.top = 100
promptbox
.left = 200
promptbox
.width = 300
promptbox
.border = 'outset…
Re: Submiting form with custom prompt
Programming
Web Development
13 Years Ago
by Graphix
You can easily ask the user whether he wants to submit the form or not: [CODE]<form method='post' action='' onsubmit='return confirm("Are you sure you want to submit this form?");'>[/CODE] The confirm() returns true if the user selected "yes" and false if the user selected "no". ~G
Re: Submiting form with custom prompt
Programming
Web Development
13 Years Ago
by ivan3510
OK. But I want that this popup looks better.
Re: Submiting form with custom prompt
Programming
Web Development
13 Years Ago
by ivan3510
Is there some other way for creating javascript popup that will be able to submit form by pressing a button? (The same as when logging to this site.) Sorry for my bad English.
Re: Submiting form with custom prompt
Programming
Web Development
13 Years Ago
by Graphix
Well, that is alot more difficult. Anyway here how it is done: <form name='MyForm' onsubmit='checkValue();' action=''> And then in the JavaScript: [CODE]var form_allowed_to_submit = false; // This is a global variable function checkValue() { if (form_allowed_to_submit == false) { prompt2('Confirm','Do you realy want to submit form?', '…
Re: Submiting form with custom prompt
Programming
Web Development
13 Years Ago
by ivan3510
Thank you very much.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC