+ 1

Alert

Hello Why the alert haven't the background ans text ? Thank https://code.sololearn.com/WdXz5QTKtV1a/?ref=app

2nd Jan 2019, 1:00 PM
Axelle
16 odpowiedzi
+ 4
Alerts dont support gui here you could create your own though.
2nd Jan 2019, 1:09 PM
D_Stark
D_Stark - avatar
+ 4
Yes I have tried the code, works fine. Try to update your browserview app maybe its outdated
4th Jan 2019, 6:13 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 3
Code seems to works fine, no errors when I execute the code.
4th Jan 2019, 6:08 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 3
I see, I hope its fixes the issue you encounter. You're welcome, Any time👍😁
4th Jan 2019, 6:27 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 2
Axelle, In additional to D_Stark's correct answer, A custom alert/prompt box is mostly called a modal box, you can use librarys to create a modal or you can easily build your own.😁 Here is a snippet of a modal box that you can customize to your requirements without external lib, hope it helps👍😊 https://code.sololearn.com/W454f7IK92kq/?ref=app In additional: make a modal with some input and display it at the second modal: https://code.sololearn.com/Wr31n1TW172K/?ref=app
2nd Jan 2019, 2:37 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 1
thank’s a lot i go work on this code 😊
2nd Jan 2019, 8:37 PM
Axelle
+ 1
JQuery is a library of Javascript. If you didnt link the JQuery lib then it wont be initialized for execution Paste this between the head tags to use JQuery external: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> Additional i recommend you to finish the JQuery and Javascript courses to understand more.👍😊
4th Jan 2019, 3:41 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 1
I keep you informed 😉
4th Jan 2019, 7:08 PM
Axelle
+ 1
🌴Vincent Berger🌴 i have finished my code, he is good, the alert is ok thank you very much 😁
6th Jan 2019, 7:53 PM
Axelle
0
ok so with what i can put background,etc.... with a alert form or popup form and not a new page ?
2nd Jan 2019, 2:03 PM
Axelle
0
🌴Vincent Berger🌴 sorry i come back to you because your first code was ok yesterday but now when i run i have an error line3 because «  he don’t find the variable $ «  .... i don’t understand... thank’s ...and it’s the same thing for all codes with $ in js... it’s maybe the app sololearn who bug ? i need help
3rd Jan 2019, 8:45 PM
Axelle
0
Axelle, Are you using JQuery, since the code is written in JQuery?
4th Jan 2019, 3:13 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
0
yes so, jQuery is in js no? i haven't a langage only jQuery when i create a code.... i put jQuery in js
4th Jan 2019, 3:35 PM
Axelle
0
i see but i have the script tag in head... if you want well see this code please thank's https://code.sololearn.com/WDkhDd6tBa3l/?ref=app
4th Jan 2019, 6:04 PM
Axelle
0
he put me " error the variable $ isn't find " it's maybe the app sololearn or other who bug ? you have try the code ?😭😭
4th Jan 2019, 6:13 PM
Axelle
0
ok if you have click the button and see the alert and all on your computer i will try on an other computer thid week-end... so it's mine who bug I thank you for your help and for all the time spent for me at the next thank you 😁
4th Jan 2019, 6:21 PM
Axelle