[TYPO3-core] RFC: Feature #4923: provide new inputfield "directorypicker" in BE
Ralf Hettinger
ng at ralfhettinger.de
Thu Jan 31 19:35:54 CET 2008
Hi Ernesto,
thanks for digging that deep, I will have a look at that next week. Nevertheless
I think a "single" dirpicker could be solved better by using not an input field
with "strange" wizard GET params but rather a single group field.
The input field used as dirpicker is somewhat an already deprecated thing
suggested by the very first dirpicker-demo extension, I would think.
I added a new dirpicker demo to http://bugs.typo3.org/view.php?id=4923 , that
doesn't use an input field with ?mode=folder GP but a single group field. Which
I think should be the way such a dirpicker is used and the one that should be
concentrated on when testing for reliability.
Would be happy to hear if that part works for you.
Cheers Ralf
Ernesto Baschny [cron IT] schrieb:
> Hi,
>
> the link browser had a javascript, but the problem was the loaded
> extension "linkhandler" in my environment, which XCLASSed
> class.browse_links.php and since it doesn't include the new changes, it
> doesn't work ("BrowseLinks is not defined"). So that is resolved.
>
> The last error that I still have is on the single directory chooser,
> when selecting a directory in the popup. Javascript alert:
>
> "Error - reference to main window is not set properly"
>
> This comes from line 1045 in class.browse_links.php.
>
> In the html-source of the page I have:
>
> function setReferences() { //
> if (parent.window.opener
> && parent.window.opener.content
> && parent.window.opener.content.document.editform
> && parent.window.opener.content.document.editform["data[][][]"]
> )
>
> notice the empty data[][][] structure, which is probably what is causing
> the trouble. This seems to need to come from bparams, which is not set
> in this "mode=folder". Does it work for you?? I wonder how.. :(
>
> Cheers,
> Ernesto
>
> Ingmar Schlecht wrote: on 31.01.2008 12:14:
>
>> Ernesto/Steffen, any pointers to Ralf how to exactly reproduce the
>> problem you encountered?
>>
>> cheers
>> Ingmar
>>
>> Ralf Hettinger schrieb:
>>
>>> Hi Ernesto,
>>>
>>> Ernesto Baschny [cron IT] schrieb:
>>>
>>>> Cool feature, yes! My tests gave the same results as Steffen Kamper
>>>> already noted:
>>>>
>>>> - Dir picker works great
>>>> - File picker gives a JS error and no file can be selected
>>>> - Dir picker (single) gives a JS alert window: "Error - reference to
>>>> main window is not set properly".
>>>
>>>
>>> I seem not to be able to reproduce this.
>>> Trunk is of revision 2961. Tested with Firefox 1.07-2 Win+Linux and
>>> IE 7 Win.
>>>
>>> Could you please let me know
>>> - where you encounter the file picker's problem (from within the
>>> dirpicker demo
>>> record or from any other file picker)?
>>> - if your are using a pure trunk co or have any other patches applied
>>> (as
>>> Steffen has reported that this was being his problem)
>>> - which browser you are using when encountering the problems?
>>>
>>> Thank you!
>>> Ralf
>>
>>
>>
More information about the TYPO3-team-core
mailing list