rejetto forum

$50 Reward for Fix - Upload Error - Blank Window - With Beta Releases

0 Members and 1 Guest are viewing this topic.

Offline tbafromca

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
    • Digital Glue
I am using the en_ultima_blue_2205.tpl template (HFS Live Ultima Edition 2 build 205). With the stable 2.2e Build #154 release the ~upload window appears and works fine. With the same template used on the past 6 beta releases the window is blank with no underlying source code. Using FireBug I can see the below error:

Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method:

Googling provided the below:

Fixing the Permission denied to get property XULElement.selectedIndex error
If you're ever doing some AJAX stuff with a text-box input it's possible that your Firebug will throw a very unusual error:

Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method:

The problem lies in Firefox specifically and it's autocomplete functionality. To fix it all you need to do is update your input field with the following code:

<input type="text" autocomplete="off">

The autocomplete bit of code stops Firefox from attempting to complete the content in the box (thus throwing off the DOM or something). It's not XHTML 1.0 transitional complient but it does stop Firefox from throwing errors.

Didn't seem to fix. The wcreator.js code is below:

// LIVE Popup Window Creator by AQ
function create_window(wd,ht,addr,dirs,menub,toolb,statusb,scrollb,resize,fullscr,destiny,wname){
myleft = (screen.width) ? (screen.width - (wd) ) / 2 : 100;
mytop = (screen.height) ? (screen.height- (ht) ) / 2 :100;
settings='top=' + mytop + ',left=' + myleft + ',width = '+wd+' ,height= '+ht+' ,location='+addr+',directories='+dirs+',menubar='+menub+',toolbar='+toolb+',status='+statusb+',scrollbars='+scrollb+',resizable='+resize+',fullscreen='+fullscr+''
uploadwindow=window.open(destiny,wname,settings);
uploadwindow.focus();}

The template code:

src="'+using_server+'js/wcreator.js"

[upload-link]
<div style="position:absolute;top:16px;right:15px;border:0px;z-index:7;width:21px;height:25px;"><script language="javascript">document.write('<a href="#" title="'+send_files+'" onclick="create_window(655,435,\'no\',\'no\',\'no\',\'no\',\'yes\',\'yes\',\'yes\',\'no\',\'%encoded-folder%~upload\',\'uploadfiles\')" onmouseover="img_upload.src=\''+upload_over+'\';" onmouseout="img_upload.src=\''+upload_normal+'\';"><img name="img_upload" src="'+upload_normal+'" border="0" /></a>')</script></div>

Any tips to fix are greatly appreciated. Thanks.



« Last Edit: January 20, 2009, 01:49:37 AM by tbafromca »


Offline tbafromca

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
    • Digital Glue