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 -> General/Other

 JavaScript src issue

Print topic Send  topic

Author Message
cvboucher

Posts: 191
Posted: 04/10/2013, 4:14 PM

CCS5

I'm trying to use a jquery timepicker on my page. In the HTML I include the scripts below. Note in the code below that some of it is what I added (first half) and some of it was included by CodeCharge (second half).
<link rel="stylesheet" type="text/css" href="{page:pathToRoot}css/jquery-ui.css" media="all">  
<link rel="stylesheet" type="text/css" href="{page:pathToRoot}css/jquery-ui-timepicker-addon.css" media="all">  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-1.9.1.min.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-ui.min.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-ui-timepicker-addon.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-ui-sliderAccess.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" type="text/javascript">  
//Begin CCS script  
//Include Common JSFunctions @1-590C69E8  
</script>  
<script language="JavaScript" src="{page:PathToRoot}js/yui/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:PathToRoot}js/yui/build/calendar/calendar-min.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:PathToRoot}js/yui/datepicker-commons.js" type="text/javascript" charset="windows-1252"></script>  
<link rel="stylesheet" type="text/css" href="{page:PathToRoot}Styles/None/ccs-yui-calendar.css">

But when I view the source after pulling up the page in a browser some of the {page:pathToRoot} elements aren't substituted.

<link rel="stylesheet" type="text/css" href="./css/jquery-ui.css" media="all">  
<link rel="stylesheet" type="text/css" href="./css/jquery-ui-timepicker-addon.css" media="all">  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-1.9.1.min.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-ui.min.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-ui-timepicker-addon.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="{page:pathToRoot}js/jquery/jquery-ui-sliderAccess.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" type="text/javascript">  
//Begin CCS script  
//Include Common JSFunctions @1-5AFEA732  
</script>  
<script language="JavaScript" src="./js/yui/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="./js/yui/build/calendar/calendar-min.js" type="text/javascript" charset="windows-1252"></script>  
<script language="JavaScript" src="./js/yui/datepicker-commons.js" type="text/javascript" charset="windows-1252"></script>  
<link rel="stylesheet" type="text/css" href="./Styles/None/ccs-yui-calendar.css">

The CodeCharge elements and my css links are correct, but my script tags still have the {page:pathToRoot} element. I tried hardcoding the path instead of using {page:pathToRoot} but the next time the page is generated CCS puts the {page:pathToRoot] back in there.

Craig
View profile  Send private message
Lucius

Posts: 220
Posted: 04/11/2013, 8:56 AM

That's weird. I never had similar issues you described, and I did use the {page:PathTooRoot} as well as using absolute paths...

As long as the code is in the white part of HTML code (the not CCS maintained code) it was never changed as you describe.


Maybe it's some temporary issue? Restart CCS, restart PC, check if this issue persists... Other than that no idea what might be the problem here...
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.

Web Database

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.