HelloZeroNet / HelloZeroNet/ZeroNet

Load Js In Modal

Open
#2,373 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

I want a script reference to be loaded in Modal to use its functionality

I have tried to put in the modal.cshtml but it is not working
My Modal opening code is as seen below

_createModal = new app.ModalManager({
ViewUrl: abp.appPath + 'path',
scriptURL: abp.appPath + 'js path',
modalClass: 'class'
})

and then opening modal with this command
_createModal.open().

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the modal.cshtml example and trace how app.ModalManager handles the scriptURL option when _createModal.open() is called. Reproduce the reported failure using the provided modal configuration and determine whether the referenced script becomes available in the modal; done means the requested script functionality works when the modal opens.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.