That's not what I'm lookinf for..I want a form preview with no images.. Preview the text fields..
Main Topics
Browse All TopicsHI,
I need an HTML form preview script.. When a user clicks submit a pop-up should come up with the information the user entered in the form. I would also like when the window pops up the background dims.. Does anyone have a script that can do this??
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
When the background dims is called a modal window, I use jQuery UI for this
http://jqueryui.com/demos/
Your preview script would probably be quite custom, but if you used this modal window to design your preview I can help with the script to populate it with your field values
For the effect you want (a popup type "window" with the rest of the page grayed out) you can look at the sample files at http://www.ee-stuff.com/Ex
As far as the preview of the form info let me know what you need for that part, if you even need help with it. The code to have the dynamic popup window is basic but can pretty easily be adapted. There are other ways to do it using premade scripts or even some frameworks (like Lightbox or possible jQuery, etc).
Let me know how this helps or if you have a question.
bol
Is the modal window another web page? If so it would need to be able to use server script so it can read the form info and display it. It should also make the form again (using hidden form fields) so that can be submitted to the page for processing. Please let us know what server language you will be using to process the form and we can use the same to show the preview. Also, if you want specific code, we need to see the form tag and fields.
bol
Sorry for the delay. It has been a busy week.
Javascript can be used, if needed, and using another page would be nice (and a way to avoid depending on Javascript). First I need you to clarify what you mean be a modal window. Some of the methods to make them are browser specific and there can be some big differences in the code (and it is still called a "modal window"). A key part that needs clarification is if this is really a new window (i.e. has a different url) or just an element on the page that is layered, hidden/shown, etc.
bol
OK. Then I wouldn't worry about using another page for it; there isn't really an advantage or need for that.
Please provide either a sample of the form and input, etc tags or a summary of the ones you use. I can provide Javascript for getting the info from the form. I would also need the id of the element if you will need help filling it with the values.
If you prefer to have it in JQuery (because you use it for all of your script) then I am not sure I can help. I don't really use it, except in some rare cases. I will still be glad to help but might be limited on the actual code I can provide.
Thanks though for the response and with some details from you we should be able to at least give you some code to get started.
bol
Thanks for the form and input code. I used it to make an example of the Javascript to get the info from the form. Let me know how it works and test in various browsers. I might need some tweaking and I didn't actually test it (but I have made the code enough it should be close).
Let me know if you have a question.
bol
I thought you had that from the second expert comment. I do have a basic example of how to do it using just html, javascript and CSS (see snippet below). You would adapt that so the Javascript to get the form fields would fill the "formDiv" element (maybe using innerHTML).
Let me know how that helps or if you have a question.
bol
Not exactly. I don't know that I would put the line in its own function. The code to get the form values and show them can all be in one function. Use the code I provided to get the values and then your line to show them would look like ...
document.getElementById('f
So all together it might look like the code in the snippet below.
bol
Business Accounts
Answer for Membership
by: jagadeesh_motamarriPosted on 2009-10-15 at 11:16:45ID: 25583216
Try -
eate-a-dyn amic-form- preview/
http://papermashup.com/cr
JM