Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

overlibmws · DHTML Tooltip and Sticky Popup Library

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 306
  • Category: JavaScript
  • Founded: Apr 19, 2004
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 697 - 727 of 1492   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#697 From: "Foteos Macrides" <fote@...>
Date: Fri Aug 4, 2006 12:31 pm
Subject: Re: [OLmws] overlib don't work
oldgreeky
Send Email Send Email
 
You are not encasing the retrieved mysql entries in php functions designed to ensure that they are suitable for use as javascript strings.  Read the overlibmws support documents on php / mysql db content:
 
 
and quoting:
 
 
Feel free to post here again if you have problems after studying that material, particularly the use of the php functions addslashes and htmlspecialchars.  If possible, include a URL for a document which illustrates the problem(s) you are having.
 
Fote
--
 
----- Original Message -----
From: m_son666
Sent: Friday, August 04, 2006 5:24 AM
Subject: [OLmws] overlib don't work

hi group,

i use this code:

<a
 onmouseover='return overlib(\"".$short."<br><br>".$long."\", CAPTION, \"".$name."\");'
 onmouseout=\"return nd();\"
 href='#'><img src='$mainpix.jpg'></a>

when i fill the varis $short, $long, $name by hand ($name = "A Name";) then overlib works fine.  when the text comes from a mysql i see no popup !

anybody knows why ?

thanks
m_son

#698 From: "Erich C. Beyrent" <erich.beyrent@...>
Date: Thu Aug 10, 2006 6:37 pm
Subject: More issues with popups over select elements
erich_beyrent
Send Email Send Email
 

Hi there,

 

When I first started using this library, I had some issues with the popup appearing over <select> elements – in IE, the elements show through the popup.  I thought we had resolved the issue – I added

 

<script type="text/javascript">OLpageDefaults(HIDESELECTBOXES,MIDX,-25,RELY,100);</script>

 

to my code, which worked initially.  I have since rewritten the pages, and the select boxes are bleeding through the popup again.  You can see the issue here:

 

http://65.175.198.29/resort15-53-1577.html

 

Below the resort description, there is a calendar-like block with links to unit types.  Each unit type loads in the popup, for reproducing the problem.

 

-Erich-


#699 From: "Foteos Macrides" <fote@...>
Date: Thu Aug 10, 2006 7:37 pm
Subject: Re: [OLmws] More issues with popups over select elements
oldgreeky
Send Email Send Email
 
Erich,
 
Your document inadvertently has two script blocks which make your OLpageDefaults call.  Get rid of the second one.
 
The MIDX and RELY commands in your OLpageDefaults call take arguments, so you simply reassert them as the defaults in the second call, with no net change.  However, HIDESELECTBOXES is a toggle.  Your first call toggles it on as the default, but then your second call toggles it back off.
 
Note that you would be better off with respect to efficiency if you imported overlibmws_iframe.js in addition to overlibmws_hide.js, as discussed in the:
 
 
support document, so that for IE 5.5 or higher you use an iframe shim instead of hiding of the select box.
 
Fote
--
 
----- Original Message -----
Sent: Thursday, August 10, 2006 2:37 PM
Subject: [OLmws] More issues with popups over select elements

Hi there,

When I first started using this library, I had some issues with the popup appearing over <select> elements – in IE, the elements show through the popup.  I thought we had resolved the issue – I added

<script type="text/javascript">OLpageDefaults(HIDESELECTBOXES,MIDX,-25,RELY,100);</script>

to my code, which worked initially.  I have since rewritten the pages, and the select boxes are bleeding through the popup again.  You can see the issue here:

http://65.175.198.29/resort15-53-1577.html

Below the resort description, there is a calendar-like block with links to unit types.  Each unit type loads in the popup, for reproducing the problem.

-Erich-


#700 From: "Erich C. Beyrent" <erich.beyrent@...>
Date: Fri Aug 11, 2006 12:40 pm
Subject: RE: [OLmws] More issues with popups over select elements
erich_beyrent
Send Email Send Email
 

Ugg.  What a moron I am.  Thanks again Fote!

 

-Erich-

 


From: Foteos Macrides [mailto:fote@...]
Sent: Thursday, August 10, 2006 3:38 PM
To: overlibmws@yahoogroups.com
Subject: Re: [OLmws] More issues with popups over select elements

 

Erich,

 

Your document inadvertently has two script blocks which make your OLpageDefaults call.  Get rid of the second one.

 

The MIDX and RELY commands in your OLpageDefaults call take arguments, so you simply reassert them as the defaults in the second call, with no net change.  However, HIDESELECTBOXES is a toggle.  Your first call toggles it on as the default, but then your second call toggles it back off.

 

Note that you would be better off with respect to efficiency if you imported overlibmws_iframe.js in addition to overlibmws_hide.js, as discussed in the:

 

 

support document, so that for IE 5.5 or higher you use an iframe shim instead of hiding of the select box.

 

Fote

--

 

----- Original Message -----

Sent: Thursday, August 10, 2006 2:37 PM

Subject: [OLmws] More issues with popups over select elements

 

Hi there,

When I first started using this library, I had some issues with the popup appearing over <select> elements – in IE, the elements show through the popup.  I thought we had resolved the issue – I added

<script type="text/javascript">OLpageDefaults(HIDESELECTBOXES,MIDX,-25,RELY,100);</script>

to my code, which worked initially.  I have since rewritten the pages, and the select boxes are bleeding through the popup again.  You can see the issue here:

http://65.175.198.29/resort15-53-1577.html

Below the resort description, there is a calendar-like block with links to unit types.  Each unit type loads in the popup, for reproducing the problem.

-Erich-


#701 From: "wandlimb1959" <wandlimb1959@...>
Date: Mon Aug 14, 2006 5:47 pm
Subject: New problem, menu remnant (was Re: [OLmws] cannot find object)
wandlimb1959
Send Email Send Email
 
It's taken a long time, but I finally have some code that works,
sort of. Disclaimer: I'm not really a programmer... I just sort of
patch code together.

Anyway...

I wanted a overlibmws popup menu which contained URLs that, upon
clicking, would pump an XML file through an XSL stylesheet and
display in a pop-up window. I am using overlibmws.js and
overlibmws_function.js.

You can see a screenshot of this here:
http://karlatipton.com/images/menu-in-menu-1.jpg

So far, so good...except that there seems to be a remnant of the
overlibmws popup menu, which shows up behind the popup XML display
window containing the words "No Function" that follows the cursor
around.

You can see a screenshot here: http://karlatipton.com/images/menu-in-
menu-2.jpg

Any suggestions that would help me get rid of this remnant menu
would be greatly appreciated!

Thanks,
Karla

