Comments (4)
Hi Ben, which version of the alert.js file are you using? And do you have a reference to the actual .js file in your project as well?
from alertjs.
Here's some more info about what else needs to be included in the project: https://github.com/PaulNieuwelaar/alertjs/wiki/Documentation-v3.0#typescript-definition
from alertjs.
Hi Paul, I'm using version 2.1, implemented several years ago and with no need for Dialog functionality. I do not have a reference to the .js file no, I guess this must be the error? I guess also that I will need to convert the .js file to TypeScript in order for it to be compatible. I will do this and come back.
Wrt https://github.com/PaulNieuwelaar/alertjs/wiki/Documentation-v3.0#typescript-definition, this only gave me the location of the TypeScript definition file, I'm not using PCF controls so I don't see any other relevant info there...
from alertjs.
Hi Ben, Ah yeah the TypeScript definition was created from 3.1+ and it hasn't been tested with 2.1 (which we no longer support). In theory it should still work as the solutions are backwards compatible, as long as you don't use the 3.0+ features. Only thing that may have issues is the jQuery reference as v2.1 tries to get this from the parent page, which may not exist in a ts project.
You'll need to include the js/img/css files in your project manually. You shouldn't need to convert the js to ts. Just make sure the folder structure matches the CRM solution, e.g. /alertjs/js/alert.js, /alertjs/js/alert.d.ts, /alertjs/css/alert.css, /alertjs/img/alert.png, /alertjs/img/alert.gif. Then when you import the alert module it should match up with the other files.
from alertjs.
Related Issues (20)
- Pass value to Callback function from HTML HOT 3
- question before buying the third version HOT 4
- Alert.showWebResource -404 ERROR HOT 1
- Buttons not working HOT 1
- Unable to call a function inside a webresource from OK button HOT 1
- Use alert.showwebresource to get message from user HOT 9
- Supportability for Unified Interfaace HOT 1
- Alert.showWebResource fail in CRM build 1710 HOT 5
- Alert.getCrmWindow() is not working HOT 6
- Alert.showWebResource custom button closing alert HOT 4
- Buttons have no ID optionality HOT 3
- Dynamics CRM 365 (v9) compatibility HOT 7
- Issue with populating lookups in the new Dynamics 365 UCI (Unified Client Interface) HOT 5
- Issue using input fields on UI on Android devices in "portrait mode" HOT 1
- Xrm.Page / formContext HOT 1
- Theme colors HOT 2
- Change font-size issue HOT 2
- Alert js is not working on HTML web resource HOT 3
- New Look and Lookups inside dialogs.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alertjs.