Solved

Popup undefined error?

Posted on 2009-04-06
3
2,159 Views
Last Modified: 2012-05-06
I need a modal popup for our ASP page and pasted the following code, but returned error: 'Popup' is undefined

I'm getting code ideas from: http://www.javascripttoolbox.com/lib/popup/example.php

[code]
<div id="modal" style="border:3px solid black; background-color:#9999ff; padding:25px; font-size:150%; text-align:center; display:none;">
      This is a modal popup!<br><br>
      <input type="button" value="OK" onclick="Popup.hide('modal')">
</div>

<a href="#" onclick="Popup.showModal('modal');return false;">Show Modal Popup</a>
<br>
<a href="#" onclick="Popup.showModal('modal',null,null,{'screenColor':'#99ff99','screenOpacity':.6});return false;">Show Modal Popup With A Custom Screen</a>
           
0
Comment
Question by:pointeman
3 Comments
 
LVL 12

Accepted Solution

by:
Gibu George earned 500 total points
ID: 24079236
You need to have some other js files for the model popup which are provided in the site. You need to have the popup.js at least, check the documentation given in the site. Some the scripts used in the page are

<script type="text/javascript" src="/main.js"></script>
<script type="text/javascript" src="/includes/jquery.js"></script>
<link type="text/css" rel="stylesheet" href="/includes/SyntaxHighlighter.css"></link>
<script language="javascript" src="/includes/sh/shCore.js"></script>
<script language="javascript" src="/includes/sh/shBrushJScript.js"></script>
<script language="javascript">$(function() { dp.SyntaxHighlighter.HighlightAll('code'); });</script><script type="text/javascript" src="/includes/toggleDiv.js"></script>

<script type="text/javascript" src="/libsource.php/popup/combined/popup.js"></script>
0
 

Author Comment

by:pointeman
ID: 24082183
No wonder I received the error. I need to go back to their web site.....
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now