(code follows)

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<script LANGUAGE="JavaScript"></script>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<script type="text/javascript" src="overlibmws.js"><!--
overlibmws.js core module - Copyright Foteos Macrides 2002-2005. All
rights reserved. --></script>
<script type="text/javascript" src="overlibmws_function.js"></script>
<script type="text/javascript"></script>
<script type="text/javascript">
<!--
// View XML using XSL (works correctly in Microsoft Internet
Explorer v 6.0 only)
function PROCXmLXsLView( filenamexmlS, filenamexslS ) {
	 if (navigator.appName == "Microsoft Internet Explorer") {
		 // Declare variables
		 var xmldoc = null;
		 var xsldoc = null;
		 var resultdoc = null;
		 var newWin = null;
		 // Instantiate a new XML Object for the XML file
		 xmldoc = new ActiveXObject("Microsoft.XMLDOM");
		 xmldoc.async = false;
		 xmldoc.load( filenamexmlS );
		 // Instatiate a new XML Object for the XSL file
		 xsldoc = new ActiveXObject("Microsoft.XMLDOM");
		 xsldoc.async = false;
		 xsldoc.load( filenamexslS );
		 // Instatiate a new XML Object for the results
		 resultdoc = new ActiveXObject("Microsoft.XMLDOM");
		 resultdoc.async = false;
		 resultdoc.validateOnParse = true;
		 // Transform the data to the results object
		 xmldoc.transformNodeToObject( xsldoc, resultdoc );
		 // Produces new window for output
		 //newWin = window.open(resultdoc,"Lesson
Learned","height=500,width=700,toolbar=0,location=0,status=0,menubar=
1,scrollbars=1,resizable=1");
		 newWin = window.open
(resultdoc,"","height=500,width=700,menubar,scrollbars,resizable,titl
ebar");
		 // Write the data to a new window
		 newWin.document.write (xmldoc.transformNode(
xsldoc ));
		 // Clean up the objects
		 xmldoc = null;
		 xsldoc = null;
		 resultdoc = null;
		 newWin = null;
	 }
	 else {
		 alert("Must use Internet Explorer 6 or higher");
	 }
}

// -->

var llURL=new Array();
llURL[0]="https://URL_of_XML_file1.xml";
llURL[1]="https://URL_of_XML_file2.xml";

var y="https://https://URL_of_XSL_stylesheet.xsl";

var myTextString="<a href = javascript:; onclick='return overlib
(FUNCTION,PROCXmLXsLView(llURL[0],y));' return false;
onmouseup=cClick();>1976-01 Structuring Combined Contractor - Air
Force Development Test and Evaluation Programs (<b>Web view</b>)
</a>/<a href=\'https://URL_of_Acrobat_file1.pdf\'>(<b>PDF</b>)</a>
<br><br><a href = javascript:; onclick='return overlib
(FUNCTION,PROCXmLXsLView(llURL[1],y));' return false;
onmouseup=cClick();>1976-02 Detailed Test Planning - Combined
Contractor - Air Force Development Test and Evaluation Programs:
(<b>Web view</b>)</a>/<a href=\URL_of_Acrobat_file2.pdf\'>
(<b>PDF</b>)</a>"

document.write =(llURL[0]);
document.write =(llURL[1]);
document.write =(y);

</SCRIPT>

<a href="javascript:void(0);" onclick="return overlib(myTextString,
STICKY, CAPTION, 'Class II Modifications', CENTER);" return
false;">PLANNING</a></font></span></td>

</body>

</html>


