Solved

Pop up messages- info.

Posted on 2008-06-26
6
619 Views
Last Modified: 2010-04-21
Hello experts.
Where can i find tutorials for a createing popup messages on rollover like the extension:http://prototype-window.xilinus.com/samples.html or http://www.kaosweaver.com/extensions/details.php?id=89.
The prototype samples are very good but i have problems that i describe here:http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_23514497.html.
Any help?
0
Comment
Question by:Panos
  • 4
  • 2
6 Comments
 
LVL 82

Expert Comment

by:hielo
ID: 21879365
That link has examples. Most likely you are not linking the files correctly. If the browser cannot locate your source files, then it will not behave as you expect. Do you have url for your page?
0
 
LVL 2

Author Comment

by:Panos
ID: 21881838
Hi Hielo again.
Below is your code with all the links:
When i will delete the line 4:
http://prototype-window.xilinus.com/javascripts/prototype.js
The script is not working.I have in firefox in the error check console the error:
error: this.options.parent is null
code: http://prototype-window.xilinus.com/javascripts/window.js
line: 629.
When i click on the image i get these error in the console too:
error: win1 is not defined
code: http://localhost/sitefolder/testpopup.cfm#
line: 1
You can check this too.
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
http://prototype-window.xilinus.com/javascripts/prototype.js
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/TOOLTIP.js"> </script>
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/prototype.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/effects.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/window.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/window_ext.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/debug.js"> </script>
<script type="text/javascript">
win1 = new Window({className: "alphacube", width:350, height:400, zIndex: 100, resizable: true, title: "Sample window", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true}); 
win1.getContent().update("Please select");
</script>
 
<link href="../themes/default.css" rel="stylesheet" type="text/css"> 
<!-- Add this to have a specific theme--> 
<link href="../themes/alphacube.css" rel="stylesheet" type="text/css"> 
</head>
 
<body><table cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
    <td><a href="#" onClick="win1.show();">open window1</a>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
 
 
</body>
</html>

Open in new window

0
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 21884422
Line 4 is NOT a linked file. It's just a line of text that has no impact on the programming logic. It's no different from writing "Hello Stranger". The code below worked for me. Notice that I left line 4 intact. The only thing I did difference is that I linked the stylesheets directly to http://prototype-window.xilinus.com.

It seems you have copied the javscript files and the stylesheet files, but not sure if you copied the images that the stylesheets are referencing. You need to look at the stylesheets, figure out what images it's using and copy them to your server. If needed, you may have to adjust the path to your images, depending on where you save them.
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
http://prototype-window.xilinus.com/javascripts/prototype.js
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/TOOLTIP.js"> </script>
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/prototype.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/effects.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/window.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/window_ext.js"> </script> 
<script type="text/javascript" src="http://prototype-window.xilinus.com/javascripts/debug.js"> </script>
<script type="text/javascript">
win1 = new Window({className: "alphacube", width:350, height:400, zIndex: 100, resizable: true, title: "Sample window", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true}); 
win1.getContent().update("Please select");
</script>
 
<link href="http://prototype-window.xilinus.com/themes/default.css" rel="stylesheet" type="text/css"> 
<!-- Add this to have a specific theme--> 
<link href="http://prototype-window.xilinus.com/themes/alphacube.css" rel="stylesheet" type="text/css"> 
</head>
 
<body><table cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
    <td><a href="#" onClick="win1.show();">open window1</a>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
 
 
</body>
</html>

Open in new window

0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 2

Author Comment

by:Panos
ID: 21884946
Hi hielo.
I wish i could show you what i'm doing.Now i copied the code above in Dreamweaver.Than i tested it in firefox.
When i delete the 4 line again the code is not working and as you say it is only text!
0
 
LVL 2

Author Comment

by:Panos
ID: 21885718
Hi hielo.
I have record the screen what i'm doing and i have converted this to .swf format but i can't uploaded the file.
If you want i can send you this to your privat email so you can see what i mean.
0
 
LVL 2

Author Closing Comment

by:Panos
ID: 31471086
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javascript comparing two dates 3 18
Why doesn't Google directions work? 6 46
Scroll 5 news at a time. 4 27
If condition on Html with Asp 11 17
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

773 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