CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Warning:An unclosed string constant - Autofill in Update Panel

Print topic Send  topic

Author Message
lboeldt

Posts: 53
Posted: 07/07/2010, 1:08 PM

I have a form on a VB.NET page. The form has a PTAutoFill feature assigned to a dropdown. The form is contained in an update panel named "content_panel". I receive Warning:An unclosed string constant when attempting to generate the page. If I remove the PTAutoFill the error goes away.

The the javascript code at the line number given in the warning shows the following:

  
    content_panel_bind(sender);  

However I think the error is in the autofill javascript routine, I suspect the following line is triggering the error.

  
new Ajax.Request("../services/LookupGroupCode.aspx?keyword=" + encodeURIComponent($("tblAddress1TargetGroup").value).replace(/'/g, "%27"), {  

I think the apostrophe in the /'/ is probably confusing parser. Is there a patch / workaround for this issue?
View profile  Send private message
hangbags

Posts: 1
Posted: 09/28/2010, 10:34 PM

5
View profile  Send private message
aliozden

Posts: 2
Posted: 11/23/2010, 5:47 AM

same problem..
Using PHP and following line gives warning in CCS (Warning:An unclosed string constant. Ln: 134, Col: 200.)



 new Ajax.Request("services/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_PTAutoFill1.php?keyword=" + encodeURIComponent($("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").value).replace(/'/g, "%27"), {
View profile  Send private message
asoaresfil


Posts: 12
Posted: 12/13/2010, 10:17 AM

I have the same problem using ASP, just when using PTAutoFill.

Does someone has a solution for this WARNING?

Thanks in advance.

Alcides :(
_________________
Alcides Soares FIlho
c2b@clickstobricks.info
Clicks to Bricks
www.clickstobricks.info

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.