--- In overlibmws@yahoogroups.com, "Foteos Macrides" <fote@...>
wrote:
>
> Karla,
>
> Your XMLHolder function sets up the two arguments for its
PROCXmLXsLView function call as simply the names of an .xml and
an .xsl file, not as complete URLs for those files.  The
PROCXmLXsLView function then uses those file names as the arguments
for MS ActiveX xsldoc.load function calls.  The latter function
treats the file name argument as a partial URL, and resolves it to a
full URL in relation to the URL of the HTML document in which the
script block with that function resides.  If you invoke the HTML
file locally on your C: drive, its URL is of the
form 'file:///C:/hereisthepath/[object]' and so the .xml and .xsl
files will be resolved to URLs of the same form.  It would appear
that you have all three files in the same folder on the C: drive of
your Windows 2000 machine, and so it all works.  But you do not have
the .xsl file (and probably not the .xml file either) in the same
directory as your HTML file on the two XP machines, and so the
browser issues what is essentially a "file not found" error
message.  Place all three files in the same folder on all three of
the machines.  Or perhaps you intend for the .xml and .xsl files to
be fetched from a server, in which case you should use complete http
URLs, not simply their file names, in XMLHolder.
>
> You have some "not ideal" markup in the code you show.  It's not
the cause of your problem, but should be cleaned up anyway.
>
> First, in the link with the overlib call, you have an onclick
attribute=value pair for the overlib call, and another one for an nd
call, which IE handles gracefully, but is inappropriate.  Get rid of
the second pair with the nd call (overlibmws does not require nd
calls with STICKY popups), and for the overlib call make it:
>
> onclick="overlib(myTextString, CAPTION, 'Lesson Learned',
>  STICKY, CENTER); return false;"
>
> as discussed in the:
>
> http://www.macridesweb.com/oltest/ONCLICK.html
>
> support document.
>
> Second, you have a number of empty script blocks, which should be
removed from the document.
>
> Third, you have a set a meta tags which appear near the top of the
document's head section, and are repeated near its bottom.  Remove
the repetitions.
>
> I suspect from your markup which uses an obsolete copyright
statement that you may be using a very old version of overlibmws.
If so, download the most up-to-date code via:
>
> http://www.macridesweb.com/oltest/
>
> and be sure to read the Getting Started:
>
> http://www.macridesweb.com/oltest/STARTED.html
>
> support file and at least the Introduction of the Command
Reference:
>
> http://www.macridesweb.com/oltest/commandRef.html
>
> Feel free to post here again if you have any more problems or
questions.
>
> Fote
> --
>
>   ----- Original Message -----
>   From: wandlimb1959
>   To: overlibmws@yahoogroups.com
>   Sent: Tuesday, May 09, 2006 9:18 AM
>   Subject: [OLmws] cannot find object
>
>
>   I hope someone can help with this strange error. I'm a novice
javascript coder, and this error doesn't always occur.
>
>   "Cannot find
>   'file:///C:/hereisthepath/[object]'.
>   Make sure the path or Internet address is correct.
>
>   On a Windows 2000 machine running IE 6.0, the following code
works (well, mostly). Clicking on the first link ("Overlib with
Navigation2") opens a STICKY with a link inside it ("pop up
window"). Clicking on this link results in a pop up window called by
a function that presents data contained in an XML file as filtered
through an XSL stylesheet.
>
>   On two different Windows XP  machines running IE 6.0, the
aforementioned error message occurs.
>
>   The XML, XSL, HTML file with javascript (see below),
overlibmws.js and overlibmws_function.js are all located in the same
directory.
>
>   I'm sure there are easier ways to do all of this, so please try
not to laugh too hard at my code. :)
>
>   Karla
>
>   --code starts here--
>
>   <html>
>   <head>
>   <script LANGUAGE="JavaScript"></script>
>   <meta http-equiv="Content-Language" content="en-us">
>   <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
>   <meta name="ProgId" content="FrontPage.Editor.Document">
>   <meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
>
>   <script type="text/javascript" src="overlibmws.js"><!-- overLIB
(c) Erik Bosrup --></script>
>   <script type="text/javascript"
src="overlibmws_function.js"></script>
>   <script type="text/javascript"></script>
>   <script type="text/javascript">
>   <!--
>
>   // View XML using XSL (works correctly in Microsoft Internet
Explorer v 6.0 only)
>   function PROCXmLXsLView( filenamexmlS, filenamexslS ) {
>   if (navigator.appName == "Microsoft Internet Explorer") {
>   // Declare variables
>   var xmldoc = null;
>   var xsldoc = null;
>   var resultdoc = null;
>   var newWin = null;
>   // Instantiate a new XML Object for the XML file
>   xmldoc = new ActiveXObject("Microsoft.XMLDOM");
>   xmldoc.async = false;
>   xmldoc.load( filenamexmlS );
>   // Instatiate a new XML Object for the XSL file
>   xsldoc = new ActiveXObject("Microsoft.XMLDOM");
>   xsldoc.async = false;
>   xsldoc.load( filenamexslS );
>   // Instatiate a new XML Object for the results
>   resultdoc = new ActiveXObject("Microsoft.XMLDOM");
>   resultdoc.async = false;
>   resultdoc.validateOnParse = true;
>   // Transform the data to the results object
>   xmldoc.transformNodeToObject( xsldoc, resultdoc );
>   // Produces new window for output
>   //newWin = window.open(resultdoc,"Lesson
Learned","height=500,width=700,toolbar=0,location=0,status=0,menubar=
1,scrollbars=1,resizable=1");
>   newWin = window.open
(resultdoc,"","height=500,width=700,menubar,scrollbars,resizable,titl
ebar");
>   // Write the data to a new window
>   newWin.document.write (xmldoc.transformNode(xsldoc ));
>   // Clean up the objects
>   xmldoc = null;
>   xsldoc = null;
>   resultdoc = null;
>   newWin = null;
>   }
>   else {
>   alert("Must use Internet Explorer 6 or higher");
>   }
>   }
>
>   // -->
>
>   function XMLHolder() {
>   var x = "1998-01Plant42.xml";
>   var y = "lessons1.xsl";
>   var myXML=PROCXmLXsLView(x,y);
>   }
>
>   var myTextString="<a href = javascript:; onclick='return overlib
(FUNCTION, XMLHolder);'>pop up window</a>"
>
>   </SCRIPT>
>
>   <meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
>   <meta http-equiv="Content-Language" content="en-us">
>   <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
>   <meta name="ProgId" content="FrontPage.Editor.Document">
>
>   <title>412th Test Wing Project Management Directorate</title>
>
>   </head>
>
>   <body>
>
>   <DIV ID="overDiv"
>      STYLE="position: absolute; visibility: hidden; z-
index:1000;"></DIV>
>     <P CLASS="spcFont">The examples below used the following in
the HEAD
>   section of the document:</P>
>
>
>   <a href="javascript:void(0);" onclick="return overlib
(myTextString,
>   STICKY, CAPTION, 'Lesson Learned', CENTER);" onClick="nd();"
>Overlib with Navigation2</a>
>   </body>
>
>   </html>
>

#702 From: "Lev Seltzer" <lev@...>
Date: Mon Aug 14, 2006 6:36 pm
Subject: overlib (overlibmws) does not work until user clicks refresh
levseltzer
Send Email Send Email
 
I have a website I've developed which uses overlib to display some pop-
up information.  For unknown reasons, the information does not display
when the visitor first views the page. HOWEVER, if the visitor clicks
on REFRESH, the code will work perfectly.

I first had the problem with the original overlib program.  I have
since switched to overlibmws, but still have the EXACT same problem.

You can see an example of this problem here:
http://www.apartment4programs.com/listings.asp?lang=EN
Point to any of the listings in the middle of the page.  Then click
refresh and point again.

Any ideas where the conflict might be?

Thank you.

#703 From: "Foteos Macrides" <fote@...>
Date: Mon Aug 14, 2006 9:05 pm
Subject: Re: New problem, menu remnant (was Re: [OLmws] cannot find object)
oldgreeky
Send Email Send Email
 
Karla,
 
When you use a function for the lead argument of an overlib call, it must be a function which returns a string (either plain text or an HTML fragment).  Your function invokes a new window, and does not have a return value.  So in addition to the new window, you are getting that overlib popup which is trying to inform you that you used an inappropriate function for the lead argument of the overlib call.
 
In your myTextString definition for the initial overlib popup menu, try not using an onclick overlib call which in turn makes your function call, but instead try having onclick make your function call directly, e.g.,
 
. . . onclick="PROCXmLXsLView(llURL[0],y));' return false;" . . .
 
You haven't provided enough for me to actually try that myself, so there might be additional problems, but that's the main problem.
 
Fote
--
 
----- Original Message -----
Sent: Monday, August 14, 2006 1:47 PM
Subject: New problem, menu remnant (was Re: [OLmws] cannot find object)

It's taken a long time, but I finally have some code that works, sort of. Disclaimer: I'm not really a programmer... I just sort of  patch code together.

Anyway...

I wanted a overlibmws popup menu which contained URLs that, upon clicking, would pump an XML file through an XSL stylesheet and display in a pop-up window. I am using overlibmws.js and overlibmws_function.js.

You can see a screenshot of this here:
http://karlatipton.com/images/menu-in-menu-1.jpg

So far, so good...except that there seems to be a remnant of the overlibmws popup menu, which shows up behind the popup XML display window containing the words "No Function" that follows the cursor around.

You can see a screenshot here:
http://karlatipton.com/images/menu-in-menu-2.jpg

Any suggestions that would help me get rid of this remnant menu would be greatly appreciated!

Thanks,
Karla

(code follows)

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<script LANGUAGE="JavaScript"></script>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<script type="text/javascript" src="overlibmws.js"><!--
overlibmws.js core module - Copyright Foteos Macrides 2002-2005. All
rights reserved. --></script>
<script type="text/javascript" src="overlibmws_function.js"></script>
<script type="text/javascript"></script>
<script type="text/javascript">
<!--
// View XML using XSL (works correctly in Microsoft Internet
Explorer v 6.0 only)
function PROCXmLXsLView( filenamexmlS, filenamexslS ) {
if (navigator.appName == "Microsoft Internet Explorer") {
// Declare variables
var xmldoc = null;
var xsldoc = null;
var resultdoc = null;
var newWin = null;
// Instantiate a new XML Object for the XML file
xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xmldoc.load( filenamexmlS );
// Instatiate a new XML Object for the XSL file
xsldoc = new ActiveXObject("Microsoft.XMLDOM");
xsldoc.async = false;
xsldoc.load( filenamexslS );
// Instatiate a new XML Object for the results
resultdoc = new ActiveXObject("Microsoft.XMLDOM");
resultdoc.async = false;
resultdoc.validateOnParse = true;
// Transform the data to the results object
xmldoc.transformNodeToObject( xsldoc, resultdoc );
// Produces new window for output
//newWin = window.open(resultdoc,"Lesson
Learned","height=500,width=700,toolbar=0,location=0,status=0,menubar=
1,scrollbars=1,resizable=1");
newWin = window.open
(resultdoc,"","height=500,width=700,menubar,scrollbars,resizable,titl
ebar");
// Write the data to a new window
newWin.document.write (xmldoc.transformNode(
xsldoc ));
// Clean up the objects
xmldoc = null;
xsldoc = null;
resultdoc = null;
newWin = null;
}
else {
alert("Must use Internet Explorer 6 or higher");
}
}

// -->

var llURL=new Array();
llURL[0]="https://URL_of_XML_file1.xml";
llURL[1]="https://URL_of_XML_file2.xml";

var y="https://https://URL_of_XSL_stylesheet.xsl";

var myTextString="<a href = javascript:; onclick='return overlib
(FUNCTION,PROCXmLXsLView(llURL[0],y));' return false;
onmouseup=cClick();>1976-01 Structuring Combined Contractor - Air
Force Development Test and Evaluation Programs (<b>Web view</b>)
</a>/<a href=\'https://URL_of_Acrobat_file1.pdf\'>(<b>PDF</b>)</a>
<br><br><a href = javascript:; onclick='return overlib
(FUNCTION,PROCXmLXsLView(llURL[1],y));' return false;
onmouseup=cClick();>1976-02 Detailed Test Planning - Combined
Contractor - Air Force Development Test and Evaluation Programs:
(<b>Web view</b>)</a>/<a href=\URL_of_Acrobat_file2.pdf\'>
(<b>PDF</b>)</a>"
   
document.write =(llURL[0]);
document.write =(llURL[1]);
document.write =(y);  

</SCRIPT>

<a href="javascript:void(0);" onclick="return overlib(myTextString,
STICKY, CAPTION, 'Class II Modifications', CENTER);" return
false;">PLANNING</a></font></span></td>

</body>

</html>

#704 From: "Foteos Macrides" <fote@...>
Date: Mon Aug 14, 2006 10:20 pm
Subject: Re: [OLmws] overlib (overlibmws) does not work until user clicks refresh
oldgreeky
Send Email Send Email
 
Lev,
 
I can't reproduce the problem when my server uses the markup that your server's listings.asp script is generating, and I haven't found anything wrong with that markup to the extent that I've looked it over.  Also, I don't get the problem when I use your server with Firefox or Opera, so it appears to be IE-specific.
 
