CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 New Window

Print topic Send  topic

Author Message
H.F. Dekker
Posted: 04/23/2003, 1:04 AM

Hi Steven,
I like to know if you can help me please with a solution for CC
I read your interrest and labor in the community of gotocode.com and the
email newsgroup.
I use CC and MySQL (Windows) and PHP.

To get a New WIndow I have asked many questions, received many answers but
still the same problem.

My Problem is where I put the Javascript to start a NEW Window....??
I got the following advise: "..when you swith to HTML, you can write the
code straight
into the href > tag
<a href="javascript:void(0);" onClick="window.open('newwin.html', 'newwin',
'width=400, height=600, resizable=1, scrollbars=1')">linkname</a>

But I think that the code better can be written in CC itself, in a Header or
Footer (no idea where).
The action wanted is when I choose in the Example EmplDir : Administration /
Members / Edit
Employees / ->Edit (URL, so undelined) what in reality means
http://eureka:81/EmpsRecord.php?emp_id=7&emp_login=&manmonth=&name=&
->>>then a new Page will be opened.

IN the example of EmplDir I see the following: the EmpsGrid / Forms=Emps has
a FormAction=EmpsRecord. Maybe I have to write the JavaScipt in the
Page=EmpsRecord.
So when I look in the Page=EmpsRecord, maybe I have to write it in:
Forms=Emps / FormProperties / Header&Footer. (In the footer I see I
JavaScript)

Please INFORM ME WHERE I PUT THE JavaScripts in CC

--


Stefan Hogedal
Posted: 04/29/2003, 4:17 PM

Talking to me?
I just installed PHP 4.3.1 and modified my CC installation to add PHP
support only to find to many choices...
What version of PHP do you use and are you using templates or not?

/Stefan

"H.F. Dekker" <h.dekker@ps.nl> skrev i meddelandet
news:b85hf5$3mg$1@news.codecharge.com...
> Hi Steven,
> I like to know if you can help me please with a solution for CC
> I read your interrest and labor in the community of gotocode.com and the
> email newsgroup.
> I use CC and MySQL (Windows) and PHP.
>
> To get a New WIndow I have asked many questions, received many answers but
> still the same problem.
>
> My Problem is where I put the Javascript to start a NEW Window....??
> I got the following advise: "..when you swith to HTML, you can write the
> code straight
> into the href > tag
> <a href="javascript:void(0);" onClick="window.open('newwin.html',
'newwin',
> 'width=400, height=600, resizable=1, scrollbars=1')">linkname</a>
>
> But I think that the code better can be written in CC itself, in a Header
or
> Footer (no idea where).
> The action wanted is when I choose in the Example EmplDir : Administration
/
> Members / Edit
> Employees / ->Edit (URL, so undelined) what in reality means
> http://eureka:81/EmpsRecord.php?emp_id=7&emp_login=&manmonth=&name=&
> ->>>then a new Page will be opened.
>
> IN the example of EmplDir I see the following: the EmpsGrid / Forms=Emps
has
> a FormAction=EmpsRecord. Maybe I have to write the JavaScipt in the
> Page=EmpsRecord.
> So when I look in the Page=EmpsRecord, maybe I have to write it in:
> Forms=Emps / FormProperties / Header&Footer. (In the footer I see I
> JavaScript)
>
> Please INFORM ME WHERE I PUT THE JavaScripts in CC
>
> --
>
>
>

Stefan Hogedal
Posted: 04/30/2003, 11:16 AM

Here is a solution for the EmplDir sample using PHP 4.0 with Templates:

1. Change page EmpsGrid

a. In the open event of form emps of add:

$orgTransitParams = $tpl->ParsedBlocks["TransitParams"];

b. In the before show event (same form) add:

$fldemp_id_URLLink = "#\" onclick=\"popup('" . $fldemp_id_URLLink;
$tpl->set_var("TransitParams", $orgTransitParams . "');" );
if( $iCounter == 0 )
$tpl->set_var("FormAction","#\" onclick=\"popup('" .
$sActionFileName);

c. In the Header of the form put:

<script language="javascript">
var popwin = 0;
function popup(url)
{
if(popwin == 0)
{
popwin = window.open(url, 'newwin','width=600, height=600, resizable=1,
scrollbars=1');
popwin.opener = window;
}
else
popwin.location = url;
popwin.focus();
}

function closePopup()
{
if(popwin!=0)
popwin.close();
}

window.onunload=closePopup;
</script>

d. Generate the page.

2. Create close.html with the following content

<html>
<body>
<script language="javascript">
if(window.opener)
window.opener.location.reload();
window.close();
</script>
</body>
</html>

3. With page EmpsRecord

a. In the page open event put:

$header_filename = "headpop.html";

b. In the emps form properties Common tab change the word "Cancel" to
"Close"

c. In the "Before Execute" event (which is common for Insert, Update and
Delete) put:

$sActionFileName = "close.html";

d. Repeat in the "Before Cancel" event.

e. (After clicking OK to Form Properties):
Change Form Action to "EmpsRecord" (=self)

f. Generate the page.

4. Create headpop.html by copying "header.html" and removing

a. the Home and Administration "icons"

b. the Home link of the first "icon"

5. Test!

Good Luck!

"H.F. Dekker" <h.dekker@ps.nl> skrev i meddelandet
news:b85hf5$3mg$1@news.codecharge.com...
> Hi Steven,
> I like to know if you can help me please with a solution for CC
> I read your interrest and labor in the community of gotocode.com and the
> email newsgroup.
> I use CC and MySQL (Windows) and PHP.
>
> To get a New WIndow I have asked many questions, received many answers but
> still the same problem.
>
> My Problem is where I put the Javascript to start a NEW Window....??
> I got the following advise: "..when you swith to HTML, you can write the
> code straight
> into the href > tag
> <a href="javascript:void(0);" onClick="window.open('newwin.html',
'newwin',
> 'width=400, height=600, resizable=1, scrollbars=1')">linkname</a>
>
> But I think that the code better can be written in CC itself, in a Header
or
> Footer (no idea where).
> The action wanted is when I choose in the Example EmplDir : Administration
/
> Members / Edit
> Employees / ->Edit (URL, so undelined) what in reality means
> http://eureka:81/EmpsRecord.php?emp_id=7&emp_login=&manmonth=&name=&
> ->>>then a new Page will be opened.
>
> IN the example of EmplDir I see the following: the EmpsGrid / Forms=Emps
has
> a FormAction=EmpsRecord. Maybe I have to write the JavaScipt in the
> Page=EmpsRecord.
> So when I look in the Page=EmpsRecord, maybe I have to write it in:
> Forms=Emps / FormProperties / Header&Footer. (In the footer I see I
> JavaScript)
>
> Please INFORM ME WHERE I PUT THE JavaScripts in CC
>
> --
>
>
>


   


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.