Javascript alert() - Aspect

frpiou shared this question 5 years ago
Answered

Bonjour,


Fichier source : https://www.geogebra.org/m/yc3r7czd

La même boite alert() n'a pas le même aspect après avoir été appelée une fois...

J'aimerais avoir toujours le deuxième aspect voir même le modifier (couleur, taille de poile etc.)


Merci pour votre aide.

Frédéric


7678be574762a028822a549ee9f91e6e


927afe41b7f2e3186ea078e7a4b4625a

Comments (15)

photo
1

I am having this issue with popups online. Please see both following images:


1) Nice pop-up message


5a0d70f2661f994643c1921835a08b6b


2) Boring message: no pop-up, outside the applet

d2e79b3773ea6bfc4da8cb9ad0843d73

Could you help me to get a popup alert as the first image?

photo
1

Both messages were made with alert command (JavaScript).

photo
2

Try making a dummy 3D object eg

Dummy=(0,0,1)
to make sure the full version of GeoGebra is loaded

photo
1

I was working with GeoGebra Classic 5, release 5.0.423. Here, the command Dummy=(0,0,1) worked fine, but the pop-ups didn't look fine.

I have updated to last GeoGebra 5 with the same result.

Then, I have installed GeoGebra Classic 6. Now, the pop-up is OK.

I have checked with the uploaded applets in some computers without GeoGebra. It would seem as if it depends only on the GeoGebra release of the source machine (however, I can not confirm this yet.)

Thanks, Michael.

photo
1

I have saved as my old applet (with several days of work) with GeoGebra Classic 6, and I have uploaded it: the pop-up is no good now.

I made and uploaded a new applet, only with a button and the alert message, with GeoGebra Classic 6: no good.

I will continue making tests.

photo
1

The trials of my previous post were made on Windows 7.

I shifted to Linux (Mageia).

I made a new small applet (only with a button and the alert message): result on geogebra.org: OK (nice look.)

404b2209b0d1c8af0127a8bbf99ed192

I saved as my work applet, without good results (boring look: "Excellent" text.)

484ee6039854c8c4e6191dbe28f51c96

I would like to solve this issue. Thanks for your help.

photo
1

Please post the link

photo
1

https://www.geogebra.org/m/gp764hzt (applet with issue)

https://www.geogebra.org/m/eg6ctyvx (small applet with nice message)

photo
1

1st. applet: Evaluate button, If / Else Statement.

photo
3

First applet doesn't have Dummy=(0,0,1)

photo
1

I hadn't add this dummy point to my applet :-(It seems solved.

https://www.geogebra.org/m/buq7kejg


Thanks a lot, Michael.

photo
photo
1

Here is a snapshot of the @frpiou applet (red box: by hand, by myself). Could I get the look of the popup as his post?

ac2caf73d2b2d762e8c1361613a8dad2

photo
1

Hi,

I got a look of the pop-ups (with JavaScript alert command) similar to one shown in other answers of this thread.


I got the issue running the applet online, embedden in HTML. I have added the Dummy point. Browsers: Google Chrome 79.0.3945.117 under GNU/Linux (Debian 9, Xfce desktop) 64 bits.


Under local GeoGebra 6, it looks fine. As a material loaded to geogebra.org, it looks fine.


Please, could you help me to fix it?

---------------------------------

/DXRPAECBAgQIECAAAEC3QkMr1DVXS9sJ0CAAAECBAgQIECAwBAJtP8zVUME47QECBAgQIAAAQIECBBoRUCoakVJHQIECBAgQIAAAQIECHQjIFR1A2MzAQIECBAgQIAAAQIEWhEQqlpRUocAAQIECBAgQIAAAQLdCAhV3cDYTIAAAQIECBAgQIAAgVYEhKpWlNQhQIAAAQIECBAgQIBANwJCVTcwNhMgQIAAAQIECBAgQKAVAaGqFSV1CBAgQIAAAQIECBAg0I2AUNUNjM0ECBAgQIAAAQIECBBoRUCoakVJHQIECBAgQIAAAQIECHQjIFR1A2MzAQIECBAgQIAAAQIEWhEQqlpRUocAAQIECBAgQIAAAQLdCAhV3cDYTIAAAQIECBAgQIAAgVYERrVSqZ3qbNq0qZ0ux7UQIECAAAECBAgQIFBzgf8HDGjz9mj6sy8AAAAASUVORK5CYII=

Applet running embedded in HTML


---------------------------------

/wAusjjNjZ9vYAAAAABJRU5ErkJggg==

Local running on GeoGebra 6: it looks good


---------------------------------


/wOlYN2JgBcDbwAAAABJRU5ErkJggg==

Applet loaded to geogebra.org: it looks fine

photo
1

Here are the .html and the .ggb files.

photo
© 2023 International GeoGebra Institute