In contrast to Firefox and Opera, IE has non-standard bubbling for serial javascript commands associated with an event, and you are making the overlib call in a series with another javacript command, so try reversing their order in the onmouseover attribute value.
 
If that "shot in the dark" doesn't help, as a workaround try also associating the overlib call with onmousemove for IE, e.g.,
 
. . .
onmouseover="this.style.background='lightgrey';
 overlib('Click for more information on this apartment',
  FGCOLOR, '#DDE6ED')"
onmousemove="if (OLie4 && !OLopr)
 overlib('Click for more information on this apartment',
  FGCOLOR, '#DDE6ED')"
. . .
 
Also try moving the inline style instruction to the top instead of bottom of the attribute=value list.
 
Let us know if any of that helps, and in the meantime I'll keep thinking about it.
 
Fote
--
 
----- Original Message -----
Sent: Monday, August 14, 2006 2:36 PM
Subject: [OLmws] overlib (overlibmws) does not work until user clicks refresh

I have a website I've developed which uses overlib to display some pop-up information.  For unknown reasons, the information does not display when the visitor first views the page. HOWEVER, if the visitor clicks on REFRESH, the code will work perfectly.

I first had the problem with the original overlib program.  I have since switched to overlibmws, but still have the EXACT same problem.

You can see an example of this problem here:
http://www.apartment4programs.com/listings.asp?lang=EN
Point to any of the listings in the middle of the page.  Then click refresh and point again.

Any ideas where the conflict might be?

Thank you.

#705 From: "wandlimb1959" <wandlimb1959@...>
Date: Mon Aug 14, 2006 11:20 pm
Subject: New problem, menu remnant (was Re: [OLmws] cannot find object)
wandlimb1959
Send Email Send Email
 
Fote,
The code you suggested works perfectly! Does this mean I don't have
to call overlibmws_function.js anymore, since I'm not calling a
function?

Thanks so much for your help! :)

Karla



--- In overlibmws@yahoogroups.com, "Foteos Macrides" <fote@...>
wrote:
>
> Karla,
>
> When you use a function for the lead argument of an overlib call,
it must be a function which returns a string (either plain text or
an HTML fragment).  Your function invokes a new window, and does not
have a return value.  So in addition to the new window, you are
getting that overlib popup which is trying to inform you that you
used an inappropriate function for the lead argument of the overlib
call.
>
> In your myTextString definition for the initial overlib popup
menu, try not using an onclick overlib call which in turn makes your
function call, but instead try having onclick make your function
call directly, e.g.,
>
> . . . onclick="PROCXmLXsLView(llURL[0],y));' return false;" . . .
>
> You haven't provided enough for me to actually try that myself, so
there might be additional problems, but that's the main problem.
>
> Fote
> --
>
>   ----- Original Message -----
>   From: wandlimb1959
>   To: overlibmws@yahoogroups.com
>   Sent: Monday, August 14, 2006 1:47 PM
>   Subject: New problem, menu remnant (was Re: [OLmws] cannot find
object)
>
>
>   It's taken a long time, but I finally have some code that works,
sort of. Disclaimer: I'm not really a programmer... I just sort of
patch code together.
>
>   Anyway...
>
>   I wanted a overlibmws popup menu which contained URLs that, upon
clicking, would pump an XML file through an XSL stylesheet and
display in a pop-up window. I am using overlibmws.js and
overlibmws_function.js.
>
>   You can see a screenshot of this here:
>   http://karlatipton.com/images/menu-in-menu-1.jpg
>
>   So far, so good...except that there seems to be a remnant of the
overlibmws popup menu, which shows up behind the popup XML display
window containing the words "No Function" that follows the cursor
around.
>
>   You can see a screenshot here:
>   http://karlatipton.com/images/menu-in-menu-2.jpg
>
>   Any suggestions that would help me get rid of this remnant menu
would be greatly appreciated!
>
>   Thanks,
>   Karla
>
>   (code follows)
>
>   <html>
>
>   <head>
>   <meta http-equiv="Content-Type" content="text/html;
charset=windows-
>   1252">
>   <script LANGUAGE="JavaScript"></script>
>   <meta http-equiv="Content-Language" content="en-us">
>   <meta http-equiv="Content-Type" content="text/html;
charset=windows-
>   1252">
>   <script type="text/javascript" src="overlibmws.js"><!--
>   overlibmws.js core module - Copyright Foteos Macrides 2002-2005.
All
>   rights reserved. --></script>
>   <script type="text/javascript"
src="overlibmws_function.js"></script>
>   <script type="text/javascript"></script>
>   <script type="text/javascript">
>   <!--
>   // View XML using XSL (works correctly in Microsoft Internet
>   Explorer v 6.0 only)
>   function PROCXmLXsLView( filenamexmlS, filenamexslS ) {
>   if (navigator.appName == "Microsoft Internet Explorer") {
>   // Declare variables
>   var xmldoc = null;
>   var xsldoc = null;
>   var resultdoc = null;
>   var newWin = null;
>   // Instantiate a new XML Object for the XML file
>   xmldoc = new ActiveXObject("Microsoft.XMLDOM");
>   xmldoc.async = false;
>   xmldoc.load( filenamexmlS );
>   // Instatiate a new XML Object for the XSL file
>   xsldoc = new ActiveXObject("Microsoft.XMLDOM");
>   xsldoc.async = false;
>   xsldoc.load( filenamexslS );
>   // Instatiate a new XML Object for the results
>   resultdoc = new ActiveXObject("Microsoft.XMLDOM");
>   resultdoc.async = false;
>   resultdoc.validateOnParse = true;
>   // Transform the data to the results object
>   xmldoc.transformNodeToObject( xsldoc, resultdoc );
>   // Produces new window for output
>   //newWin = window.open(resultdoc,"Lesson
>
Learned","height=500,width=700,toolbar=0,location=0,status=0,menubar=
>   1,scrollbars=1,resizable=1");
>   newWin = window.open
>
(resultdoc,"","height=500,width=700,menubar,scrollbars,resizable,titl
>   ebar");
>   // Write the data to a new window
>   newWin.document.write (xmldoc.transformNode(
>   xsldoc ));
>   // Clean up the objects
>   xmldoc = null;
>   xsldoc = null;
>   resultdoc = null;
>   newWin = null;
>   }
>   else {
>   alert("Must use Internet Explorer 6 or higher");
>   }
>   }
>
>   // -->
>
>   var llURL=new Array();
>   llURL[0]="https://URL_of_XML_file1.xml";
>   llURL[1]="https://URL_of_XML_file2.xml";
>
>   var y="https://https://URL_of_XSL_stylesheet.xsl";
>
>   var myTextString="<a href = javascript:; onclick='return overlib
>   (FUNCTION,PROCXmLXsLView(llURL[0],y));' return false;
>   onmouseup=cClick();>1976-01 Structuring Combined Contractor -
Air
>   Force Development Test and Evaluation Programs (<b>Web view</b>)
>   </a>/<a href=\'https://URL_of_Acrobat_file1.pdf\'>(<b>PDF</b>)
</a>
>   <br><br><a href = javascript:; onclick='return overlib
>   (FUNCTION,PROCXmLXsLView(llURL[1],y));' return false;
>   onmouseup=cClick();>1976-02 Detailed Test Planning - Combined
>   Contractor - Air Force Development Test and Evaluation Programs:
>   (<b>Web view</b>)</a>/<a href=\URL_of_Acrobat_file2.pdf\'>
>   (<b>PDF</b>)</a>"
>
>   document.write =(llURL[0]);
>   document.write =(llURL[1]);
>   document.write =(y);
>
>   </SCRIPT>
>
>   <a href="javascript:void(0);" onclick="return overlib
(myTextString,
>   STICKY, CAPTION, 'Class II Modifications', CENTER);" return
>   false;">PLANNING</a></font></span></td>
>
>   </body>
>
>   </html>
>

#706 From: "Foteos Macrides" <fote@...>
Date: Mon Aug 14, 2006 11:37 pm
Subject: Re: New problem, menu remnant (was Re: [OLmws] cannot find object)
oldgreeky
Send Email Send Email
 
Karla,
 
Correct, you no longer need to import overlibmws_function.js.
 
Thanks for the feedback.  I'm glad that solved your problem.
 
Fote
--
 
----- Original Message -----
Sent: Monday, August 14, 2006 7:20 PM
Subject: New problem, menu remnant (was Re: [OLmws] cannot find object)

Fote,
The code you suggested works perfectly! Does this mean I don't have to call overlibmws_function.js anymore, since I'm not calling a
function?

Thanks so much for your help! :)

