dholesaurabhm / js-addin

Automatically exported from code.google.com/p/js-addin
0 stars 0 forks source link

using AJAX Toolkit ScriptManager causes false positives #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1) create a form 
2) add AjaxToolkit ScriptManager controls & add composite scripts/scripts 
(included below)

<!-- Code -->
<ajaxToolkit:ToolkitScriptManager 
ID="ManagerScript" 
runat="server" 
EnablePageMethods="true" 
ScriptMode="Release" 
EnablePartialRendering="true">
            <CompositeScript>
                <Scripts>
                    <asp:ScriptReference Path="!/Scripts/Blah.js">

<!-- END Code -->

What is the expected output? What do you see instead?
Expecting : No Errors. 
Addin rendering "Syntax Errors"

What version of the product are you using? On what operating system?
3.6 on Windows 7 (32bit)

Please provide any additional information below.

Original issue reported on code.google.com by baiedr...@gmail.com on 22 May 2013 at 4:39

GoogleCodeExporter commented 9 years ago
using VS2012 Ultimate so must be 3.6.1 

Original comment by baiedr...@gmail.com on 22 May 2013 at 4:45

GoogleCodeExporter commented 9 years ago
Hi, baiedronk.
Thanks for bug report, but unfortunately I cant reproduce it.
If I place the code to aspx or ascx file it parsed accordingly in script mixed 
mode in which only code in <script></script> and <script 
type="text/javascript"></script> tags parsed, and because you code does not 
have any <script> blocks it cause any errors.
If this code placed in js file then it tries to parse in pure-js mode and 
obviously causes errors, but this is not the case i think.

So, please provide the extension of your file, and please also specify which 
settings you have in JSParser settings dialog on General tab. (screenshot will 
be nice)

Thanks for your effort.
Best regards,
Olek.

Original comment by mega.boich@gmail.com on 24 May 2013 at 11:25

GoogleCodeExporter commented 9 years ago
Hi Olek,
I've attached a number of files:
a simple .ASPX page, the 2 .JS files, 3x screenshots of Parser settings (I dont 
recall changing anything) and a screenshot of the VS2012 UI letting me know 
there are 2 errors (lines 14 & 24)

Im using AjaxControlToolkit in the application to merge the 2 .JS script files 
into 1 composite script  : http://ajaxcontroltoolkit.codeplex.com/

Hope this helps & please do let me know if you still have issues trying to 
replicate this

Thanks for the awesome tool!

Original comment by baiedr...@gmail.com on 21 Jun 2013 at 3:51

Attachments: