Form Problem

M

Mark

Hi,

I've got an intranet site that allows a user to view a
weekly diary on a page. Clicking on an item on a
particular day...fires up a modal window with a form on it
that allows the user to change his details for that day.

Clicking on submit - posts the form to another .asp file
that updates the SQL Server table. Then closes all the
windows and returns back to the original window...forcing
a refresh to display the new days details.

The problem I have is that the modal window that is
displayed...as soon as you click the submit
button...brings up another blank window (the title of
which is the .asp file that the information is posted to).

I don't want this blank window to be shown.

I've tried specifying target in the <form> tag...but it
still does this. Does anyone know how to stop this
happening?

Thanks in advance...
 
R

Randy Rahbar

The problem I have is that the modal window that is
displayed...as soon as you click the submit
button...brings up another blank window (the title of
which is the .asp file that the information is posted to).

Is there an onclick event on your button that's calling a javascript
function? I'm not sure what else would cause the page to open in a new
window. You may want to post your form code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Php modal form to email 1
C# MVC Razor page form 0
Registration Form 7
Login form no longer working 2
Responsive form 0
A problem in viewing the output! 2
Contact form question 2
Popup HTML help 5

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top