Karla

#707 From: "Lev Seltzer" <lev@...>
Date: Tue Aug 15, 2006 8:47 am
Subject: Re: overlib (overlibmws) does not work until user clicks refresh
levseltzer
Send Email Send Email
 
I have confirmed that the code works properly in FireFox on the
first time.

I reverse the order and moved the style to the front of the list
(closest to the <tr>" with no change in behaviour.

I tried your "onmousemove" code, but it did not work as listed.  I
tried associating the onmouseover event with the <td> instead of the
<tr>, but the results were the same.

I completely removed the existing onmouseover, onmouseout and style
attributes, but still had the same results (e.g. it worked as soon
as I refreshed - this was with the commands in the <td> tag).

So there does seem to be a conflict, but only MSIE 6 (I tested in
MSIE7 and it works as expected).

Any ideas for a work-around?

Thank you very much.

Lev

#708 From: "Foteos Macrides" <fote@...>
Date: Tue Aug 15, 2006 10:59 pm
Subject: Re: [OLmws] overlib (overlibmws) does not work until user clicksrefresh
oldgreeky
Send Email Send Email
 
Lev,
 
The fact that IE7 doesn't have the problem also suggests that this is a consequence of non-standard behavior in IE6, but since I can't reproduce the problem in IE6 with local files nor ones fetched from my own server, I can't pursue my presently "half-baked" ideas in search of clues for what might be done as a workaround.  Without my going into a "song and dance" about why, could you also try each of the following via your server:
 
  1)  Make the contents of the td cells links, and see if the overlib calls work for the onmouseover events of anchor elements (as opposed to td or tr elements) in the tables.
 
  2)  Create a test document which reduces the nesting depth of the tables with the overlib calls (they are currently nested within 3 other tables).
 
  3)  Move the script block which imports the overlibmws.js file down from the top of the head section to the bottom of the head section.
 
The document returned by listings.asp on your server does have some invalid HTML markup, as you can assess via the W3C validator:
 
 
and so differences across browsers and browser versions in their "error recovery" from invalid markup might be a factor in the problem.  You thus might want to fix it up until the validator complains only about necessarily "invalid" markup such as the object element with an embed element for the flash.  But I looked carefully again, and still didn't see any bad markup that seemed likely to be producing the problem.
 
Fote
--
 
----- Original Message -----
Sent: Tuesday, August 15, 2006 4:47 AM
Subject: [OLmws] Re: overlib (overlibmws) does not work until user clicksrefresh

I have confirmed that the code works properly in FireFox on the first time.

I reverse the order and moved the style to the front of the list (closest to the <tr>" with no change in behaviour.

I tried your "onmousemove" code, but it did not work as listed.  I tried associating the onmouseover event with the <td> instead of the <tr>, but the results were the same.

I completely removed the existing onmouseover, onmouseout and style attributes, but still had the same results (e.g. it worked as soon as I refreshed - this was with the commands in the <td> tag).

So there does seem to be a conflict, but only MSIE 6 (I tested in MSIE7 and it works as expected).

Any ideas for a work-around?

Thank you very much.

Lev

#709 From: "Lev Seltzer" <lev@...>
Date: Wed Aug 16, 2006 9:56 am
Subject: Re: overlib (overlibmws) does not work until user clicksrefresh
levseltzer
Send Email Send Email
 
Thank you for your suggestions.  I cleaned up the code and tried
implementing a few of your suggestions, but the results are the same.

Unless my client insists, I think I will leave it at this.  The code
is functional, as we've seen on FF and IE7.  It even works on IE6 -
though only after a refresh.  If I have time in the future, perhaps I
will revisit this.

I appreciate the time you spent on this, and for giving me the various
suggestions.

Sincerely,

Lev Seltzer

#710 From: "cji_work" <cji_work@...>
Date: Fri Sep 1, 2006 7:41 pm
Subject: newbie question.
cji_work
Send Email Send Email
 
Hi there,
I am a two-day user of the "overlibmws" library. I think this package
comes with a very good online document and it is very easy for me to
pick up. So far I have solved lots of issues by using your package.

The question I have is:
I know I can use this library to create a popup with contents loaded
from a txt file. But is it possible not to create a popup, but put the
contents of that txt file in the textarea of the same html file ?


thanks,


-cji

#711 From: "Foteos Macrides" <fote@...>
Date: Sat Sep 2, 2006 12:36 am
Subject: Re: [OLmws] newbie question.
oldgreeky
Send Email Send Email
 
If I understand your objective correctly, in response to an event such as onclick you wish to retrieve the contents of a txt file from your sever and make it the displayed value of a textarea.  The easiest way to do this is to import the overlibmws distribution's ajaxcontentmws.js and use its OLgetAJAX or OLpostAJAX function, as described in the:
 
 
support document, with the url argument being the URL (as a quoted string) for the txt file and the command argument being a function which loads OLresponseAJAX into the textarea instead of being an overlib call which uses it as the lead argument, e.g.:
 
onclick=
 "OLgetAJAX(URL,
    function(){document.forms.F.elements.TA.value=OLresponseAJAX;});
   return false;"
 
F should be replaced by the name you assigned to the form, and TA by the name you assigned to the textarea.
 
Feel free to post here again if you have any problem(s), and if possible include a URL for a test document which shows the problem(s).
 
Fote
--
 
----- Original Message -----
From: cji_work
Sent: Friday, September 01, 2006 3:41 PM
Subject: [OLmws] newbie question.

Hi there,
I am a two-day user of the "overlibmws" library. I think this package comes with a very good online document and it is very easy for me to pick up. So far I have solved lots of issues by using your package.

The question I have is:   I know I can use this library to create a popup with contents loaded from a txt file. But is it possible not to create a popup, but put the
contents of that txt file in the textarea of the same html file ?

thanks,
-cji

#712 From: chun ji <cji_work@...>
Date: Tue Sep 5, 2006 4:35 pm
Subject: Re: [OLmws] newbie question.
cji_work
Send Email Send Email
 
Hi Mr Foteos,
It works just as I wished. Thanks a lot for the tips.


-cji


--- Foteos Macrides <fote@...> wrote:

> If I understand your objective correctly, in
> response to an event such as onclick you wish to
> retrieve the contents of a txt file from your sever
> and make it the displayed value of a textarea.  The
> easiest way to do this is to import the overlibmws
> distribution's ajaxcontentmws.js and use its
> OLgetAJAX or OLpostAJAX function, as described in
> the:
>
> http://www.macridesweb.com/oltest/AJAX.html
>
> support document, with the url argument being the
> URL (as a quoted string) for the txt file and the
> command argument being a function which loads
> OLresponseAJAX into the textarea instead of being an
> overlib call which uses it as the lead argument,
> e.g.:
>
> onclick=
>  "OLgetAJAX(URL,
>
>
function(){document.forms.F.elements.TA.value=OLresponseAJAX;});
>    return false;"
>
> F should be replaced by the name you assigned to the
> form, and TA by the name you assigned to the
> textarea.
>
> Feel free to post here again if you have any
> problem(s), and if possible include a URL for a test
> document which shows the problem(s).
>
> Fote
> --
>
>   ----- Original Message -----
>   From: cji_work
>   To: overlibmws@yahoogroups.com
>   Sent: Friday, September 01, 2006 3:41 PM
>   Subject: [OLmws] newbie question.
>
>
>   Hi there,
>   I am a two-day user of the "overlibmws" library. I
> think this package comes with a very good online
> document and it is very easy for me to pick up. So
> far I have solved lots of issues by using your
> package.
>
>   The question I have is:   I know I can use this
> library to create a popup with contents loaded from
> a txt file. But is it possible not to create a
> popup, but put the
>   contents of that txt file in the textarea of the
> same html file ?
>
>   thanks,
>   -cji


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#713 From: "Foteos Macrides" <fote@...>
Date: Tue Sep 5, 2006 9:52 pm
Subject: Re: [OLmws] newbie question.
oldgreeky
Send Email Send Email
 
