I am having strange problems calling a javascript function from my
shockwave.
I think the problem is in the function itself as everything seems to be
passing OK.
I can open the new window and as long as I don't close it I can keep
updating it(code is attached to 10 thumbnail pics).
if I close it, I get nothing(in the NSdebug I get either a "PopupWin not
defined" or "libsWin.close not defined")
SEE CODE BELOW
Is there a better way of doing this or am I just doing something wrong here.
I thought about having a dummy.html page and just updating the text & image.
Thanks for any help you can give
regards
Brad
(I am on digest so if you can bcc me direct that'd be great)
------------------start code---------------------------
-- sent from in shockwave on mouseup---
  myJSfunction="javascript:PopupWin('"& pMyimage & "','" & pMytext & "','" &
pMyURL & "')"
  ID=goToNetPage (myJSfunction)

-- in the html page head---------------
var libsWin
function PopupWin(image,text,URL) {

if (libsWin) {
libsWin.close();
 }
var content="<html><head>...<img src='" + image + "'><br>" + text + "<br>" +
"<a href='http://" + URL +" '></body></html>"


    libsWin = window.open("","","width=500,height=400,scrollbars=yes
history=no" );
    if (content) {
    libsWin.document.write(content);
    libsWin.focus();
        }
}
-------end code------------------


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to