CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Strange behavior

Print topic Send  topic

Author Message
lquental

Posts: 15
Posted: 10/12/2004, 3:05 AM

Hello,

I'm using CodeCharge Studio 2.3.2.24 and I developed a site using PHP
and running on Apache 1.3 and everything works fine. When I deployed the site to another server running Apache 2.0 all JavaScript expressions get surrounded by two single quotes?

Another note is that page encoding is UTF-8

for example (The error is visible on OpenPop_UpList('findproduct_2') where findproduct_2 gets surrounded by two single quotes on Apache 2) :

With Apache 1.3
<a id="findproduct_2" onclick="OpenPop_UpList('findproduct_2'); return false;" href="findprod.php">

With Apache 2.0
<a id="findproduct_2" onclick="OpenPop_UpList(''findproduct_2''); return false;" href="findprod.php">

Any ideas of whats wrong?

Thanks for any help,

Luis
View profile  Send private message
lquental

Posts: 15
Posted: 10/12/2004, 3:57 AM

Never mind...I had magic quotes on

Sorry :-)
View profile  Send private message
klwillis


Posts: 428
Posted: 10/14/2004, 8:05 AM

That's still odd why JavaScript event code is being altered by
the PHP magic quotes setting.

Are you building the JavaScript code based on posted or URL
parameters?

Just curious. ;-)

Quote lquental:
Never mind...I had magic quotes on

Sorry :-)
;-)
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
lquental

Posts: 15
Posted: 10/14/2004, 1:40 PM

It seems that any JavaScript or PHP string between single quotes gets affected by this.

For example if you have in JavaScript alert('Hello world') with magic quotes it tuns into alert(''Hello world'')

I think this has something to do with the way CodeCharge "parses" the html templates.

Regards,

Luis
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.