I'm glad that it worked out for you.  For someone who has been using overlibmws for only a few days, you've progressed rather quickly to working successfully with some of its advanced features.  But again, feel free to post here if you should at some time encounter any problems.
 
Fote
--
 
----- Original Message -----
From: cji_work
Sent: Tuesday, September 05, 2006 12:35 PM
Subject: [OLmws] newbie question.
 
Hi Mr Foteos,
It works just as I wished. Thanks a lot for the tips.
 
-cji
----- Original Message -----
Sent: Friday, September 01, 2006 8:36 PM
Subject: Re: [OLmws] newbie question.

If I understand your objective correctly, in response to an event such as onclick you wish to retrieve the contents of a txt file from your sever and make it the displayed value of a textarea.  The easiest way to do this is to import the overlibmws distribution's ajaxcontentmws.js and use its OLgetAJAX or OLpostAJAX function, as described in the:
 
 
support document, with the url argument being the URL (as a quoted string) for the txt file and the command argument being a function which loads OLresponseAJAX into the textarea instead of being an overlib call which uses it as the lead argument, e.g.:
 
onclick=
 "OLgetAJAX(URL,
    function(){document.forms.F.elements.TA.value=OLresponseAJAX;});
   return false;"
 
F should be replaced by the name you assigned to the form, and TA by the name you assigned to the textarea.
 
Feel free to post here again if you have any problem(s), and if possible include a URL for a test document which shows the problem(s).
 
Fote
--
 
----- Original Message -----
From: cji_work
Sent: Friday, September 01, 2006 3:41 PM
Subject: [OLmws] newbie question.

Hi there,
I am a two-day user of the "overlibmws" library. I think this package comes with a very good online document and it is very easy for me to pick up. So far I have solved lots of issues by using your package.

The question I have is:   I know I can use this library to create a popup with contents loaded from a txt file. But is it possible not to create a popup, but put the contents of that txt file in the textarea of the same html file ?

thanks,
-cji

#714 From: "tpmacdad" <tpmacdad@...>
Date: Wed Sep 6, 2006 5:13 am
Subject: Enclosing a photo in the popup
tpmacdad
Send Email Send Email
 
I've written a batch of code that dynamically extracts some graphics
files from a database and puts them on the page so that the user can
pick which photos to use for the listing.  To make a long story short,
these are thumbnails and what I am looking to do is to generate a non-
sticky popup that will show the user the larger picture when he or she
mouses over the thumbnail(I want it to close when the user moves the
mouse away from the popup).  There's all sorts of alternate things
that I could do, but it seems like overlib would be the most intuitive
interface in this case.  I've been able to create some fantastic text
popups with overlib, but I'm having some trouble with graphics.  Any
help would be appreciated!!

Thanks,
Terry McNeese
New Paradigm Associates

#715 From: "Foteos Macrides" <fote@...>
Date: Wed Sep 6, 2006 12:52 pm
Subject: Re: [OLmws] Enclosing a photo in the popup
oldgreeky
Send Email Send Email
 
Terry,
 
To include an image in a popup you simply use an img tag for the image in the popup content.  If your database contains the image dimensions, it is desirable to include height and width attributes for the image in the img tag so that the popup is sized with maximum efficiency.  If the image is the sole content and you have indicated the height and width in the img tag, correspondingly use the WRAP command in the overlib call, as well as TEXTPADDING,0, so that only the BORDER and any CAPTION will encompass the image.  Although it may not be possible when the img tag is being generated via a database, it is desirable to include javascript for preloading the larger images, so that any users not on broadband need not have long waits for the larger images to be loaded into the popups.  See the:
 
 
support document for examples of "blow-up" popups invoked via thumbnails.
 
If, as you presently intend, you do use onmouseover for invoking the "blow-up" popup as non-STICKY, and correspondingly need to use nd() with onmouseout to close the popup, beware that you will need to be very careful about the placements of the thumbnails in the displayed document so that the "blow-up" popup does not end up overlapping with its thumbnail.  Otherwise, you will get annoying "chatter" of the popup as it creates the equivalent of an onmouseout, causing the popup to close prematurely, then be re-invoked as the thumbnail is re-exposed, then again close, etc., in rapid succession.  This problem is completely avoided when the "blow-up" popups are STICKY.
 
Fote
--
 
----- Original Message -----
From: tpmacdad
Sent: Wednesday, September 06, 2006 1:13 AM
Subject: [OLmws] Enclosing a photo in the popup

I've written a batch of code that dynamically extracts some graphics files from a database and puts them on the page so that the user can pick which photos to use for the listing.  To make a long story short, these are thumbnails and what I am looking to do is to generate a non-sticky popup that will show the user the larger picture when he or she mouses over the thumbnail (I want it to close when the user moves the mouse away from the popup).  There's all sorts of alternate things that I could do, but it seems like overlib would be the most intuitive interface in this case.  I've been able to create some fantastic text popups with overlib, but I'm having some trouble with graphics.  Any help would be appreciated!!

Thanks,
Terry McNeese
New Paradigm Associates

#716 From: "ssmattson" <ssmattson@...>
Date: Wed Oct 18, 2006 6:40 pm
Subject: Close popup on clicking of link
ssmattson
Send Email Send Email
 
Hi Fote,

I'm a JS novice and having a little trouble getting the desired
behavior.
I have a link that invokes an overlib popup that loads an external
html file using the object method.  In that file are links which
open yet another document.  What I would like to do is have the
popup close when a user clicks on a link which opens a new document,
it would be like how the calendar would work if clicking on a date
actually opened up a new browser window (document) but still closed
itself.

Here's the code for the popup:
...<li><a href="javascript:void(0);" onclick="overlib('<object
data=\'object_popup.html\' id=\'ID\' width=\'370\' height=\'140
\' '+'type=\'text/html\'></object>', STICKY, TEXTPADDING,
0, CAPTIONPADDING, 1, CAPTION, 'Document Caption', BORDER, 0, WRAP,
SCROLL, CLOSECLICK, CLOSETEXT, closeimg, EXCLUSIVE,
HIDESELECTBOXES ); return false;">Open popup</a></li>...

And for the link that should close the popup and open a new document:
...<td><a href="new_document.html" target="_blank">4</a></td>...

I would appreciate any help with this.  Thanks Fote.

S.

#717 From: "Foteos Macrides" <fote@...>
Date: Wed Oct 18, 2006 10:48 pm
Subject: Re: [OLmws] Close popup on clicking of link
oldgreeky
Send Email Send Email
 
If the DHTML popup content is a complete HTML file imported via iframe, cf.:
 
and
 
and you wish to close the popup when the user clicks on a link within the imported file that invokes a new window or tab, then the link should use onclick to make a cClick call in the parent.  In your example (appended), you would use:
 
 <a
   href="new_document.html"
   onclick="if (parent != self) parent.cClick(); return true;"
   target="_blank">4</a>
 
The test for whether the document has a parent avoids a potential javascript error if the document is viewed directly rather than via the popup.  It returns true so that the link's href will be acted upon.
 
