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 -> PHP

 Dynamic JS from CCS Event - HTML insertion point [Solved]

Print topic Send  topic

Author Message
tcb

Posts: 34
Posted: 05/22/2009, 1:22 PM

Hi,

Simple question (yes, I've searched the forum ;)

I'm using PHP to generate Javascript in a BeforeShow event (it doesn't seem to matter which component's BeforeShow is used). The scripts work fine, but CodeCharge inserts the Javascript before the <HTML> tag. I don't think this is legal, although no browsers have complained yet.

How can I get my JS into <HEAD> while still generating it within the BeforeShow server-side event handler? Or is it legal to leave it as it is?

TIA.
View profile  Send private message
jjrjr1


Posts: 942
Posted: 05/22/2009, 5:47 PM

Make your insertion point a template variable and write your js to the template variable

Not exactly sure how you are doing it now.

If you can post the code at ccselite.com and I can look at it for you.


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
tcb

Posts: 34
Posted: 05/22/2009, 5:57 PM

Thanks, that works fine!

I was just echoing before.
View profile  Send private message
damian

Posts: 838
Posted: 05/22/2009, 8:31 PM

if you insert your code manually without assigning it to a lbael it *always* executes first
_________________
if you found this post useful take the time to help someone else.... :)
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.