This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180278 - Editor show errors if php tags in javascript associative array
Summary: Editor show errors if php tags in javascript associative array
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 183644 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-04 06:01 UTC by OlegKN
Modified: 2013-07-17 12:58 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (62.06 KB, image/jpeg)
2010-02-04 06:01 UTC, OlegKN
Details
Exemple of file (533 bytes, application/octet-stream)
2010-04-07 14:30 UTC, arnolem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OlegKN 2010-02-04 06:01:15 UTC
Created attachment 93862 [details]
Screenshot

Hello!

When I put php tags into javascript associative array, editor show syntax errors.
See screenshot in attachment.
Comment 1 Tomas Mysik 2010-03-18 12:25:14 UTC
Seems to be JavaScript problem...
Comment 2 Tomas Mysik 2010-04-07 13:26:35 UTC
*** Bug 183644 has been marked as a duplicate of this bug. ***
Comment 3 arnolem 2010-04-07 14:30:44 UTC
Created attachment 96861 [details]
Exemple of file
Comment 4 Petr Pisl 2010-05-07 11:33:06 UTC
It seem more like php problem. At least the error messages are coming from the php parser.
Comment 5 Filip Zamboj 2010-09-15 12:30:47 UTC
batch reassigning
Comment 6 Ondrej Brejla 2011-08-16 09:06:13 UTC
Reproducible in NB 7.0.1.
Comment 7 Petr Pisl 2011-09-26 15:34:11 UTC
I'm sorry for the last my comment. I have tried to debug and the message, that appears in the example file, are coming from js.
Comment 8 Ondrej Brejla 2012-04-12 09:23:38 UTC
Seems to be JavaScript embedding problem.
Comment 9 Petr Hejl 2012-09-13 13:08:57 UTC
Fixed in 7.3.
Comment 10 lvil 2013-07-11 07:58:25 UTC
I have just installed NB 7.3.1
The bug is not fixed

$('#selectorId').SomePlugin({
	inline: true,
	calendars: 3,
	mode: 'range',
	<? if ($if_statement) {?>
	date: [c_from, c_to],
	current: new Date(c_to.getFullYear(), c_to.getMonth(), 1),
	<? } ?>
	onChange: function(dates,el) {
		some code here
	  }
});
Comment 11 Petr Hejl 2013-07-17 12:58:13 UTC
Please share a complete file. This works fine for me in dev:
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <script>
$('#selectorId').SomePlugin({
    inline: true,
    calendars: 3,
    mode: 'range',
    <? if ($if_statement) {?>
    date: [c_from, c_to],
    current: new Date(c_to.getFullYear(), c_to.getMonth(), 1),
    <? } ?>
    onChange: function(dates,el) {
        
      }
});
        </script>
    </body>
</html>