CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 popup window after insert

Print topic Send  topic

Author Message
Dante S.
Posted: 03/08/2004, 2:13 AM

I need help on this. I can't seem to make it work after many tries and
searching the web. I created a record for with just the insert enabled. I
need to have a popup window displayed after inserting a record. How can I do
this? Thanks in advance for any help extended.

DonB
Posted: 03/08/2004, 4:50 AM

A popup has to be performed from the client side. What have you been trying,
so that we don't send you down the same, wrong, path again?

--
DonB

http://www.gotodon.com/ccbth


"Dante S." <disandigan@loyolaplans.com> wrote in message
news:c2hh01$sn$1@news.codecharge.com...
> I need help on this. I can't seem to make it work after many tries and
> searching the web. I created a record for with just the insert enabled. I
> need to have a popup window displayed after inserting a record. How can I
do
> this? Thanks in advance for any help extended.
>
>

Dante S.
Posted: 03/08/2004, 2:59 PM

Hi DonB.

I know how to code a popup window using javascript. What I'm at a loss is
to where exactly to put it and how can I integrate it on my ccs page.

"DonB" <~ccbth~@gotodon.com> wrote in message
news:c2hq5p$pea$1@news.codecharge.com...
> A popup has to be performed from the client side. What have you been
trying,
> so that we don't send you down the same, wrong, path again?
>
> --
> DonB
>
> http://www.gotodon.com/ccbth
>
>
> "Dante S." <disandigan@loyolaplans.com> wrote in message
>news:c2hh01$sn$1@news.codecharge.com...
> > I need help on this. I can't seem to make it work after many tries and
> > searching the web. I created a record for with just the insert enabled.
I
> > need to have a popup window displayed after inserting a record. How can
I
> do
> > this? Thanks in advance for any help extended.
> >
> >
>
>

Oper


Posts: 1195
Posted: 03/10/2004, 6:32 AM



then after insert custom code you get something like this:
  
//Custom Code @28-2A29BDB7  
    // -------------------------  
    // Write your own code here.  
    // -------------------------  
	    javascript:window.open('helphtml.asp'............. (HERE)  
//End Custom Code  


if you need easy way to create the POPUP java script you always could use this popup generator
http://www.globaldevelop.com/globaldevelop/genpopup/genpopupin.html





_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
Dante S.
Posted: 03/10/2004, 3:09 PM

Thanks Oper, will try your code snippet. One question though, will that
statement ( javascript:window.open('helphtml.asp'............. (HERE)) will
only work when put on the client-side event, right? What I am exactly
looking for is opening a popup window which I am going to put in, let say,
the After Insert server-side event. What I need is some way of popping up a
customized new browser window after inserting a new record in a record form.
Anyone there who can show me how to do this?

Thanks for the useful link too.

"Oper" <Oper@forum.codecharge> wrote in message
news:6404f26f665bc5@news.codecharge.com...
>
>
> then after insert custom code you get something like this:
>
  
> //Custom Code @28-2A29BDB7  
>     // -------------------------  
>     // Write your own code here.  
>     // -------------------------  
>     javascript:window.open('helphtml.asp'............. (HERE)  
> //End Custom Code  
> 
>
>
> if you need easy way to create the POPUP java script you always could use
this popup generator
> http://www.globaldevelop.com/globaldevelop/genpopup/genpopupin.html
>

>
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

DonB
Posted: 03/10/2004, 4:40 PM

Sorry, you won't be able to do it that way. Think of what this implies - a
server can open a window on anyone's desktop without their permission. The
web server does know that your current browser is alive - there is a session
established for it. But there won't have any such knowledge of this other
popup window because it doesn't exist yet.

What you are asking to do HAS to be initiated from the client side. There
is no other way. While you could load the javascript from the server (such
as putting it into a label) it ultimately has to get moved to the client and
executed there. So you might as well put it directly into the HTML of your
page unless your concern it knowing the key for that inserted record so you
can fetch it from the database and display it. Then, maybe, pushing the
script from the server might be useful.

--
DonB

http://www.gotodon.com/ccbth


"Dante S." <disandigan@loyolaplans.com> wrote in message
news:c2o77h$mmm$1@news.codecharge.com...
> Thanks Oper, will try your code snippet. One question though, will that
> statement ( javascript:window.open('helphtml.asp'............. (HERE))
will
> only work when put on the client-side event, right? What I am exactly
> looking for is opening a popup window which I am going to put in, let say,
> the After Insert server-side event. What I need is some way of popping up
a
> customized new browser window after inserting a new record in a record
form.
> Anyone there who can show me how to do this?
>
> Thanks for the useful link too.
>
> "Oper" <Oper@forum.codecharge> wrote in message
>news:6404f26f665bc5@news.codecharge.com...
> >
> >
> > then after insert custom code you get something like this:
> >
  
> > //Custom Code @28-2A29BDB7  
> >     // -------------------------  
> >     // Write your own code here.  
> >     // -------------------------  
> >     javascript:window.open('helphtml.asp'............. (HERE)  
> > //End Custom Code  
> > 
> >
> >
> > if you need easy way to create the POPUP java script you always could
use
> this popup generator
> > http://www.globaldevelop.com/globaldevelop/genpopup/genpopupin.html
> >

> >
> >
> >
> >
> > ---------------------------------------
> > Sent from YesSoftware forum
> > http://forums.codecharge.com/
> >
>
>

Oper


Posts: 1195
Posted: 03/11/2004, 6:54 AM

MY example is for a click buttin to POPup a window.

but if you wat to pop a window after you insert a record.
as a DonB said you cant doit in a Server side you need to doit in client side. ut you coudl trick your needit

let review what you need:
after insert a record you wnat to popup a window right?

what we going to do in words is this:
1) first create a label1 in Design let name LABEL1

2) on before show event do this:
  
label5.value="<script language=""Javascript"">var myINSERT = '" & session("MYINSERT") &  "';</script>"  
session("MYINSERT")=""  

3) on the event after insert record do this:
  
SESSION("MYINSERT")="DANTE"  

4) on the pageload event do this:
  
if(myINSERT == "DANTE"){  
  javascript:window.open'MenuBView.asp','new',.............  
}  

and use this to generate your popup
http://www.globaldevelop.com/globaldevelop/genpopup/genpopupin.html

so basicly what we do is this:
you insert the record then we let the page next time the page load again show a popup window if the insert event was fired

work like a charm casue i haveit in a few projects............


typed by memory at work now so maybe syntax error, but i double check










_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
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.

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.