WisejResizeUploadSample on vb in a user control

0
0

Hi,

I’ve a problem with the ImageUpload extension that resize the image before uploade…I’m using vb and not c#, when i click on the button that should call the “upload” event I’ve this error:

Wisej: Widget class not found, scheduling for lazy loading: wisej.web.ext.ImageUpload

Wisej: onActionCreate Error creating:  { , middleRig………..

Wisej: Widget not found: id_782; function: upload

The steps that I’ve followed are:

  1. I’ve create the Folder Platform and inside it the file named “Platform.wisej.web.ext.ImageUpload.js”
  2. I’ve defined the class ImageUpload that inherits Upload
  3. In my page where I need to upload the files, I’ve added a button to “Resize and Upload Image” and on its click I do this:

 Me.MyImageUpload.Call(“upload”, “”)

What can i check?

I’m using the control in a user control. Then I would like to use it on other pages, deployed in a different project, is it possible? In this case I’ve to added the js file also to the main project or is it includes in the user control?

Thank you

 

Giorgia

  • You must to post comments
0
0

I’ve named the file Platform.Wisej.Web.ext.ImageUpload but doesn’t work yet.

In the js file, when I define the class:

qx.Class.define(“wisej.web.ext.ImageUpload”, {

extend: wisej.web.Upload,

properties: {

I have to define the name “wisej.web.ext.ImageUpload” or I have to set the name with also Platform at the start?

Thank you

 

Giorgia

  • You must to post comments
0
0

Hello,

Looks like the VB.NET compiler doesn’t use the folder names to build the embedded resource name. It only uses the default namespace of the project + the file name.

You can still place your embedded resources in \Resources or \Platform in VB.NET, but you also have to rename the file like this:

  • \Resources\my-code-to-bundle.js -> \Resources\Resources.my-code-to-bundle.js
  • \Platform\my-code-to-bundle.js -> \Platform\Platform.my-code-to-bundle.js

For more info, please check out the relevant documentation about Embedded Resources (Look a the VB.NET alert).

HTH,
Alaa

  • You must to post comments
0
0

Hi Alaa,

when I create the file js, I create the folder “Platform” and I enable the attribute in the AssemblyInfo file.
To embedded the javascript I have to do something else? If yes, what I have to do?

Thank you very much for the support

  • You must to post comments
0
0

Thank you for the answer, yes I’ve remove comment on the assemblyinfo.vb.file..I’ve attached an example, I rewrite it in c# but I have the same error, so I miss something.

Thank you

  • You must to post comments
0
0

Hi,

Would you be able to attach a sample so I can take a look ?

Looks like you haven’t enabled the attribute in your AssemblyInfo.vb file.

Can you enable it and then tell me if it’s working ?

Best,
Alaa

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.