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

 pop-up windows

Print topic Send  topic

Author Message
infotba
Posted: 03/26/2003, 3:58 AM

Please urgent,

How can I create the pop-up windows in codecharge ?
Is it possible that to open a codecharge page ( for example goods.asp) as a pop-up window (for example 400 x 400 ) .
(Pages must open according to id ?.Because "good.asp" conteining different data )

-asp and access database codecharge 2.0-

Regards,
please repply asap
infotba
Headhunter
Posted: 03/26/2003, 4:11 AM

add the following to your html source code:

target="_blank" onclick="if (window.open) {Console=window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400'); return false;} else { return true;}

so a tipical link will look like:

<a class="TrackitStudioDataLink" href="../customer_detail.php?cus_prsnnumber=1">V</a> <a class="TrackitStudioDataLink" href="../popup/cus_quick_view.php?cus_prsnnumber=1" target="_blank" onclick="if (window.open) {Console=window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400'); return false;} else { return true;}">Link</a> 


http://www.dbweaver.com
infotba
Posted: 03/26/2003, 7:31 AM

ok, but what about if i use "id" ?
Pages must open according to its' id ?.
Because for example "good.asp" may content different kind of data

Regards,
Headhunter
Posted: 03/26/2003, 10:25 AM

Is no problem.

you do not have to modify anything in the php or asp code.
The href source in the properties / data window still remains the same (with link parameter(s)).
Just make the page (link) like you should make it for a normal page and paste the html code into the html source.

a normal link should look like this:

<a class="TrackitStudioDataLink" href="{quickview_Src}">{quickview}</a>

and a modified like this:

<a class="TrackitStudioDataLink" href="{quickview_Src}" target="_blank" onclick="if (window.open) {Console=window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400'); return false;} else { return true;}">{quickview}</a>;
infotba
Posted: 03/26/2003, 11:55 PM

Dear HeadHunter

Where I must put this long code ? i did not understant.
into Page proporties, form proporties or where ?Bacause I use codecharge-not a normal html page.

if main page is main.asp , the page which i want to direct is child.asp and the child item code is child_item_id , how must I design the codes ?

Thank again and I am sorry for my ignorance.

infotba
Headhunter
Posted: 03/27/2003, 9:11 AM

Sorry, I didn't noticed you used CC2.0..
It's a long time ago I used that. I will look into it (have to install it).

Do you use asp + templates or just asp only?

Sorry for the misunderstanding.
Headhunter
Posted: 03/27/2003, 10:51 AM

Ok,

I looked in cc2, and I realised again that it isn't possible to edit html code inside CC. The only thing you can do is (in case you use templates) to edit the html template. By doing this, you have to disable generation of the html template in CC when you regenerate your page, because if you don't, the template will be overwritten.

So, in your template or asp file, locate the line with the link to your page and edit it like I wrote before.

If you can't get it to work, I want to take a look to your code (I need the cc file then. I won't make bad use of it.)

Good luk
banjo
Posted: 03/27/2003, 1:00 PM

Umm.. am I missing something in you request?

Can't you use the html checkbox in the field properties and then enter the long link in the before show event of the form??


banjo

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.