Generating a popup window
7 posts by 2 authors in: Forums > CMS Builder
Last Post: July 7, 2011 (RSS)
By NigelGordijk - July 6, 2011
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
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
By NigelGordijk - July 6, 2011
Where should this code go - in cmsAdmin/lib/wysiwyg.php?
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
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
By NigelGordijk - July 6, 2011
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 7, 2011
Okay, I see. What you can do is have a page that will show any products currently listed as "on special", you can then manually put a link on the homepage that will open up that page in a pop up. There are a number of different pop up scripts that you can use. One that I've used on projects in the past is called Slim Box (http://www.digitalia.be/software/slimbox2).
Finally, on your index page, you can do a quick search for products marked as "special". You can then only display your link if you find any.
Hope this helps
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
By NigelGordijk - July 7, 2011
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net