Changing DocType
Dear All,
I have an application that is trying to insert a JDOM document into an Oracle DB.
Prior to do this, I need to change the DTD from
file:///V:/EURAC/Central_services/ICT_5/KNE/Projects/eldit/Prototype/MakeEldit1/WEB-INF/res/dtds/textNEW.dtd
to
/text.dtd
I wrote a simple function:
private int setDTDBeforeInsert(org.jdom.Document doc, File fileout) {
DocType docType;
docType = new DocType("/text.dtd");
try {
doc.setDocType(docType);
XMLOutputter outputter = new XMLOutputter();
OutputStream fout = new FileOutputStream(fileout);
outputter.output(doc, fout);
return 0;
} catch (IOException e) {
System.err.println(e);
return -1;
the problem is that the document already have an associated DocType so I receive an excpetion and there is no way to change it and to insert into DB.
Do ypu have any idea how to do it or any suggestion?
Stefano Bracco
It is my experience to avoid this situation by instead of changing the document type itself, changing the task to have a new document type with the desired settings.
If for some reason the earlier periods are re-consolidated, the new setting are applied as opposed to the old and this has caused problems for me in the past.
Similar Messages
-
Changed DOCTYPE Causes menu shift in IE
Hi,
To clean up my page I'm trying to add a correct DOCTYPE. My current site works but but done pre-Dreamweaver has a lot of validation errors. That site is http://www.nevilleboats.com
I've changed the DOCTYPE to 4.01 transitional.
The results can be seen in an alternate temporary page: http://nevilleboats.com/index2.htm
In FireFox the site appears to be pretty stable. When loaded into IE, however, the whole menu stack originally on the left side of the page (inside a table column) shifts to the center of the page. It actually locates beneath the slideshow.
The general layout of the page is a table layout with a bit of CSS. I appreciate a full CSS page might be a solution, but I just don't have the experience yet to pull that off.
Can more experienced eyes point me to a solution?
Thanks
chuckHere's code that validates EXCEPT for the following -
1. Flash embed/object markup
2. Missing alt attributes
3. The <marquee> tag
You can use this as a solid base....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="description" content="Charles Neville Associates - Chuck Neville has been designing deep water Motor Yachts, Trawlers, ">
<meta name="keywords" content="trawlers, trawler, trawler yacht, trawler for sale, long range trawler, longrange trawler, fast trawler, LRC, trawler plans, stock plans, trawler stock plans, mini trawler, compact trawler, steel trawler, aluminum trawler, trawler yacht, passagemaker trawler yacht, steel trawler plans, trawler boats, custom trawler, custom steel trawler, custom trawler, motor yachts, custom motor yacht, long range motor yacht, serious cruiser, motor boat, motor cruiser, power cruiser. passagemaker, voyaging under power ">
<title>Home - Charles Neville associates</title>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
</script>
<style type="text/css">
.p {
font-family:"Times New Roman", Times, serif
.flags { position: absolute;
top: 20px;
width: 280px;
left: 705px;
.menu { position: absolute;
margin-left: 7px;
top: 135px;
.table { position: relative;
top: 85px;
</style>
</head>
<body bgcolor="#000000" onLoad="MM_preloadImages('buttons/CLICK_HERE_1.gif','buttons/More About CNa_1.gif','buttons/News_1.gif','buttons/Services_1.gif','buttons/Links & Stuff_1.gif','buttons/Mini-Rants_1.gif','buttons/Design Package_1.gif','buttons/Dreams Coming True_1.gif','buttons/Other Thoughts_1.gif','buttons/Dream Boats_1.gif','buttons/Stock_Plans_1.gif','buttons/White Book_1.gif','buttons/Contact Chuck_1.gif')">
<table border="1" width="980" bgcolor="#9DABC4" cellspacing="0" cellpadding="0">
<tr>
<td height="85"><table width="100%" style="border-bottom: 6px solid #15299D" cellpadding="0" cellspacing="0">
<tr>
<td height="85" width="199" rowspan="2" bgcolor="#DEE7EF"><p align="center" style="margin-left: 10px"> <img border="0" src="graphics/logo2.gif" width="160" height="64"> </td>
<td height="23" width="777" style="border-left: 2px solid #C0C0C0; border-bottom: 2px solid #C0C0C0">
<div class="flags">
<a href="http://www.google.com/translate_c?langpair=en|zh-CN&u=http://www.nevilleboats.com/"><img src="graphics/flags/cn.gif" width="27" height="16" border="0" alt="Chinese"></a>
<a href="http://www.google.com/translate_c?langpair=en|fr&u=http://www.nevilleboats.com/"><img src="graphics/flags/fr.gif" width="27" height="16" border="0" alt="French"></a>
<a href="http://www.google.com/translate_c?langpair=en|de&u=http://www.nevilleboats.com/"><img src="graphics/flags/de.gif" width="30" height="18" border="0" alt="German"></a>
<a href="http://www.google.com/translate_c?langpair=en|it&u=http://www.nevilleboats.com/"><img src="graphics/flags/it.gif" width="27" height="16" border="0" alt="Italian"></a>
<a href="http://www.google.com/translate_c?langpair=en|ja&u=http://www.nevilleboats.com/"><img src="graphics/flags/ja.gif" width="27" height="16" border="0" alt="Japanese"></a>
<a href="http://www.google.com/translate_c?langpair=en|tr&u=http://www.nevilleboats.com/"><img src="graphics/flags/tr.gif" width="27" height="16" border="0" alt="Turkish"></a>
<a href="http://www.google.com/translate_c?langpair=en|ru&u=http://www.nevilleboats.com/"><img src="graphics/flags/ru.gif" width="27" height="16" border="0" alt="Russian"></a>
<a href="http://www.google.com/translate_c?langpair=en|es&u=http://www.nevilleboats.com/"><img src="graphics/flags/es.gif" width="30" height="18" border="0" alt="Spanish"></a></div></td>
</tr>
<tr>
<td height="22" width="777" bgcolor="#DEE7EF"><p><font size="5">Charles Neville associates </font> <font size="4"> - </font>223 Broadway, Centreville, Maryland, 21617 - USA</p></td>
</tr>
</table>
<tr>
<td>
<table style="margin-top:0;margin-bottom:0;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="199" valign="top">
<div class="menu" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="buttons/Home_static_0.gif" alt="" name="news_button" width="185" height="25" border="0"></td>
</tr>
<tr>
<td><a href="biography.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('more_about_button','','buttons/More About CNa_1.gif',1)"><img src="buttons/More About CNa_0.gif" alt="more_button" name="more_about_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="news.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','buttons/News_1.gif',1)"><img src="buttons/News_0.gif" alt="news" name="Image16" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="services.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('services_button','','buttons/Services_1.gif',1)"><img src="buttons/Services_0.gif" alt="services" name="services_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="links_&_stuff_associations.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links_button','','buttons/Links & Stuff_1.gif',1)"><img src="buttons/Links & Stuff_0.gif" alt="links_stoff" name="links_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href="mini-rant-mothership.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('mini_rant_button','','buttons/Mini-Rants_1.gif',1)"><img src="buttons/Mini-Rants_0.gif" alt="mini-rants" name="mini_rant_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="design_package_1.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('design_package_button','','buttons/Design Package_1.gif',1)"><img src="buttons/Design Package_0.gif" alt="design_package" name="design_package_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="dreams_coming_true.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('dreams_coming_true_button','','buttons/Dreams Coming True_1.gif',1)"><img src="buttons/Dreams Coming True_0.gif" alt="dreams_coming_true" name="dreams_coming_true_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="other_thoughts.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('other_thoughts_butrton','','buttons/Other Thoughts_1.gif',1)"><img src="buttons/Other Thoughts_0.gif" alt="other_thoughts" name="other_thoughts_butrton" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href="dream_boat.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('dream_boats','','buttons/Dream Boats_1.gif',1)"><img src="buttons/Dream Boats_0.gif" alt="dream_boats" name="dream_boats" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="stock_plans.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('stock_plan_button','','buttons/Stock_Plans_1.gif',1)"><img src="buttons/Stock_Plans_0.gif" alt="stock_plans" name="stock_plan_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="white_book.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('whitebook_button','','buttons/White Book_1.gif',1)"><img src="buttons/White Book_0.gif" alt="white_book" name="whitebook_button" width="185" height="25" border="0"></a></td>
</tr>
<tr>
<td><a href="contact_chuck.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','buttons/Contact Chuck_1.gif',1)"><img src="buttons/Contact Chuck_0.gif" alt="contact_chuck" name="Image19" width="185" height="25" border="0"></a></td>
</tr>
</table>
</div>
</td>
<td width="578" valign="top"><div align="center">
<div style="margin-top:0">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj2" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="480" height="360">
<param name="movie" value="homepage_flash.swf">
<param name="quality" value="high">
<embed src="http://www.nevilleboats.com/homepage_flash.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="480" height="360" quality="high">
</object>
<div>
<marquee
width="85%"
font-size=24px
font-weight="bold"
color:"red";
scrolldelay="120" style="font-size: 18pt; color: #CC0066; font-family: Times New Roman; font-weight: bold">
Please visit our new "Dream Boats" and Stock Plan sections!</marquee>
</div>
</div>
</div></td>
<td width="199" valign="top">
<div align="center">
<p style="margin-top: 35px; margin-bottom: 0px"><img src="graphics/specializing_in.gif" alt="" width="169" height="23" border="0"></p>
<hr width="90%">
<p style="margin-top: 5px; margin-bottom: 0" align="center"><b><font size="4">Yacht & Naval</font></b></p>
<p style="margin-top: 0; margin-bottom: 9px" align="center"> <b><font size="4">Architecture</font></b></p>
<p style="margin-top: 0; margin-bottom: 9px" align="center"> <b><font face="Times New Roman" size="4">Trawlers</font></b></p>
<p style="margin-top: 0; margin-bottom: 9px" align="center"> <b><font face="Times New Roman" size="4">MotorSailers</font></b></p>
<p style="margin-top: 0; margin-bottom: 9px" align="center"> <b><font face="Times New Roman" size="4">Motor Yachts</font></b></p>
<p style="margin-top: 0; margin-bottom: 9px" align="center"> <b><font face="Times New Roman" size="4">Commercial Craft</font></b></p>
<p style="margin-top: 0; margin-bottom: 9px" align="center"> <b><font face="Times New Roman" size="4">Motor Catamarans</font></b></p>
<p style="margin-top: 0; margin-bottom: 9px" align="center"> <b><font face="Times New Roman" size="4">Small Passenger Vessels</font></b></p>
<p style="margin-top: 0; margin-bottom: 15px" align="center"> <b><font face="Times New Roman" size="4">Your Project</font></b></p>
<hr width="90%">
</div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="18%" valign="top">
<div class="table">
<div align="center">
<table width="85%" border="2" cellspacing="0" cellpadding="5" bgcolor="#15299D">
<tr>
<td height="268"><p align="center" style="margin-top: 0; margin-bottom: 0"> <font color="#FF0000" size="5">New</font></p>
<p align="center" style="margin-top: 0; margin-bottom: -5px"> <font color="#FF0000" size="5">Feature</font></p>
<hr width="95%">
<p align="center" style="margin-top: 0; margin-bottom: 0"> <font size="4" color="#FFFFFF">Let Chuck visualize the boat of
your dreams.</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="center" style="margin-top: 0; margin-bottom: 0"> <font size="4" color="#FFFFFF">Within your budget</font></p>
<hr width="95%">
<p align="center" style="margin-top: 5px"><a href="dream_boat.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('999','','buttons/CLICK_HERE_1.gif',1)"><img src="buttons/CLICK_HERE_0.gif" alt="" name="Image20" width="120" height="35" border="0"></a></p></td>
</tr>
</table>
</div>
</div>
</td>
<td width="64%"><div align="center">
<p style="margin-top: 0px; margin-bottom: 0"><img src="graphics/welcome.gif" width="200" height="29"> </p>
<p style="margin-top: 0; margin-bottom: 0"><font size="4"><strong>Thank you
for visiting the</strong></font><strong><font size="5"> Charles Neville Associates
website</font></strong> </p>
<p style="margin-top: 10px; margin-bottom: 0" align="left">Hi I'm Chuck
Neville --- For over 30 years I have been designing rugged Trawler
and Motor Yachts that help owner's like you realize your dreams. I
have also been sculpting versatile motorsailers and finding solutions
for commercial motor catamarans that take you diving or exploring remote
destinations. Add to that body of work, propulsion systems for US Coast
Guard's own fleet of boats that protect you, and work with big ship
design firms that bring goods to your door. ...I've been busy. </p>
<p align="left">Within the design process I've learned a lot. One of the
most important things I've learned is good ideas don't just stem from
the designer. The best designs evolve through collaboration between the
designer and the client. Over the years I've worked with dozens of great
boat yards and hundreds of experienced owners. It is this collaborative
experience that I to bring to the table when developing a new project,
be it a 20 foot open boat or a 100 foot luxury yacht.</p>
<p align="left">Listening is the key to any successful design. My goal
is not to design a boat that is right for me, but one that meets or
exceeds the requirements of you, my client. Over the last many years
much of my focus has become moderate sized Motor or Trawler style
yachts: family cruisers between 50 and 100 foot in length. You will see
some here, and others shown in my <b><i>White Book</i></b> of recent
designs. The important thing to remember is that all these images are
merely starting points. </p>
<p align="left">Look through our website, page through our <b><i>White
Book </i></b>and enjoy. Above all know that if we can help you realize
your dream in any way, with a new boat or just by answering a question,</p>
<p align="left">Please feel free to give me a call. </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">Chuck</p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%B, %Y" startspan -->April, 2009<!--webbot bot="Timestamp" i-checksum="13541" endspan --></p>
</div></td>
<td style="width:18%" valign="top">
<div class="table">
<div align="center">
<table width="85%" border="2" cellspacing="0" cellpadding="5" bgcolor="#15299D">
<tr>
<td height="268"><p align="center" style="margin-top: 0; margin-bottom: 0"><font color="#FFFFFF" size="4">Also
Visit The </font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0"> <font color="red" size="6">Neville Trawler</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0"> <font color="#FFFFFF" size="4">Website</font></p>
<p align="center"><font color="#FFFFFF" size="4">For More Information about the Neville 47</font></p>
<p align="center"> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image18','','buttons/CLICK_HERE_1.gif',1)" href="http://www.nevilletrawlers.com/"><img src="buttons/CLICK_HERE_0.gif" alt="" name="Image18" width="120" height="35" border="0"></a></p></td>
</tr>
</table>
</div>
</div>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
</td>
</tr>
</table>
<p align="center" style="margin-top: 0; margin-bottom: 0"> </p></td>
</tr>
<tr>
<td><div style="border-top: 6px solid ">
<p align="center" style="margin-top: 10px; margin-bottom: 0"> <b> <font size="5"> © </font> <font size="4">
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="
%Y" startspan -->
2009<!--webbot bot="Timestamp" i-checksum="36089" endspan -->
, Charles Neville Associates </font> </b> </p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
</div>
<p style="margin-top: 0; margin-bottom: 0" align="center"> <b> <font size="4"> 223
Broadway </font> </b> </p>
<p style="margin-top: 0; margin-bottom: 0" align="center"> <b> <font size="4"> Centreville,
MD
21617
USA </font> </b> </p>
<p style="margin-top: 0; margin-bottom: 0" align="center"> <b> <font size="4"> Tel:
410
758-1891
Fax:
410
758-3724
<!-- Start of StatCounter Code -->
</font> </b> </p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project = 414691;
var sc_invisible = 1;
var sc_partition = 2;
var sc_security = "";
</script>
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js">
</script>
<noscript>
<a href="http://www.statcounter.com/" target="_blank"><img src="http://c3.statcounter.com/counter.php?sc_project=414691&java=0&security=&invisible=1" alt="site stats" border="0"></a>
</noscript>
<!-- End of StatCounter Code -->
</td>
</tr>
</table>
</body>
</html> -
We need to import a lot of old HTML files (originally produced in XML) into a new project. Our new files have the doctype:
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
This is fine for them but to fix various issues with formatting the old files we want to replace the above with this:
<!doctype HTML public "-//www.w3.org/TR/html4/loose.dtd">
Making this change and saving a topic fixes all the formatting issues but the doctype quickly reverts to the original one, certainly after saving and reopening the project. Is there a way to turn off use of the Frameset//EN doctype? It does not seem to be essential to use it.
Thanks,
Dean FentonWe need to import a lot of old HTML files (originally produced in XML) into a new project. Our new files have the doctype:
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
This is fine for them but to fix various issues with formatting the old files we want to replace the above with this:
<!doctype HTML public "-//www.w3.org/TR/html4/loose.dtd">
Making this change and saving a topic fixes all the formatting issues but the doctype quickly reverts to the original one, certainly after saving and reopening the project. Is there a way to turn off use of the Frameset//EN doctype? It does not seem to be essential to use it.
Thanks,
Dean Fenton -
Template changing DOCTYPE on associated pages
I simply do not get this. Why is dreamweaver changing the top portion of my pages after updating the template. Let me try to explain this better...
Template top of page looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<link rel="icon" href="../favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<META name="verify-v1" content="AfvIuRXzpXMo/nQM4FUu7Nsr38+3VooCoX60nvN3yvU=" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School District #22 International</title>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
Now after updating my template and saving.... it updates all the pages associate... and then changes the top portion to this:
<!-- InstanceBegin template="/Templates/templateI.dwt" codeOutsideHTMLIsLocked="false" --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<link rel="icon" href="../favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<META name="verify-v1" content="AfvIuRXzpXMo/nQM4FUu7Nsr38+3VooCoX60nvN3yvU=" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School District #22 International</title>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
So then when I try to enter a new banner image, or something that requires inserting.... into an edible region of the page... I get error messages saying it is not containing the DOCTYPE.
I went into each page with wordpad and changed it all back, to match the template (by hand!) Now I see it has switched the pages all back.
I appreciate the help, as I am stumped. Never happened before.Thank YOU Murray, I seem to be still getting something wrong.
I did find the missing <html> before I left work for the day. I have no idea how that disappeared!
I did as you said... save the template file as a "File As a Template"
Took the all the code from the top to the bottom of the </head> tag and copied and pasted over the other original template.
I am not sure that it actually worked. You see I am trying to use a banner on different pages on this website... Just purchased from Ajatix.
the banner is not working on the pages... will not allow me to insert banner within the page... locked by template. Ajatix said I must have edible region within the head of the template..... (when I try to "insert.... template object.... edible region" it bounces around and will not go into the head portion.
The code I copied/pasted from the new template to the original template is this? Sorry that I am confused over this...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="icon" href="../favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<META name="verify-v1" content="AfvIuRXzpXMo/nQM4FUu7Nsr38+3VooCoX60nvN3yvU=" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School District #22 International</title>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
</script>
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #000000;
li
padding-left: 2px;
.style11 {font-size: 12px}
.style12 {font-size: 9px}
body {
background-color: #013567;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
h1,h2,h3,h4,h5,h6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
h1 {
font-size: 14pt;
color: #000066;
a {
font-size: 10pt;
color: #336699;
a:visited {
color: #666666;
h2 {
font-size: 16pt;
color: #0000CC;
-->
</style>
<meta name="Keywords" content="esl, english second language, international student, foreign studies, foreign student, Vernon, British Columbia, Canada, custodianship declaration, education, elementary, high school,graduation, diploma, secondary school, okanagan valley, coldstream, " />
<meta name="Description" content="International, foreign students welcomed to School District #22, Vernon, (BC), British Columbia, Canada. ESL is available with high academic Education, as well various leisure activities of golf, skiing, sailing, hiking, soccer and hockey academies." />
<script type="text/JavaScript">
</script>
<link rel="stylesheet" href="../ajxmenu/ajxmenu_international.css" type="text/css">
<script src="../ajxmenu/ajxmenu_international.js" type="text/javascript"></script>
</head> -
Just a question to know if my thoughts are right...
I have made my website and at the top DW has put:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
I have notices that the alt-text in my site are not working (the way I would like), they are not displayed when you go over the image with the cursor. I know that the alt text will show up if the image fails to load for any reason but I would like them to show up also when you go over the image.
After a long search I found that if I change DOCTYPE to HTML 4.01, the alt-text are displayed in the browsers (IE). But unfortunately I can't change the DOCTYPE because of my SPRY-menu.
Is this correct?
And is it also correct that the only way to show the text of an image (with doctype XHTML), is to make a title-tag of the image (which DW doesn't facilitate)?
Katinka.function(){return A.apply(null,[this].concat($A(arguments)))}
I know that the alt text will show up if the image fails to load for any reason but I would like them to show up also when you go over the image.
That's not the role of alt text. It's only for alternative text in the absence of an image-not a popup tooltip.
It has worked as a tooltip in earlier versions of IE because they incorrectly displayed the alt attribute in the absence of the title attribute. It won't work in modern browsers and it's unrelated to the Doctype.
Use the title attribute instead.
<img alt="Picture" title="Picture"> -
DTD validation without a !DOCTYPE
I am doing some integration with a third-party. The project involves sending an XML request, receiving a response, parsing, and displaying the results in a browser. I have received DTDs from the third party, and must validate the request before the message is sent (posted) from my side. However, the third party requires that a <!DOCTYPE> declaration should not exist in the document. Can someone give me an example of how to validate an XML document with no <!DOCTYPE>? I am building the document object with JDOM. Also, any suggestions on a parser implementation?
Thanks,
BenThis is the model I am using: I have millions of docs I need to
validate, so I am reading one at a time in memory, I process
the string for some offline edit operatiosn then validate the
resulted xml string. I am creating the parser once in memory
and validating each document by changing the xml string its
supposed to parse. (all are being validated against same DTD)
Now as I said before the timing actually surprised me also.. and I
have no explenation either.. I am running on a Windows2000/jdk1.4
and xerces.. and sax parser for validation. And the results were:
With string manipulation to change doctype:
DOMValidation: 13Microsecs
SAXValidation: 10Microsecs
and using entity stuff it was 29Microsecs. As I said I am just a
messenger presenting the results, and I would like to find
out also whats happening here. -
WEB.XML gives me an error while deploying a Web Application in Weblogic 5.1
I have a Web.xml which I copied the one from their documentation and edited for my servlet specific data. When I try to deploy it I am getting the following error.
Wed Nov 15 17:10:37 EST 2000:<E> <HTTP> Error reading Web application 'C:/tomcat
/webapps/La/'
java.net.UnknownHostException: java.sun.com
Can you throw some light on this? I have included the first three lines from the WEB,XML file where weblogic is choking.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN'
'http://java.sun.com/j2ee/dtds/webapp_2_2.dtd'>
Thank You
Trisula P. Siripurapu
Hi Jacek,
Thank you for your suggestion. I changed the Web App version to 1.2 instead of 2.2. It worked. Thanks once again for the timely response. I really do appreciate it.
Trisula Pani Siripurapu.
Jacek Laskowski <[email protected]> wrote:
>"Trisula P. Siripurapu" wrote:
>>
>> I have a Web.xml which I copied the one from their documentation and edited for my servlet specific data. When I try to deploy it I am getting the following error.
>> Wed Nov 15 17:10:37 EST 2000:<E> <HTTP> Error reading Web application 'C:/tomcat
>> /webapps/La/'
>> java.net.UnknownHostException: java.sun.com
>
>I remember having the same problem before I added the latest service
>pack (SP 6). If you don't want to download it, just change DOCTYPE to
>
><!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
>1.2//EN' 'http://java.sun.com/j2ee/dtds/webapp_2_2.dtd'>
>
>and it should work. Notice the change of Web Application version - 1.2
>rather then 2.2. I'm (almost) sure, I saw one example - examples/webapp
>(?) - with this header. Take a look at the accompanying examples.
>
>When you apply SP6, things should work as they suppose to.
>
>> Trisula P. Siripurapu
>
>Jacek Laskowski
-
Run a ear application in websphere 5.1
HI;
I try to run a ear application in websphere 5.1 but I get this error ..
I apreciate your help,
thanks
[6/9/05 18:59:29:922 CDT] 3d77aebf EJBContainerI E WSVR0209E: Unable to prepare EJB jar Myapp.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl], enterprise bean com.ibm.etools.ejb.impl.SessionImpl(TestClassBean) (transactionType: Container, sessionType: Stateless)
java.lang.ClassNotFoundException: com.ge.cf.service.test.interfaces.EJSStatelessTestClassBeanHomeBean_58cbc0ba
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:351)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
at com.ibm.ejs.container.BeanMetaData.loadExistedClass(BeanMetaData.java:2573)
at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:888)
at com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContainerImpl.java:980)
at com.ibm.ws.runtime.component.EJBContainerImpl.createModuleMetaData(EJBContainerImpl.java:796)
at com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImpl.java:1517)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createFactoryMetaData(MetaDataMgrImpl.java:115)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:159)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:350)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)Hi Jacek,
Thank you for your suggestion. I changed the Web App version to 1.2 instead of 2.2. It worked. Thanks once again for the timely response. I really do appreciate it.
Trisula Pani Siripurapu.
Jacek Laskowski <[email protected]> wrote:
>"Trisula P. Siripurapu" wrote:
>>
>> I have a Web.xml which I copied the one from their documentation and edited for my servlet specific data. When I try to deploy it I am getting the following error.
>> Wed Nov 15 17:10:37 EST 2000:<E> <HTTP> Error reading Web application 'C:/tomcat
>> /webapps/La/'
>> java.net.UnknownHostException: java.sun.com
>
>I remember having the same problem before I added the latest service
>pack (SP 6). If you don't want to download it, just change DOCTYPE to
>
><!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
>1.2//EN' 'http://java.sun.com/j2ee/dtds/webapp_2_2.dtd'>
>
>and it should work. Notice the change of Web Application version - 1.2
>rather then 2.2. I'm (almost) sure, I saw one example - examples/webapp
>(?) - with this header. Take a look at the accompanying examples.
>
>When you apply SP6, things should work as they suppose to.
>
>> Trisula P. Siripurapu
>
>Jacek Laskowski
-
How to use price list in inventory management documents (without SO module)
Hi all
I want to setup sales prices for items and I am using inventory management module of jd edwards enterpriseone.
Is there any possibility in which I can use the sales price items functionality.
So after I enter the sales price for each items in specific conditions, is there any possibility for these prices to be automatically shown anytime I enter a inventory issue or any other document which has to do with the issuing of the items.
Please suggest
thank you and best regards
ErnestHello,
You can setup Item Sale price through the P4106 application in inventory management. But since your requirement is quite customised, Inventory Issue dont have such functionality to populate Item Sale Price when you are issuing items eventhough you create/change doctype. It will only be populate Item Cost and Extended cost.
Deepak P -
Same Jitter in Internet Explorer using according
Hi,
I have a page which uses a spry accordion. In Firefox it
works great. In Internet Explorer the animation is very jumpy. I
found some topics regarding this issue but I have tried changing
doctype, inserting the code in spryeffect.js, upgrading to 1.5,
removing the bottom borders, changing overflow to hidden, and
setting and unsetting the content height, but I have had no luck.
Does anyone one know of any other solution I might try, or
deffinate solution? Here is a like to the page:
http://sexyexoticjobs.com/talentprofile.php?recordID=2
Thanks,
ScottHi,
I have a page which uses a spry accordion. In Firefox it
works great. In Internet Explorer the animation is very jumpy. I
found some topics regarding this issue but I have tried changing
doctype, inserting the code in spryeffect.js, upgrading to 1.5,
removing the bottom borders, changing overflow to hidden, and
setting and unsetting the content height, but I have had no luck.
Does anyone one know of any other solution I might try, or
deffinate solution? Here is a like to the page:
http://sexyexoticjobs.com/talentprofile.php?recordID=2
Thanks,
Scott -
http://www.kowalskidesign.com/source/normalFlash.html
Hello,
I'm having problems resizing the expanded view. This is when you click on a thumb and the image enlarges with a description.
I've tried changing lines 204-205 (highlighted in bold in code below)
'// extends mask producing fully visible image' changing:-
width: (2 * MWIDTH), to width: 550 and the same with the height but i get mixed results.
If anyone could give me some pointers it would be very much appreciated.
The link is above. Here is the code:-
// Grid Expandable Gallery
// (C)RimV - www.mymedia-art.com - [email protected]
// FLASH LIB
import flash.geom.*;
import flash.display.BitmapData;
import flash.filters.DropShadowFilter;
// FUSE KIT
import com.mosesSupposes.fuse.*;
import com.mosesSupposes.fusefx.*;
import com.endologik.fusefx.*;
// DYNAMIC REGISTRATION
import com.darronschall.DynamicRegistration;
//______________________________________________ PARAMETERS
// Gallery characteristic
var strokeThickness:Number = 2;
var rows:Number = 4;
var columns:Number = 5;
var bWidth:Number = 700;
var bHeight:Number = 500;
var speed:Number = 0.5;
var layerAlpha:Number = 70;
// Roll over / roll out effec
var Effect:Array = ["None", "brightness", "photo flash", "grayscale"];
var effectID:Number = 2;
// data path
var styleSheet:String = "css/styles.css";
var xmlPath:String = "normalFlash.xml";
//______________________________________________ VARIABLES
// Gallery dimension
var SWIDTH:Number;
var SHEIGHT:Number;
var MWIDTH:Number;
var MHEIGHT:Number;
var nWidth:Number;
var nHeight:Number;
var TOTAL:Number;
// Movieclip dimension
var maskContainer:MovieClip = new MovieClip();
var layer:MovieClip = new MovieClip();
var current:MovieClip = new MovieClip();
var descriptionClip:MovieClip = new MovieClip();
var preloader:Array = new Array();
var maskArray:Array = new Array();
var image:Array = new Array();
var position:Array = new Array();
var captionClip:MovieClip = new MovieClip();
// misc
var xmlData:XML = new XML();
var link:Array = new Array();
var description:Array = new Array();
var caption:Array = new Array();
var count:Number = 0;
var firstLoaded:Boolean = true;
var mWidth:Number;
var mHeight:Number;
var dX, dY:Number;
//______________________________________________ MAIN
initGallery();
function initGallery():Void
// Initialize ZigoEngine
ZigoEngine.register(PennerEasing, FuseItem, FuseFMP);
FuseFX.register(ColorFX);
ZigoEngine.OUTPUT_LEVEL = 0;
// hide display clip
display._visible = false;
// Global reference
_global.base = this;
// Gallery dimension
SWIDTH = Stage.width;
SHEIGHT = Stage.height;
base = this;
// stage resize listener
Stage.scaleMode = "noScale";
Stage.align = "TL";
var stageResize:Object = new Object();
Stage.addListener(stageResize);
stageResize.onResize = onStageResize;
// start building gallery
buildGallery();
dX = -(Stage.width - bWidth) * .5;
dY = -(Stage.height - bHeight) * .5;
function onStageResize():Void
base._x = (Stage.width - bWidth) * .5 + dX;
base._y = (Stage.height - bHeight) * .5 + dY;
function buildGallery():Void
// Load XML
loadXML();
// Load StyleSheet
loadStyleSheet();
// Load XML
function loadXML():Void
xmlData.ignoreWhite = true;
xmlData.onLoad = loadData;
xmlData.load(xmlPath);
// Load image and save data
function loadData(loaded:Boolean):Void
if (loaded)
var data:Array = xmlData.firstChild.firstChild.childNodes;
TOTAL = data.length;
createMaskContainer();
for (var i:Number = 0; i < TOTAL; i++)
var dat:Array = data[i].childNodes;
caption[i] = dat[1].attributes.content;
description[i] = dat[2].firstChild.nodeValue;
link[i] = dat[3].attributes.src;
// Image data
image[i] = new MovieClip();
position[i] = new Object();
loadImage(dat[0].attributes.src, i);
// Load image
function loadImage(src:String, index:Number):Void
image[index] = this.createEmptyMovieClip("image" + index, index + 1000);
// create movie clip loader listener
var mylistener:Object = new Object();
// update progress
mylistener.onLoadProgress = function(image:MovieClip, byteLoaded:Number, byteTotal:Number):Void
var num:Number = Math.round(byteLoaded / byteTotal * 100);
_global.base.preloader[index].percent.text = num;
// Load completed initialize data
mylistener.onLoadInit = function(target:MovieClip):Void
// remove preloader
preloader[index].removeMovieClip();
//set up necessary component and calculate data
// Setting center registration
DynamicRegistration.initialize(target);
target.setRegistration(target._width / 2, target._height / 2);
var r:Number = Math.floor(index / columns);
var c:Number = index % columns;
var deltaX:Number = (SWIDTH - bWidth) / 2;
var detalY:Number = (SHEIGHT - bHeight) / 2;
cover[index]._x = target._x2 = position[index].x = (c + 1) * strokeThickness + c * mWidth + mWidth / 2 + deltaX;
cover[index]._y = target._y2 = position[index].y = (r + 1) * strokeThickness + r * mHeight + mHeight / 2 + detalY;
target.xmin = target._x2 - (target._width - mWidth) / 2;
target.xmax = target._x2 + (target._width - mWidth) / 2;
target.ymin = target._y2 - (target._height - mHeight) / 2;
target.ymax = target._y2 + (target._height - mHeight) / 2;
target.index = index;
target.xk = speed;
target.yk = speed;
target.release = false;
target.oX = target._x2;
target.oY = target._y2;
target.setMask(maskArray[index]);
maskArray[index].tWidth = (target._width) / (bWidth / MWIDTH);
maskArray[index].tHeight = (target._height) / (bHeight / MHEIGHT);
// Apply effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(target, ColorFX.BRIGHTNESS, -70, 0);
break;
case "grayscale": ZigoEngine.doTween(target, ColorFX.SATURATION, -100, 0);
break;
// Setup interactive
target.onRelease = function():Void
// unhide image + move to center
if (!this.release)
delete this.onEnterFrame;
this.release = true;
current = this;
var index:Number = this.index;
// extends mask producing fully visible image
ZigoEngine.doTween({ target:maskArray[index],
width: (2 * MWIDTH),
height: (2 * MHEIGHT),
ease:"easeInQuint",
time:1,
func:function():Void
// display description
descriptionClip._visible = true;
descriptionClip.swapDepths(current._parent.getNextHighestDepth());
descriptionClip.content.htmlText = description[current.index];
descriptionClip.content._width = current._width - 5;
descriptionClip.back._height = descriptionClip.content._height + 10;
descriptionClip.back._width = descriptionClip.content._width + 5;
descriptionClip._x = current._x;
descriptionClip._y = current._y + current._height - descriptionClip._height;
ZigoEngine.doTween({ target:descriptionClip,
alpha:100
// Disable effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, 0, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, 0, 2);
break;
// move to center
var centerX:Number = (SWIDTH - current._width) / 2;
var centerY:Number = (SHEIGHT - current._height) / 2;
ZigoEngine.doTween({ target:current,
x:centerX,
y:centerY,
ease:"easeOutQuint"
// display cover layer
var depth = this._parent.getNextHighestDepth();
layer.swapDepths(depth);
layer._visible = true;
ZigoEngine.doTween({ target:layer,
start_alpha:0,
alpha:layerAlpha
this.swapDepths(depth + 1);
// hide caption
ZigoEngine.doTween({ target:captionClip,
alpha:0,
func:function():Void
captionClip._visible = false;
else
// turn back to original position
ZigoEngine.doTween({ target:descriptionClip,
alpha:0,
func:function():Void
descriptionClip._visible = false;
ZigoEngine.doTween({ target:this,
_x2:this.oX,
_y2:this.oY,
func:function():Void
current.release = false;
ZigoEngine.doTween({ target:maskArray[this.index],
width: nWidth,
height: nHeight
ZigoEngine.doTween({ target:layer,
alpha:0,
func:function():Void
layer._visible = false;
// Enable effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, -70, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, -100, 2);
break;
// animate
target.onRollOver = function()
// animate image
if (!this.release)
this.onEnterFrame = function():Void
this._x2 += this.xk;
this._y2 += this.yk;
if (this._x2 >= this.xmax || this._x2 <= this.xmin) this.xk =- this.xk;
if (this._y2 >= this.ymax || this._y2 <= this.ymin) this.yk =- this.yk;
// effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, 50, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, 0, 2);
break;
case "photo flash": ZigoEngine.doTween(this, [ColorFX.BRIGHTNESS,ColorFX.CONTRAST],[100,100], 0);
ZigoEngine.doTween(this,[ColorFX.BRIGHTNESS,ColorFX.CONTRAST],[0,0], 2);
break;
// Show caption
captionClip.swapDepths(_global.base.getNextHighestDepth());
captionClip.captionText.text = caption[this.index];
captionClip._visible = true;
ZigoEngine.doTween({ target:captionClip,
x:_xmouse + 10,
y:_ymouse - 10,
start_alpha:0,
alpha:100
// disable
target.onRollOut = function():Void
delete this.onEnterFrame;
if (!this.release)
// effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, -70, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, -100, 2);
break;
// hide caption
ZigoEngine.doTween({ target:captionClip,
alpha:0,
func:function():Void
captionClip._visible = false;
// Fade in image
ZigoEngine.doTween({ target:target,
start_alpha:0,
alpha:100,
time:3
// Movie Clip Loader
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(mylistener);
loader.loadClip(src, image[index]);
function createMaskContainer():Void
// Mask container
maskContainer = this.createEmptyMovieClip("maskContainer", 100000);
// Cover layer
layer = this.attachMovie("layer", "layer", 200000);
layer._width = SWIDTH;
layer._height = SHEIGHT;
layer._x = SWIDTH / 2;
layer._y = SHEIGHT / 2;
layer._alpha = layerAlpha;
layer.useHandCursor = false;
layer.onRelease = function():Void { };
layer._visible = false;
// attach mask clip and place in proper position
var k:Number = 0;
for (var i:Number = 0; i < rows; i++)
for (var j:Number = 0; j < columns; j++)
maskArray[k] = new MovieClip();
maskArray[k] = maskContainer.attachMovie("mask", "mask" + k, k);
maskArray[k]._x = (j + 1) * strokeThickness + j * 50 + 25;
maskArray[k]._y = (i + 1) * strokeThickness + i * 50 + 25;
k++;
DynamicRegistration.initialize(maskContainer);
maskContainer.setRegistration(maskContainer._width / 2, maskContainer._height / 2);
maskContainer._x2 = SWIDTH / 2;
maskContainer._y2 = SHEIGHT / 2;
MWIDTH = maskContainer._width;
MHEIGHT = maskContainer._height;
maskContainer._visible = false;
var deltaX:Number = bWidth / MWIDTH;
var deltaY:Number = bHeight / MHEIGHT;
maskContainer._xscale2 = deltaX * 100;
maskContainer._yscale2 = deltaY * 100;
nWidth = 50 + strokeThickness * (deltaX - 1) / deltaX;
nHeight = 50 + strokeThickness * (deltaY - 1) / deltaY;
mWidth = nWidth * deltaX;
mHeight = nHeight * deltaY;
for (var i:Number = 0; i < TOTAL; i++)
maskArray[i]._width = nWidth;
maskArray[i]._height = nHeight;
// attach preloader
preloader[i] = this.attachMovie("preloader", "preloader" + i, i + 8000);
preloader[i]._x = (maskArray[i]._x / MWIDTH) * (maskContainer._width) + maskContainer._x;
preloader[i]._y = (maskArray[i]._y / MHEIGHT) * (maskContainer._height) + maskContainer._y;
// Attach caption
captionClip = this.attachMovie("caption", "captionClip", 99999);
captionClip._visible = false;
function stopMoving():Void
for (var i:Number = 0; i < TOTAL; i++) delete image[i].onEnterFrame;
function loadStyleSheet():Void
// Attach Description Clip
descriptionClip = this.attachMovie("description", "descriptionClip", 300000);
descriptionClip.content.autoSize = true;
descriptionClip._visible = false;
descriptionClip._alpha = 0;
var myStyle:TextField.StyleSheet = new TextField.StyleSheet;
myStyle.load(styleSheet);
myStyle.onLoad = function(loaded:Boolean):Void
if (loaded)
_global.base.descriptionClip.content.styleSheet = this;
target.onEnterFrame = function():Void
this._x2 += this.xk;
this._y2 += this.yk;
if (this._x2 >= this.xmax || this._x2 <= this.xmin) this.xk =- this.xk;
if (this._y2 >= this.ymax || this._y2 <= this.ymin) this.yk =- this.yk;Thanks, for your reply..
I've corrected it.. Its works as expected in Firefox and Chrome, problem with IE alone
My question is changing doctype declaration is alone enough for upgrading HTML 4 to 5?
Previously, i've used is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
now i changed to <!DOCTYPE html> -
Hi,
Image files like .png, .gif files were inconsistently not displaying in IE 8 and 9 not even getting red X. when i navigate to other screen it is displaying as expected. Am suppose to use HTML 5 with IE 8 and 9, even i tried HTML5shiv.js with conditional
comments, but of no use.
I've downgraded HTML 5 to 4, still this issue exist. Even tried Clearing browser caches, cookies,history etc..
Someone help me on this please..
Syntax background:url(../images/header/header.gif)Thanks, for your reply..
I've corrected it.. Its works as expected in Firefox and Chrome, problem with IE alone
My question is changing doctype declaration is alone enough for upgrading HTML 4 to 5?
Previously, i've used is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
now i changed to <!DOCTYPE html> -
Dreamweaver CS6 Rewrites My Code!!!
Sigh. I just upgraded to Dreamweaver CS6 Creative Cloud, hoping it would solve the code rewriting issues added in CS5.5.
No joy. Take a look at the following code fragment:
<input type="text" name="getEmailAddress()" size="40" required="1" validate="email" message="Please enter your email address." />
Thing is, this is NOT HTML. This is part of an XML definition of a form, embedded within a CFC. Whenever CS6 gets its grubby little paws on it, however it changes it to this:
<input type="text" name="getEmailAddress()" size="40" required validate="email" message="Please enter your email address." />
Note the required="1" attribute is now simply required. Which blows up the XML parser big time.
This, just when I was getting around to writing a post about how, after THREE versions (CS3, CS4, CS5), Adobe finally got around to fixing the code rewriting bug I originally posted back in March, 2008.
I've tried changing doctypes, turned off rewriting in preferences, and done pretty much eveything I could think of, AND DREAMWEAVER STILL REWRITES MY CODE! I was told in CS5.5 that Dreamweaver will perform these kinds of changes based on the presence of a doctype specification...
But why is doing it in a ****ing CFC?????? Am I supposed to add doctype's to my CFC's now?
Look, Adobe, I'm a professional. I know what I'm doing, and when I put text to a file, I expect it to remain exactly as written. I do NOT need you "improving" my code.
Especially when "improving" my code BREAKS MY CODE.
Please provide a "hands off" option, and HONOR it.
I need Dreamweaver because I need RDS access to some sites. If it were not for RDS access, I would drop this piece of grief and aggravation in a heartbeat.
I wonder how many years I'm going to have to wait to get THIS fixed...> I do NOT want it doing that.
Why? It's the right thing to do. Anyhow, PREFERENCES >
Code Rewriting,
might be what you are looking for.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"kavakava" <[email protected]> wrote in
message
news:f87hhh$rro$[email protected]..
> Hi,
>
> I have a number of affiliate links, and they all have
the "&" character in
> them. However, Dreamweaver keeps replacing them with
"&". I do NOT
> want it
> doing that.
>
>
> I am using Dreamweaver 8.0.
>
> Many thanks!
> -
Adobe Dreamweaver is rewriting code... again.
http://www.cfinternals.org/blog/2012/02/dreamweaver-cs55-rewrites-code-again.html
I just upgraded from Dreamweaver CS5 to CS5.5, as I needed to cross-grade to the Design Suite in order to get InDesign.
Everything was going swimmingly, until I ran across the following. Take a look at the following code fragment:
<input type="text" name="getEmailAddress()" size="40" required="1"validate="email" message="Please enter your email address." />
Thing is, this is NOT HTML. This is part of an XML definition of a form, embedded within a CFC. Whenever CS5.5 gets its grubby little paws on it, however it changes it to this:
<input type="text" name="getEmailAddress()" size="40" required validate="email" message="Please enter your email address." />
Note the required="1" attribute is now simply required. Which blows up the XML parser big time.
This, just when I was getting around to writing a post about how, after THREE versions (CS3, CS4, CS5), Adobe finally got around to fixing the code rewriting bug I originally posted back in March, 2008.
I've tried changing doctypes, turned off rewriting in preferences, and done pretty much eveything I could think of, AND DREAMWEAVER STILL REWRITES MY CODE!
Look, Adobe, I'm a professional. I know what I'm doing, and when I put text to a file, I expect it to remain exactly as written. I do NOT need you "improving" my code.
Especially when "improving" my code BREAKS MY CODE.
Please provide a "hands off" option, and HONOR it.
I wonder how many years I'm going to have to wait to get THIS fixed...I don't care if it's known or not. I want it FIXED. I want Dreamweaver to stop rewriting my code. The fact is that these kinds of behaviors have been "known" since CS3... and they have gone on for years... and they are ALL unacceptable.
And why is Dreamweaver performing these kinds of changes based on the presence of a doctype specification... in a CFC??????
One other thing. I saw your comments on this in another thread, and the one that got me was the one that said, "And this is a problem how?"
Like I said above, we are professionals. Dreamweaver is supposed to be a tool for professionals. We know what we're doing, and when we write code, we expect it to remain exactly as written, unless we specifically ask for it to be reformatted. We do NOT need Dreamweaver silently cleaning up or "improving" our code. Doing so is not a feaure. It is not a benefit.
Especially when it breaks it in the process.
You can pass THAT along too. -
Changing new page code for doctype
Hello,
is it possible to change the code created for a new page when choosing the doctype?
e.g. if I choose New > HTML > HTML5 I get:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Is there somewhere I get edit the default code that gets created?
Thanks
NickHello Murray,
sorry, i meant to say which version but forgot, I'm using the trial version of CS5.5 on Mac OS.
I was hoping to be able to change it to use my usual starting point which is:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
</html>
In CS4 (which I use at the moment) I start with a blank document and use a snippet to fill in the basic outline. I was hoping 5.5 had a way of changing the default outline (one of the things I dowsnloaded the trial to check out).
Thanks
Nick
Maybe you are looking for
-
Error while Importing SQL Table's Metadata
Hi I am creating an External defination of category "dbtab". when i try to import the table in 3rd step i get this error. "Error occurred while attempting to connect to database". I checked the JDBC channel, in the channel getting this error "Error p
-
The Reader Wi-Fi is not recognized by the computer or Reader software.
Solved! Go to Solution.
-
TCS tax Should be credit side and adding to the customer line item in debit billing
Dear Expert, As per the SDN Links, I Configured TCS in our client. If I put posting indicator 1 then the entry Customer A/C Dr. 980 Sales A/C Cr.1000 TCS A/C Dr. 20 If I put posting indicator 3 then the entry Customer A/C Dr.1000 Sa
-
Hyperion 11.1. 2.0 Install fails with "Some referenced jars do not exists"
Hi All, I am trying to install Hyperion 11.1.2.0 on my laptop. Though the requirements document says the supported OS is windows 2003 or 2008, I have read that people are able to get it working on other OS' as well. I have downloaded the below files:
-
Help with Adobe Premiere Elements 11 Editor - Won't work after Maverick upgrade
I bought Adobe Elements 11 in March of 2013. It was working fine until upgrading to Maverick. It will not open now. Adobe will not help without a serial number. Apple does not provide serial numbers when you buy directly from the App Store. Afte