If (as you presently are doing) the DHTML popup instead uses object with type="text/html" to import the HTML file, cf:
 
you run into the problem of inconsistent implementations of object across browsers.  For example, Firefox uses essentially the same code for its implementation of object in that case as for iframe, and so the two elements work equivalently for this HTML markup and javascript.  They also both work as intended with Opera (and probably Safari, but I haven't checked to be sure).  But unfortunately, IE has a weird implementation of object which does not register the parent document as parent, and so this HTML markup and javascript fail.
 
If there is some reason why you cannot use iframe instead of object to import the HTML file, then a "sorta" workaround for IE's weird implementation of object is to include MOUSEOFF for the popup in the parent document.  The popup will not close when the user clicks on a link in the imported HTML file that opens a new window or tab, but will close when that new window or tab is closed or minimized and the cursor returns to the parent document.  You can keep the onclick markup for the browsers which do handle object as expected, so that the popup closes immediately for them.  If you want to make the MOUSEOFF specific to IE, use:
 
. . . , (OLie4 && !OLopr)?MOUSEOFF:DONOTHING, . . . 
 
in the overlib command.
 
Fote
--
 
----- Original Message -----
From: ssmattson
Sent: Wednesday, October 18, 2006 2:40 PM
Subject: [OLmws] Close popup on clicking of link

Hi Fote,

I'm a JS novice and having a little trouble getting the desired behavior.  I have a link that invokes an overlib popup that loads an external html file using the object method.  In that file are links which open yet another document.  What I would like to do is have the popup close when a user clicks on a link which opens a new document, it would be like how the calendar would work if clicking on a date actually opened up a new browser window (document) but still closed itself.

Here's the code for the popup:
. . . 
<li>
 <a
   href="javascript:void(0);"
  onclick="overlib('&lt;object data=\'object_popup.html\' '
   +'id=\'ID\' width=\'370\' height=\'140\' '
   +'type=\'text/html\'&gt;&lt;/object&gt;', STICKY,
   TEXTPADDING, 0, CAPTIONPADDING, 1,
   CAPTION, 'Document Caption', BORDER, 0, WRAP,
   SCROLL, CLOSECLICK, CLOSETEXT, closeimg,
   EXCLUSIVE, HIDESELECTBOXES ); return false;"
 >Open popup</a>
</li>
. . . 

And for the link that should close the popup and open a new document:
. . . 
<td>
 <a
   href="new_document.html"
   target="_blank">4</a>
</td>
. . . 

I would appreciate any help with this.  Thanks Fote.

S.

#718 From: Sean mattson <ssmattson@...>
Date: Thu Oct 19, 2006 5:34 pm
Subject: Re: [OLmws] Close popup on clicking of link
ssmattson
Send Email Send Email
 
Thanks Fote,
As usual, your response has been immensely helpful.
 
Regards,
S

Foteos Macrides <fote@...> wrote:
If the DHTML popup content is a complete HTML file imported via iframe, cf.:
 
and
 
and you wish to close the popup when the user clicks on a link within the imported file that invokes a new window or tab, then the link should use onclick to make a cClick call in the parent.  In your example (appended), you would use:
 
 <a
   href="new_document.html"
   onclick="if (parent != self) parent.cClick(); return true;"
   target="_blank">4</a>
 
The test for whether the document has a parent avoids a potential javascript error if the document is viewed directly rather than via the popup.  It returns true so that the link's href will be acted upon.
 
If (as you presently are doing) the DHTML popup instead uses object with type="text/html" to import the HTML file, cf:
 
you run into the problem of inconsistent implementations of object across browsers.  For example, Firefox uses essentially the same code for its implementation of object in that case as for iframe, and so the two elements work equivalently for this HTML markup and javascript.  They also both work as intended with Opera (and probably Safari, but I haven't checked to be sure).  But unfortunately, IE has a weird implementation of object which does not register the parent document as parent, and so this HTML markup and javascript fail.
 
If there is some reason why you cannot use iframe instead of object to import the HTML file, then a "sorta" workaround for IE's weird implementation of object is to include MOUSEOFF for the popup in the parent document.  The popup will not close when the user clicks on a link in the imported HTML file that opens a new window or tab, but will close when that new window or tab is closed or minimized and the cursor returns to the parent document.  You can keep the onclick markup for the browsers which do handle object as expected, so that the popup closes immediately for them.  If you want to make the MOUSEOFF specific to IE, use:
 
. . . , (OLie4 && !OLopr)?MOUSEOFF:DONOTHING, . . . 
 
in the overlib command.
 
Fote
--
 
----- Original Message -----
From: ssmattson
Sent: Wednesday, October 18, 2006 2:40 PM
Subject: [OLmws] Close popup on clicking of link

Hi Fote,

I'm a JS novice and having a little trouble getting the desired behavior.  I have a link that invokes an overlib popup that loads an external html file using the object method.  In that file are links which open yet another document.  What I would like to do is have the popup close when a user clicks on a link which opens a new document, it would be like how the calendar would work if clicking on a date actually opened up a new browser window (document) but still closed itself.

Here's the code for the popup:
. . . 
<li>
 <a
   href="javascript:void(0);"
  onclick="overlib('&lt;object data=\'object_popup.html\' '
   +'id=\'ID\' width=\'370\' height=\'140\' '
   +'type=\'text/html\'&gt;&lt;/object&gt;', STICKY,
   TEXTPADDING, 0, CAPTIONPADDING, 1,
   CAPTION, 'Document Caption', BORDER, 0, WRAP,
   SCROLL, CLOSECLICK, CLOSETEXT, closeimg,
   EXCLUSIVE, HIDESELECTBOXES ); return false;"
 >Open popup</a>
</li>
. . . 

And for the link that should close the popup and open a new document:
. . . 
<td>
 <a
   href="new_document.html"
   target="_blank">4</a>
</td>
. . . 

I would appreciate any help with this.  Thanks Fote.

S.


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.

#720 From: "davmorr" <davmorr@...>
Date: Fri Oct 20, 2006 9:00 pm
Subject: Submitting Form Post Data To An IFrame Pop-Up
davmorr
Send Email Send Email
 
Hello,

I am trying to submit multi-field form post data to a page in the
iframe pop-up, but can't for the life of me figure out how or where
to call the overlib function with the submitted data attached.  I've
tried several "tricks" to get these working together, as well as
searching through the documentation, to no avail.  I am just hoping
at this point that it is something painfulluy obvious that I am over
looking.

Simple Example:

[call.html]
<form action="catch.php" method="post" name="form1" id="form1">
Name: <input type="text" name="name" value="George Dubbyah"><br>
Rank: <input type="text" name="rank" value="Court Jester"><br>
Serial: <input type="text" name="serial" value="Fruit Loops"><br>
<input type="submit" value="Go #1">
~or~
<input type="button" value="Go #2" onclick="document.form1.submit()">
</form>
[/call.html]

~~~~~~~~~~~~~~~~~~~~~~~~~~

[catch.php]
<?php
   print "HTTP POSTED VARIABLES";
   print "<b>Posted variables:</b> <br>";
   reset ($_POST);
   while(list($key, $val) = each ($_POST))
       print $key . " = " . $val . "<br>";
?>
[/catch.php]

What I'm trying to do in the above sample is figure out where the
overlib code would integrate with the form submission code (in
call.html) so that catch.php loads in the iframe pop-up displaying
the submitted form post vars.

Thank you,
Dave

#721 From: "Foteos Macrides" <fote@...>
Date: Fri Oct 20, 2006 11:00 pm
Subject: Re: [OLmws] Submitting Form Post Data To An IFrame Pop-Up
oldgreeky
Send Email Send Email
 
Dave,
 
