XUpload - prototype problem

Posts: 3
Joined: Jan 05, 2008 6:41 pm

prototype problem

#1 Postby ciuli » Feb 14, 2008 7:39 pm

It seams that if i add the prototype framework into header the page is returning some errors in prototype file.
Becose of this javascript file xupload.js which is locate in the same page near the end body tag.

What should i do to make them work together, i really need prototype to work without any errors.

Thanks in advance.

User avatar
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Feb 18, 2008 7:39 am

I only know that we use one same-named function from Prototyped:

Code: Select all

function $(elem){return document.getElementById(elem);}
You can comment or remove it from xupload.js and test.

If still no luck, email me zip with your exact Prototype .js file, I will play with it.

Posts: 8
Joined: Aug 04, 2008 11:11 am

#3 Postby giorrrgio » Aug 04, 2008 12:59 pm

I confirm that the issue exists in the pro version and is fixed by removing the $() function from xupload.js.
This is so good beacause now I can easily call Ajax.Updater after upload completion.