h2020-westlife-eu / virtualfolder

Virtual Folder
http://internal-wiki.west-life.eu/w/index.php?title=D6.1
MIT License
1 stars 0 forks source link

Filepicker.html example don't redirect to portal when using Firefox #41

Closed TomasKulhanek closed 7 years ago

TomasKulhanek commented 7 years ago

I discovered another issue in Firefox, tried the DISVIS portal but clicking on “choose VRE file” redirects to https://milou.science.uu.nl/cgi/servicesdevel/DISVIS/disvis/filepickercomponent.htmland returns HTTP 404 Not Found. In Chrome it redirects to portal.west-life.eu, so I need to figure out how the script precedence before is processed in Firefox and let you know.

I could indeed replicate the error with Firefox, no new window and a 404 error. It works fine with Safari by the way.

TomasKulhanek commented 7 years ago

It’s because the openwindow() fails on reference not found target = event.target.parentNode.getAttribute('for'); firefox might contain the target at event.originalTarget.parentNode.getAttribute('for');

Either fix the routine for Firefox or may be add an explicit element-id to the target I’ve update the instructions at https://tomaskulhanek.gitbooks.io/west-life-virtual-folder-documentation/content/integration-guide/link-component.html In this manner.