JavaScript and CPU [message #1726579] |
Mon, 14 March 2016 19:20 |
Vektor Seven Messages: 2 Registered: March 2016 |
Junior Member |
|
|
Hi!
I have a very simple PHP script, which contains one PHP function (echo) and one Java Script function (alert) only.
If this script will be opened in Eclipse (Luna, Mars), the CPU runs up to about 180% of 200% on my Macbook and stay there forever.
Even if I close the script within Eclipse, the CPU runs on high level!
If line 18 in this script will be removed (Java Script function alert), there is no problem with the CPU at all, after opening the file in Eclipse.
For me it seems that Eclipse has a problem with Java Script at all!?
What is the reason?
Thanks for any help.
The script code:
<html>
</html>
<head>
</head>
<body>
<?php
echo "This is a very simple PHP script, which contains
one PHP function (echo) and one Java Script function (alert) only.<br>
If this script will be opened in Eclipse (Luna, Mars), the CPU runs
up to about 180% of 200% on my Macbook and stay there forever.<br>
Even if I close the script within Eclipse, the CPU runs on high level!<br>
If line 18 in this script will be removed (Java Script function alert), there is
no problem with the CPU at all.
<p>
For me it seems that Eclipse has a problem with Java Script at all!?
";
?>
<script>alert('Hello World');</script>
</body>
</html>
-
Attachment: example.php
(Size: 0.65KB, Downloaded 124 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03984 seconds