I'm not sure I fully understand your objective.  If the form is in an HTML file that was imported into a popup as iframe content, then the reply from your server automatically will be placed in the popup, replacing the imported HTML file which had the form.  If the form is in the original document (i.e., not the iframe content of a popup), the form start tag could include a target attribute to place the server's reply in a new window, which is also simple and automatic.  Instead of those possibilities, is your objective to have the form in the original document, but have the server's reply presented in a DHTML popup invoked in conjunction with the submission of the form?
 
If the latter is your objective, you might be better off using AJAX via the overlibmws distribution's ajaxcontentmws.js function set.  See the:
 
 
support document.  For what you've described, you could use its OLpostAJAX() function called via onclick for your pseudo-submit button, with its url argument being catch.php and its qry argument being constructed from the values of each input field (create a javascript function which constructs and returns a query string that OLpostAJAX will convert to POST data, and make the qry argument a call to that function). 
 
Of course, if you really want only to show the current values in the form input fields, your javascript function could do the equivalent of what your catch.php is doing, and that "client-side script" could be made the lead argument of an overlib call without need to involve your server.  But I assume you're starting with a simple test with your server-side scripting, and eventually it will do more things with the POSTed data than just show what was received.
 
Fote
--
 
----- Original Message -----
From: davmorr
Sent: Friday, October 20, 2006 5:01 PM
Subject: [OLmws] Submitting Form Post Data To An IFrame Pop-Up

Hello,

I am trying to submit multi-field form post data to a page in the iframe pop-up, but can't for the life of me figure out how or where to call the overlib function with the submitted data attached.  I've tried several "tricks" to get these working together, as well as searching through the documentation, to no avail.  I am just hoping at this point that it is something painfulluy obvious that I am over looking. 

Simple Example:

[call.html]
<form action="catch.php" method="post" name="form1" id="form1">
Name: <input type="text" name="name" value="George Dubbyah"><br>
Rank: <input type="text" name="rank" value="Court Jester"><br>
Serial: <input type="text" name="serial" value="Fruit Loops"><br>
<input type="submit" value="Go #1">
~or~
<input type="button" value="Go #2" onclick="document.form1.submit()">
</form>
[/call.html]

~~~~~~~~~~~~~~~~~~~~~~~~~~

[catch.php]
<?php
  print "HTTP POSTED VARIABLES";
  print "<b>Posted variables:</b> <br>";
  reset ($_POST);
  while(list($key, $val) = each ($_POST))
      print $key . " = " . $val . "<br>";
?>
[/catch.php]

What I'm trying to do in the above sample is figure out where the overlib code would integrate with the form submission code (in call.html) so that catch.php loads in the iframe pop-up displaying the submitted form post vars.

Thank you,
Dave

#722 From: "Walter Conti" <walter@...>
Date: Wed Nov 1, 2006 4:25 am
Subject: Overlib Confirm dialog
contiw
Send Email Send Email
 
Did somebody make an Overlib widget to substitute windows Yes/No
confirm dialog?
Thanks for sharing.
ContiW

#723 From: "Foteos Macrides" <fote@...>
Date: Sat Nov 11, 2006 7:16 pm
Subject: Re: [OLmws] Overlib Confirm dialog
oldgreeky
Send Email Send Email
 
Walter,
 
Creating an "overlib widget" to substitute for the windows Yes/No confirm dialog is not difficult (IMHO :<) if you do not require that it be modal, i.e., that access to the document in that window be blocked until the user answers Yes or No in the DHTML popup.  I put out a very preliminary version of a support document:
 
 
which you can use as a model for such a widget.  It also has an option to make the DHTML popup modal, but that objective has proven more difficult, and the modal feature still needs work before it could be used flawlessly with any document and any of the browsers supported by overlibmws.
 
For the modal feature, I'm trying to use the trick of Seth Banks in his subModal freeware:
 
 
which is to interpose a semi-transparent positioned div (layer) with a z-index higher than the document's but lower than the dialog pop-up's.  He's using a DHTML popup with iframe content, which causes needless headaches and history (Back and Forward button) handling problems, that I've avoided by instead using an overlib popup.  But the reflows associated with setting the document's overflow value to 'hidden' when interposing the semi-transparent layer, and then removing it when the user has answered Yes or No, cause the document to jump in browser-idiosyncratic ways when the document is large enough to have horizontal and/or vertical scrollbars.  I've improved on that in my version for overlibmws, but not yet fully nailed it.
 
Fote
--
 
----- Original Message -----
Sent: Tuesday, October 31, 2006 11:25 PM
Subject: [OLmws] Overlib Confirm dialog

Did somebody make an Overlib widget to substitute windows Yes/No confirm dialog?
Thanks for sharing.
ContiW

#724 From: "mcoogan2005" <mcoogan2005@...>
Date: Sun Nov 12, 2006 11:38 pm
Subject: need help with bubble pop ups
mcoogan2005
Send Email Send Email
 
I'm completely new to this.  can anyone tell me what i need to do to
use my own images for the bubble pop ups?

#725 From: "Foteos Macrides" <fote@...>
Date: Mon Nov 13, 2006 4:17 am
Subject: Re: [OLmws] need help with bubble pop ups
oldgreeky
Send Email Send Email
 
Welcome aboard!!!
 
The information you are seeking is in section:
 
5. Adding more "bubble" images.
 
of the:
 
 
support document.
 
I just re-read it, and it's awfully hairy, so if you have problems following it feel free to post back here about whatever is confusing you.
 
Fote
--
----- Original Message -----
Sent: Sunday, November 12, 2006 6:38 PM
Subject: [OLmws] need help with bubble pop ups

I'm completely new to this.  can anyone tell me what i need to do to use my own images for the bubble pop ups?

#726 From: "patoutofhull" <Pat@...>
Date: Wed Nov 15, 2006 12:09 pm
Subject: Semi-transparent popup over popup
patoutofhull
Send Email Send Email
 
Hi

I'm brand-new to the group and have stumbled on overlibmws whilst
searching for a solution to a requirement on a website I'm building.

Basically, a link on the website will produce a (modal) popup window,
with no scroll or navigational elements. The contents of that window
will be changed via Ajax using Perl with access to a mysql database.

One of the elements of the window is a "help" link which will create a
smaller, rectangular, semi-transparent, scrollable area (containing
help text) in a fixed location on top of the popup.   The contents of
this help area will also be obtained via Ajax because the help text is
"context-sensitive" to the current popup content.

Now for the cheeky part .... is there anyone who has already done this
using overlib/mws, or something similar, who would be kind enough to
either describe how or supply an example?

#727 From: "wvaneeden" <wvaneeden@...>
Date: Wed Nov 15, 2006 4:37 pm
Subject: Problem with mouseover popup
wvaneeden
Send Email Send Email
 
I have a problem where it seems like the nd() function is not
cancelling the timer on mouseoff events. I do have a delay before it
should popup as I do not want the popups to display while you move the
mouse over them, only when you hover. However, I get popups even after
mousing off of the link. It does not happen all the time, but I can do
it over and over. Here's the code in question. There are several of
these on the page and they all have unique id's as well. Can anyone
tell me what I might have done wrong. I have tried onmouseout="return
nd();" and onmouseout="nd();" as well as specifying a time "nd(1)",
but it made no difference. Thanks.

<span class="fdCityTxt"><a href="javascript:void(0);"
onmouseover="getName('DFW', '1163605576480-522', 'origin');"
onmouseout="return nd();" class="hoverLinks" id="origin">DFW</a>
</span>

function getName(code, stateId, id) {
//code removed here that will get a city name into a data field called
"data"
	 return overlib
(code+"<br>"+data,NOFOLLOW,TIMEOUT,15000,DELAY,1500,WRAP,HAUTO,VAUTO,
FGCOLOR,'#FFFFFF',BGCOLOR,'#989898',TEXTSIZE,'11px',TEXTCOLOR,'050084',BORDER,2,\
REF,id,REFC,'LR',REFX,
5);
}

Messages 697 - 727 of 1492   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help