1 Attachment(s)
5.0.1. Issue when Publishing with an embedded Javascript
My .web's produced in 5.0.0 which have the PopUp scripts to Lock the PopUp and to Close the PopUps don't seem to be able to PUBLISH workable HTML. I get errors when I click on my buttons to close the popup.
In the attached, I believe I correctly insert the code from here:
http://www.talkgraphics.com/showthre...t=36782&page=2
into the Tracker input box.
=================================
Also, is there a way to add a remark in Javascript, like a revision level of the script, XWD version it was tested for, or a release date?
JC
Re: 5.0.1. Issue when Publishing with an embedded Javascript
Hi,
did you get 501 update for the script from the same url you provided? Is it still not working with the new script?
I will restrain myself from the update until I see this working...
Re: 5.0.1. Issue when Publishing with an embedded Javascript
Thank you John (Covoxer) for the script update, compatible with 5.0.1, released 18 Mar 2009.
<script type="text/javascript">
function my_clk(e){xr_xpul=0;xr_pul=0;if(my_oldclk){my_oldc lk(e)};};
var my_oldclk=document.onmouseup;
document.onmouseup=my_clk;
function my_close(my_name){var o=document.getElementById(my_name).parentNode; if(o.id=='')o=o.parentNode;xr_v0(o);};
</script>
Re: 5.0.1. Issue when Publishing with an embedded Javascript
For anyone needing to place a comment in a javascript.
There are two types of comment.
1 - a single line comment. Two forward slash characters start a single line comment. // this is a single line comment
2 - a multiple line comment. A forward slash + asterisk begins a multiple line comment and an asterisk + forward slash end the comment.
/* this is
a multiple
line
comment */
/*
this is
also
a multiple line
comment
*/
Anyone familiar with C/C++ syntax (Java, C#, Javascript, etc.) has seen these types of comments before.