CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Javascript events

Print topic Send  topic

Author Message
Didier
Posted: 07/31/2002, 6:54 AM

Can javascripts be placed somewhere else than in the header of footer sections of the form? I would like to pass some parameters to the script and do not manage to do that in header/footer section. How could the script be integrated in a before show event for example (so I can add various parameters)?

BTW, this is a combo-based redirection script.
Thanks!
jmccann
Posted: 07/31/2002, 12:35 PM


Didier,

I'm not a guru by any stretch of the imagination, but this javascipt works in the "Open Even" on one of my pages. I'm sure you can place something similar anywhere in any of the CCS events.
Response.write "<script language = 'javascript'> alert('Your text message') </script>"

I hope this helps.

jim mccann
Snorky
Posted: 02/14/2003, 9:15 PM

Hello Didier,
I have the same problem.
I hope you have found a solution.
Please let me know if you did and what the solution is?

Thank you..

Hello,
Situation:
- Start page with 3 frames resp: topFrame menuFrame and mainFrame
- MainFrame starts with login and does redirect to welcome screen
- The welcome screen should update the topFrame and menuFrame
That is now done by javascript:
function page_OnLoad()
{
var result;
//End page_OnLoad

//Custom Code @14-2A29BDB7
// -------------------------
loadFrames('topFrame' , 'menu/menutop1.php' , 'menuFrame' , 'menu/mainmenu1.php');
// -------------------------
//End Custom Code

//Close page_OnLoad @1-BC33A33A
return result;
}
//End Close page_OnLoad
<!-- Begin
function loadFrames(frame1,page1,frame2,page2) {
eval("parent."+frame1+".location='"+page1+"'");
eval("parent."+frame2+".location='"+page2+"'");
}
// End -->
- However , the reference pages in javascript are hardcoded!

The question is:
How can I make the number of the group_id be corporated in the reference names?
e.g. Now 'menu/menutop1.php' but should be something like
'menu/menutop$group_id.pgp'

I have the feeling that I can not use php in the HTML area.

I am using CCS 1.0.7 , MySQL and PHP
RonB
Posted: 02/15/2003, 4:42 AM

if group_id is passed from another page you can "catch" it by Adding {group_id}:

//Custom Code @14-2A29BDB7
// -------------------------
loadFrames('topFrame' , 'menu/menutop1.php' , 'menuFrame' , 'menu/mainmenu1.php?group_id={group_id}');
// -------------------------
//End Custom Code
RonB
Posted: 02/15/2003, 4:48 AM


I posted a short article on using Iframes instead of frames on codechargers.net
Look into it, maybe it will solve a few problems. I find working wiht Iframes a lot easier then with "normal" frames.
http://codechargers.net/ccs/kb.php?language_id=1&category_id=40&event_id=49

I also did a post on this site but the article hasn't been aproved yet. When it is it will have a sample project atached with all the relevant code.

Ron
RonB
Posted: 02/15/2003, 5:32 AM

Here's the link to the iframes article on gotocode:

http://www.gotocode.com/art.asp?art_id=271
Sonny
Posted: 02/15/2003, 2:12 PM

How about an asp example?
RonB
Posted: 02/15/2003, 2:43 PM

simple, get the example file and change language to asp. There is no custom code in the example everything takes place in html and the rest is just standard CCS stuff> That will convert to asp, jsp, perl ect without trouble.

Ron
Sonny
Posted: 02/15/2003, 9:03 PM

There seems to be some missing CCS files, the list1.php and list2.php are there but the ccp is missing? could you repost it?
RonB
Posted: 02/16/2003, 9:59 AM

Sorry, those were just some old files. I cleaned up the zip file.
sonny
Posted: 02/16/2003, 5:55 PM

The source for the iframes are list1 and list2!
RonB
Posted: 02/17/2003, 7:49 AM

you were right, made the appropriate changes and did a new upload. Sorry for the inconvenience.

Ron

   


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.