CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 BUG: Removing Client-side On Click Action yeilds javascript error

Print topic Send  topic

Author Message
dhempy


Posts: 40
Posted: 07/15/2004, 8:47 PM

I have a record maintenance page with a delete button.

I added a client-side onClick action, "Confirmation Message." with a "Are you sure...?" message.

I later removed the action, by deleting it from the properties tag.

Now when I publish and load the page, I get a Javascript error: " Line 5: Expected ';' "

The View Source looks like this:

<html>  
<head>  
<title>Subject</title>  
<link rel="stylesheet" type="text/css" href="Themes/Knockout/Style.css">  
<script language="JavaScript" type="text/javascript">  
End CCS script  
</script>  
</head>  
...  

However, if I look at the html template, it looks like this:

<html>  
<head>  
<title>Subject</title>  
<link rel="stylesheet" type="text/css" href="Themes/Knockout/Style.css">  
<script language="JavaScript" type="text/javascript">  
</script>  
</head>  


I"m not sure where the "End CCS Script" is coming from, but it is happening at runtime. Before I deleted the action, that line was Javascript commented as: "//End CCS Script". After deleting the action (which was the only Client Event in this project) the string loses its "//" comment previx.

This behavior is reliably repeatable.

I am running a registered copy of CCS v2.3.1.85.

I am generating Perl 5.0 with Templates code.


-dave

_________________
David Hempy
Director of Broadcast and Education Technology
Kentucky Educational Television
800-333-9764
View profile  Send private message
peterr


Posts: 5971
Posted: 07/15/2004, 8:57 PM

You can delete "End CCS script" to resolve this issue.
You can report bugs and technical issues to the support.
Thanks.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
dhempy


Posts: 40
Posted: 07/16/2004, 12:33 PM

Quote peterr:
You can delete "End CCS script" to resolve this issue.

I don't think I can...it does not appear in the template. It only shows up when I View Source. It does not appear in the subject_maint.html template.


Quote peterr:
You can report bugs and technical issues to the support.
Thanks.

I will do that.

As always, thank you for your reply, Peterr.

-dave

_________________
David Hempy
Director of Broadcast and Education Technology
Kentucky Educational Television
800-333-9764
View profile  Send private message
peterr


Posts: 5971
Posted: 07/16/2004, 12:46 PM

Now that is strange. Maybe it is in some included page?
I'm almost certain it would have to be in the HTML.
Anyway, I'll check with our support too.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
dhempy


Posts: 40
Posted: 07/16/2004, 3:14 PM

Quote peterr:
Now that is strange. Maybe it is in some included page?
I'm almost certain it would have to be in the HTML.
Anyway, I'll check with our support too.

I just went back and double-checked, and sure enough, it was exactly as I had described.

However, the problem was that I was looking in the wrong place! :-< I was examinging the generated files on the server, not the local, source files. (This is the first project I've developed directly on the server instead of on my own machine, so I guess I was a bit disoriented.)

Sure enough, the local copy has the "End CCS Script" string. I edited it out of the template as you suggested, published, and the error went away! :-)

One odd note, that could be a clue for your developers why this string is being left behind in the first place... There is only a single CR (ASCII 13) preceeding the string, where the rest of the file has CR/LF pairs (ASCII 13 + ASCII 10) as a line terminator.

Sorry for the Chicken Little routine,
-dave
_________________
David Hempy
Director of Broadcast and Education Technology
Kentucky Educational Television
800-333-9764
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.