CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 New Window

Print topic Send  topic

Author Message
DDekker
Posted: 04/12/2003, 4:54 AM

I work with CodeCharge.
And like it that way(...)
Does anybody knows how to make a NEW (popup) window.
Example : see the example EmplDir

The action wanted is when I choose: 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.
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>

or:

<SCRIPT LANGUAGE="Java Script">
<!--//
function openit(sURL){
newwindow=open(sURL,"newwin","scrollbars=no, toolbar=no,
directories=no, menu bar=no, resizable=yes,
status=yes, width=600, height=500");
}
//-->
</SCRIPT>

<A HREF="javascript:openit ('newwin.html')">
open window with no toolbars</A>

or extra in the A HREF tag to hide the link:
<A HREF="javascript:void(0);" onClick="javascript:openit
('clicktext.html')">
open window with no toolbars</A>
"

I use Dreamweaver and opened the EmplGrid.html
On that spot (Form Title =Emps) in the Html SourceCode (opened by
Dreamweaver) I see the following href tag:
<!--BeginDListemps-->
<tr>
<td ><a
href="%7Bemp_id_URLLink%7D?emp_id=%7BPrmemp_id_emp_id%7D&%7BTransitParam
s%7D"><font style="font-size: 10pt; color: #000000; font-family: Arial,
Tahoma, Verdana, Helvetica">{emp_id}</font></a> </td>
<td ><font style="font-size: 10pt; color: #000000; font-family: Arial,
(...etcetera...)
Tahoma, Verdana, Helvetica">{manmonth} </font></td>
</tr>
<!--EndDListemps-->

Now my question is where do I write down the href code???



Deryl
Posted: 04/14/2003, 11:55 AM

I believe you'd want to try the following from the first example...

<a href="javascript:void(0);" onClick="window.open('%7Bemp_id_URLLink%7D?emp_id=%7BPrmemp_id_emp_id%7D&%7BTransitParam
s%7D', 'newwin',
'width=400, height=600, resizable=1, scrollbars=1')"><font style="font-size: 10pt; color: #000000; font-family: Arial,
Tahoma, Verdana, Helvetica">{emp_id}</font></a>

Deryl
DDekker
Posted: 04/16/2003, 11:27 PM

April 17th
Hi Deril, Thanks for the reaction!
My Problem is now where I put the statements: in the formheader.
IN the example of EmplDir I see the following: the EmpsGrid / Forms=Emps has a FormAction=EmpsRecord. Maybe I have the statements put in the Page=EmpsRecord.
So when I look in the Page=EmpsRecord, maybe I have the statements in Forms=Emps / FormProperties / Header&Footer. (In the footer I see I JavaScript)
Thnak for any reaction.

   


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.