Hello,
I have one form on the page for addition and it is related with 2 tables in the database.
Eg. Say i have a table named event
and one table named eventphotos
. The uploadify plugin of jquery for eventphotos
works just fine, however, event
is the master table and eventphotos
is the child table. Thus when i upload the photo due to asynchronous behaviour of uploadify the photo gets submitted on server but there is no EventId
present for this photo which throws exception when i try to insert the photo into evenphotos
. I hope you got the idea what the problem is.
I want that when the user clicks on the submit
button on the form, the photo uploading process should start and it should only get inserted into database once the master record is inserted into table.
How do i make this happen?
Thanks in advance :)