CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 [RESOLVED]File Upload: won't popup Attachment window

Print topic Send  topic

Author Message
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();  
}
View profile  Send private message
Chris__T


Posts: 339
Posted: 01/23/2009, 2:54 PM

Resolved. GRRRRRRRRRRRRRRR Sometimes I hate programming. :-@

Javascript is case sensitive.

my record is permit8, not Permit8

Excuse me while I get the baseball bat to attack my computer
View profile  Send private message
Oper


Posts: 1195
Posted: 01/24/2009, 7:45 AM


jeje at least you found it in 59min.

i had been searching for hours and at the end its a uselss "." dot :-)
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
Chris__T


Posts: 339
Posted: 01/26/2009, 6:01 AM

Hehe. Don't you hate when that happens??
View profile  Send private message
chrisna

Posts: 15
Posted: 05/25/2009, 1:15 AM

Chris, the OpenPopUpList function in your example used to open pop up window from a record form.
If I have form, not a record, and I want to open popup window that contain a record from the grid with a simple query (emp_id = emp_id).
Could you please give the html code so the TempID can get a value from record in the grid that I want to display.

var TempID= ????
var win=window.open("employee_popup.asp?emp_idI="+TempID)

thanks in advance for your help
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.