Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Proeders attachment mod
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

PPSSWeb
Junior Member

312 Posts

Posted - 04 August 2008 :  15:36:23  Show Profile
quote:
Originally posted by texanman

PPSSWeb:
Seems to work fine but the pop_upload_new is not a pop anymore i.e. it will open in the current page you are at. Also, the file attach from a post is screwed now. First I get the pop_upload_new "two" "browse" boxes. when I try to uplaod a file, I get the following error:

Microsoft VBScript runtime error '800a01c9'
This key is already associated with an element of this collection
/upload.asp, line 37

where line 37 of upload.asp is: UploadRequest.Add name, UploadControl





The pop up not working would be a problem with the link in myfiles.asp. It should be using the window.open function to open the popup.
Response.Write	"<a href=""#"" onClick=""window.open('pop_upload_new.asp?Loc=myfiles','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=800,height=330');""><acronym title=""Attach File..."">" & getCurrentIcon(strIconPaperClip,"","") & "</acronym></a><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """>To attach a file, click here.</font><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><br /></font>" & vbNewLine 			


The error sounds like it is trying to insert duplicate keys. I did not have any issue with that. Did you change anything in upload.asp?<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 04 August 2008 :  15:45:25  Show Profile
quote:
The error sounds like it is trying to insert duplicate keys. I did not have any issue with that. Did you change anything in upload.asp?


Nope! nothing changed in upload.asp.<
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 04 August 2008 :  16:08:09  Show Profile
I expect you have an end if out of place somewhere. You should only be getting one browse box. I think the file is being uploaded twice. Take a run through and make sure all of the if statements are closed with an end if. If they are, post copies of your pop_upload_new.asp and outputfile.asp and I will see if I can locate the problem.<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 04 August 2008 :  16:15:10  Show Profile
Sorry, I forgot to correct that, there is one browse box now after I made the changes in ouputfile. But, attaching a new file to a topic is where I am getting the error. An existing file works fine when attaching it to a topic. The other problem is pop_upload_new. Even though it opens up in an existing page, it it does upload the file. Since it is in an existing page I can not use "close window" I have to use 'back arrow".
Thanks<

Edited by - texanman on 04 August 2008 16:15:59
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 August 2008 :  11:15:07  Show Profile
If you can post a link to the files. I can have a look to see if I can find the problem.<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 05 August 2008 :  11:44:06  Show Profile
Here are the files:

myfiles
OutputFile
pop_upload_new

Some strings are translated, so they may appear weird to you.

Thanks<

Edited by - texanman on 12 August 2008 12:37:16
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 August 2008 :  13:18:14  Show Profile
It opens in a new window for me using both IE and Firefox. I am not sure why that is not working for you as it is done the same way as other pop up windows.

The error you are getting is in pop_upload_new.asp, lines 122 and 124 are duplicates. Removing one of these lines will remove the extra browse box and solve the outputfile error.<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 05 August 2008 :  13:41:52  Show Profile
quote:
Originally posted by PPSSWeb

It opens in a new window for me using both IE and Firefox. I am not sure why that is not working for you as it is done the same way as other pop up windows.

The error you are getting is in pop_upload_new.asp, lines 122 and 124 are duplicates. Removing one of these lines will remove the extra browse box and solve the outputfile error.



I am using IE7. The error in post.asp disappreared now with the removal of the duplicate line.
But, the pop issue is still there. How can we popup a page from itself? from the post.asp we are popping up pop_upload_new. But when you open pop_upload_new is it supposed to pop up? Just wondering.

I also notice something new. When you go to myfiles.asp and delete an existing file, it deletes the file but also pop_new_upload opens.<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 05 August 2008 :  13:45:16  Show Profile
If I can replace "Close window" with "back to the forum" it should be fine even without the popup. What do you think? Because when you close the window, you off the forum!<

Edited by - texanman on 05 August 2008 13:49:19
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 05 August 2008 :  13:55:01  Show Profile
emmmm I think I see what you did. The upload takes place from myfiles.asp and not by opening pop_upload_new. Sorry for the confusion. I just noticed the link upload files on the top of the myfiles.asp page.
Now if you can just help with popping when I delete an existing file, that will be great.<
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 August 2008 :  15:11:51  Show Profile
Sorry, I didn't see that issue before. I should read more carefully next time.

Unfortunately, I don't see that you made any changes to the delete function in the myfiles.asp page that you linked to above. Also, using those files, I could not replicate the problem. The delete code is between lines 127 - 155. Did you make any changes in that section that are not in the files linked above?<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 05 August 2008 :  15:26:08  Show Profile
No I haven't added anything other than your changes. My old files do not have this issue. I mean when I delete an existing file pop_upload_new popup doesn't show up.<
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 August 2008 :  15:59:32  Show Profile
quote:
Originally posted by texanman
I mean when I delete an existing file pop_upload_new popup doesn't show up.



I think I am really confused as to what is happening or what you are looking for. Sorry for that. When you delete a file from the myfiles page, you should be presented with the standard page that says File deleted with a link to go Back to Uploads. Clicking on this link takes you back to the myfiles page to where all of the user files are displayed. Here the user can either upload, delete or display the files. Are you looking to be presented with the upload popup instead of the myfiles page?
<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 05 August 2008 :  16:09:21  Show Profile
No to your question at the end. What happens is like. In myfiles.asp I click on "delete" an existing file. As you said, the file gets deleted and it says so it is deleted and I see the link to go back to myfiles. On top this, I also see pop_uplead_new pops up. I am not sure why the pop_upload_new pops up. Still confused? <
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 August 2008 :  16:16:37  Show Profile
quote:
Originally posted by texanman

No to your question at the end. What happens is like. In myfiles.asp I click on "delete" an existing file. As you said, the file gets deleted and it says so it is deleted and I see the link to go back to myfiles. On top this, I also see pop_uplead_new pops up. I am not sure why the pop_upload_new pops up. Still confused?



That clear it up. Now I am only confused as to why it is happening.

I just tested your linked files here with IE6, IE7, and Firefox and did not have that happen. I don't see any reference to pop_upload_new in the delete function from myfiles in those files. That is very confusing. I will look at it again tomorrow with a hopefully clearer mind. I have to head out for now.<
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07