Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:06

problem with license protection? conflict with printSpecial


Poster: Beon
Dated: Monday May 8 2006 - 12:11:13 BST

hello,

we added a little .js to provide an easy printout function on our clients new website. as far as i can see its used by many other websites and works like a charm. unfortunatly the -head- part is overwritten by milonics .js.

the -link rel- for the print.css does not appear in the source of the opened window but instead the milonics license protection does:

Code:
<head><style>.milonic{width:1px;visibility:hidden;position:absolute}</style></head>


if i delete the milonics .js the printSpecial works fine.

we are using Version 5.746 and this is the code for the printSpecial:

Code:
function printSpecial()
{
   //alert("JS gefunden");
   if (document.getElementById != null)
   {
      var html = '<HTML>\n<HEAD>\n';

      if (document.getElementsByTagName != null)
      {
         var headTags = document.getElementsByTagName("head");
         if (headTags.length > 0)
            html += headTags[0].innerHTML;
      }
      
      html += '\n<link rel=\"stylesheet\" type=\"text/css\" href=\"hilPRINT.css\">';
      
      html += '\n</HE' + 'AD>\n<BODY>\n';
      
      var printReadyElem = document.getElementById("printReady");
      
      if (printReadyElem != null)
      {
            html += printReadyElem.innerHTML;
      }
      else
      {
         alert("Could not find the printReady section in the HTML");
         return;
      }
         
      html += '\n</BO' + 'DY>\n</HT' + 'ML>';
      
      var printWin = window.open("","printSpecial");
      printWin.document.open();
      printWin.document.write(html);
      printWin.document.close();
      if (gAutoPrint)
         printWin.print();
   }
   else
   {
      alert("Sorry, the print ready feature is only available in modern browsers.");
   }
}


is there a workaround? if you need any further information please post here and ill be happy to provide it.

thanks in advance and please forgive any mistakes as english is not my native language ;-)

Beon


Poster: Beon
Dated: Friday May 12 2006 - 10:59:26 BST

moinsen,

BUMP!

ok... i upgraded from 5.146 to 5.147 and i already have a professional license... can i get some support NOW? ^^

really, im happy with milonic menu and even thought about the reselling package to spare me hassle with other js in upcoming projects for my clients and stick with one product instead.

please do not disappoint me. i dont want to get rid of any license protection - i just want to use milonic menu AND the printSpecial function.

thanks in advance!

Beon


Poster: Migru
Dated: Friday May 12 2006 - 11:30:50 BST

Hi

as this is a forum for/from users exchange of experiences and help/assistance, your request should be better forwarded via the Milonic support system (ticket), you find that here:

http://www.milonic.com/support/

For a "normal" user, time and effort for a solution of your problem will be too extensive, therefore this reply.

Michael


Poster: Beon
Dated: Friday May 12 2006 - 11:37:09 BST

Dear Michael,

thank you VERY much for your fast reply. to be honest... i was mistaken using this forum as i was expecting some of the milonic pros browse it and help mit. never would i have expected another (even if experienced) user to work on this problem for me. i guess i was just too dumb to find the ticketing system.

sorry, for wasting everybodies time and thanks again.

have a nice weekend

Beon


Poster: Migru
Dated: Friday May 12 2006 - 11:45:28 BST

Hi Beon

please note, that there are quite a big number of, I call them "normal" problems, where help can be provided very quick and with just some mouse clicks for everyone who needs it, and even in a certain more extensive way such help can be obtained by requesting it in this forum. (When I started, for example, using that menu system, I got this type of assistance too). But in other cases, it is as I said above, - and thanks for the nice weekend, same for you.


Quote:
some of the milonic pros browse it and help ...


...this of course is fact too, that "Andy/Milonic" browses this forum in order to assist, but not everyone posting here is holder of a license.....

Michael