Chris__T
Posts: 339
|
Posted: 01/23/2009, 1:55 PM |
|
Ok, so I already have one file upload component working successfully in a form.
I have a different form on the same page that has a fileupload component. Except this one won't bring up the popup to do file uploading.
the one that works successfully has the function OpenPopUpList() name.
since my 2nd file upload will be using a different attachment screen, I created another javascript function, OpenPopUpList1(). Everything is changed in it to correspond with the 2nd record's file uploading
When you click the link, nothing happens. It shows it's linked to this function. Nothing happens.
When I change it's href source property to the other popup function, OpenPopUpList() , it pulls it up. Granted you can't do anything because it doesn't point to the correct file database, but it still pulls it up.
Everything is changed to correspond to the 2nd file upload, so none of the code gets mixed up. I've gone through all of my code to figure this out, but I can't find anything that would stop it from popping up a simple window.
function OpenPopUpList()
{
var w_left=Math.ceil((screen.width-480)/2);
var TempID=document.Permit12.TempID.value;
var win=window.open("Attachment_PZ_UPLOAD.asp?TempID="+TempID, "UploadFiles", "top=10,left="+w_left+",width=480,height=340,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
win.focus();
}
function OpenPopUpList1()
{
var w_left=Math.ceil((screen.width-480)/2);
var TempID=document.Permit8.TempID.value;
var win=window.open("Attachment_SI_PLANS.asp?TempID="+TempID, "UploadFiles", "top=10,left="+w_left+",width=480,height=340,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
win.focus();
}
|