brandpeter opened a new issue, #4805:
URL: https://github.com/apache/netbeans/issues/4805
### Apache NetBeans version
Apache NetBeans 15
### What happened
`<script>
var formBox = new FormBox;
formBox.display({
form : document.getElementById('thisForm')
, buttons : [
{icon : 'search.png', label : 'View', name : 'View',
submitAction : true}
<?php if ($_SESSION['JobID']==1) {?>
, {icon : 'delete.png', label : 'Delete', name : 'Delete',
submitAction : true}
<?php }?>
]
, deleteConfirm : 1
});
</script>`
Above code gives a hint error "Expected an operand but found ," on the line
following the first PHP statement, and lines following that up to the end of
the JS statement.
Seems like a valid method of building an object in JS dependent on PHP
decision.
### How to reproduce
Paste above code in a PHP file in Netbeans editor.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 10 64bit
### JDK
SE 16
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists