Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop Up Windows

Status
Not open for further replies.

kylelunn

Programmer
Joined
Jun 10, 2003
Messages
2
Location
GB
I'm trying to take user input from a form and display it in a pop up window for the user to confirm their details before inserting a record into a db.
Any ideas how this can be done with Coldfusion or is a Javascript solution needed?

New to all this CF stuff - thanks in advance folks.
 
this will get you going:

i use this script on the form page like this:
<script language = &quot;javascript&quot;>
function confirmDelete(firstName, lastName, id){
action = false;
action = confirm(&quot;Are you sure you want to delete: &quot; + firstName +&quot; &quot;+ lastName);
if (action){
window.location = &quot;deleteuser.cfm?id=&quot;+id
}
}
</script>


the link i use to call the function is:
<a href=&quot;javascript: confirmDelete('#firstName#', '#lastName#', '#userID#');&quot;>Delete</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top