Generating a popup window

7 posts by 2 authors in: Forums > CMS Builder
Last Post: July 7, 2011   (RSS)

Is it possible to create a popup window in CMSB? My client would like to create a link to a popup page, rather than full-sized one.
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Generating a popup window

By Jason - July 6, 2011

Hi Nigel,

One option would be to use a thickbox frame, which is how CMS Builder does pop ups. For example, you can create a HTML separator as a field and put in a button like this:

<input type = "button" value = "My Button" class = "button" onclick = "tb_show(null, 'www.mypage.com/page.php?TB_iframe=true&widht=500&height=500&modal=true', false);"/>

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Generating a popup window

Hi, Jason.

Where should this code go - in cmsAdmin/lib/wysiwyg.php?
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Generating a popup window

By Jason - July 6, 2011

Hi,

No, this code can be used in a HTML separator field in a section inside CMS Builder. I think I might not be understanding what it is your client wants to accomplish. Could you give some more clarification on what he's trying to do?

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Generating a popup window

This is their site, which uses CMSB: http://www.primenutrients.ca. They'd like an option to have a link on the homepage that opens a popup window containing details of current specials etc. There won't always be specials, so this would need to be created on as-needed basis. Does that make sense?
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [Jason] Generating a popup window

Thanks, Jason. I'll give that a try.
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net