CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Simple Popup page

Print topic Send  topic

Author Message
Mike
Posted: 04/26/2004, 10:33 AM

Greetings,
I am trying to figure out how to create a simple popup page. I have a survey of classes offered, with a link to a description of each class. Right now it opens in the same page and they hit the back button to continue. I would like to have it so the description pops up on top of the survey page instead. I have been playing with the pop-up list forum example but can't seem to get it to work for me. I do not know java, and I have been trying to figure out how the parameters are passed between the parent and child page. I can get the popup to come up but the link won't pass the correct record to the popup. I am using a MS sql server and CCS, the parent is a simple grid with a primary key as the link field. I think my problem is in the parameters used in the window.open statement, but as I said I do not understand how the parameter is passed. I have tried a dummy case using the northwind database and the orders table, trying to get the record pulled up in the popup based on the orderid field. No luck there either. Can anyone help me understand how those parameters are passed? Thanks Mike
rrodgers
Posted: 04/26/2004, 12:40 PM

Mike,

Do everything like you would normally do for the link. but on the <a> properties change the target to "_blank" with out the quotes. it will open a new window with out java script. If you want more control over how it looks (No Address bar, no buttons no ... etc.) then you probably have to go the java script route.

http://www.emstech2.com/rhs84reunion/
Click on "who is comming" (I didn't spell it all I did was make the grid and search<G> components)

In the contact info column. Click on an image. It should popup a window with the attendees information.

rob

peterr


Posts: 5971
Posted: 04/26/2004, 3:33 PM

Mike,
To add my 2 cents, you should not need to use JavaScript do what you described. You should probably try using the regular link to open a regular non-popup page with the correct information. Once this is working then apply Rob's comments and modify the Link's property.

The method used in the example is little more complex because that example copies some information entered by users in real-time into another field and then uses it in the pop-up window. It doesn't seem that you need such functionality.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Mike
Posted: 04/27/2004, 5:42 AM

Thanks Guys,
The reason I wanted a pop-up was to control window size that is displayed. The descriptions that I have would need to be quarter screen size in the upper left corner, with the survey still displayed in its own window in the background. Really more of an asthetics thing, but once it was suggested it was one of those challenges I just couldn't let go of and is driving me nuts until I figure it out. I will experiment with your suggestions and let you know how I make out. Thanks Mike
DonB
Posted: 04/27/2004, 6:15 AM

Here's the way I do it:
http://www.gotodon.com/ccbth/Features/Kbase.asp?find=popup

--
DonB

http://www.gotodon.com/ccbth

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.

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.