Developer forum

Forum » Development » RE: Click on dw:FileManager in a custom module, will no longer tricker the files popup.

RE: Click on dw:FileManager in a custom module, will no longer tricker the files popup.

Jacob Søndergaard
Reply

Hi guys

Click on dw:FileManager in a custom module, will no longer tricker the files popup in DW8.7.2.8. Its just dead. The yellow folder is there - but does not do anything.

We are using the component as following:

<dw:FileManager runat="server" ID="CaseTopImage" FullPath="true" />

Does anybody knows what have changed? It worked on the DW8.4.x.x

 

Best regards

Jacob Søndergaard

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

Could it be related to caching of the JS file?

Do you get an error from the browser developer tools console?

Or provide a link, and we can look at it.

 

 
Jacob Søndergaard
Reply

Hi Nicolai

I tryed clearing my cache and the problem is still there. But i can see i get an javascript error when clicking the button and looks like the problem is that it needs jquery.

ReferenceError: $ is not defined 
var valEl = $(strCaller);   
/Admin/FileManager/FileManager_browse2.js? (line 20, col 9)

Do i need to include jquery myself or should it work right out of the box?

The solution is: http://www.alumecobyg.dk and then go to Modules >> Cases and select any case to click the button.

 

Bedst regards

Jacob Søndergaard

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

It must be prototype it requires.

You have to start your aspx like this:

<head runat="server">
<dw:ControlResources ID="cr1" runat="server" IncludePrototype="True" />
</head>

The head with runat server and the control resources will make the controls able to add the required JS and CSS files.

Read more here:

http://devierkoeden.com/articles/building-dynamicweb-module-admin-interfaces-1-introduction.aspx

 BR Nicolai

Votes for this answer: 1
 
Jacob Søndergaard
Reply
This post has been marked as an answer

Thanks, that did the trick.

 

Best Regards

Jacob Søndergaard

 

Votes for this answer: 1

 

You must be logged in to post in the forum