CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 CCS breaks inserted javascript?? How do I turn off the auto-formatting?

Print topic Send  topic

Author Message
Chip Cotton
Posted: 07/06/2002, 7:18 AM

Here I am again, with a similar "CCS is reformatting my code" problem.

This time it's a javascript menu.

CCS wants to encapsulate my javascript single quotes in quotes.

Note: this works the first time, but when I switch around views and
REgenerate, it adds the double quotes:

(sample clip)

<img name='awmMenuPathImg-menu' id='awmMenuPathImg-menu'
src='./awmmenupath.gif' alt=''>

turns into:

<img name="'awmMenuPathImg-menu'" id="'awmMenuPathImg-menu'"
src="'./awmmenupath.gif'" alt="''">
R Sens
Posted: 07/06/2002, 12:39 PM

It did the same with me, also using allwebmenus. I removed the single quotes
to avoid this happening once again. And now it's ok. The double quotes are
not inserted again. It also happens in quite simple lines with references to
for instance a .js script.
Indeed should be avoided by CCS.

ron



"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
news:erudiu89c9m84nk1sm4kbpf74i8tc0omjd@4ax.com...
> Here I am again, with a similar "CCS is reformatting my code" problem.
>
> This time it's a javascript menu.
>
> CCS wants to encapsulate my javascript single quotes in quotes.
>
> Note: this works the first time, but when I switch around views and
> REgenerate, it adds the double quotes:
>
> (sample clip)
>
> <img name='awmMenuPathImg-menu' id='awmMenuPathImg-menu'
> src='./awmmenupath.gif' alt=''>
>
> turns into:
>
> <img name="'awmMenuPathImg-menu'" id="'awmMenuPathImg-menu'"
> src="'./awmmenupath.gif'" alt="''">

Chip Cotton
Posted: 07/07/2002, 5:27 AM

On Sat, 6 Jul 2002 21:39:16 +0200, "R Sens" <info@sensoft.nl> wrote:

>It did the same with me, also using allwebmenus. I removed the single quotes
>to avoid this happening once again. And now it's ok.

I assume you mean, "I replaced the single quotes with double quotes"

>The double quotes are not inserted again. It also
>happens in quite simple lines with references to
>for instance a .js script.
>Indeed should be avoided by CCS.
R Sens
Posted: 07/07/2002, 11:56 AM

Chip,

What I meant was that I replaced the single quotes from the original script
with double quotes. CCS tries to place quotes around single quoted text.
When you yourself replace them with double quotes, you don't have the
problem.

e.g.:

<script type='text' language='javascript'>

CCS makes it like this:

<script type="'text'" language="'javascript'">

So the script is not recogized and executed anymore. Replace the single
quotes yourself:

<script type="text" language="javascript">

and the problem is solved. It shouldn't be like that but it is
unfortunately.

Ron



"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
news:eecgiu8holer28fag717osk48bknnd3kn7@4ax.com...
> On Sat, 6 Jul 2002 21:39:16 +0200, "R Sens" <info@sensoft.nl> wrote:
>
> >It did the same with me, also using allwebmenus. I removed the single
quotes
> >to avoid this happening once again. And now it's ok.
>
> I assume you mean, "I replaced the single quotes with double quotes"
>
> >The double quotes are not inserted again. It also
> >happens in quite simple lines with references to
> >for instance a .js script.
> >Indeed should be avoided by CCS.
>


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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