problem with license protection? conflict with printSpecial

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Beon
Beginner
Beginner
Posts: 4
Joined: Mon May 08, 2006 11:55 am

problem with license protection? conflict with printSpecial

Post by Beon »

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: Select all

<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: Select all

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
Beon
Beginner
Beginner
Posts: 4
Joined: Mon May 08, 2006 11:55 am

Post by Beon »

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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

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://milonic.com/support/

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

Michael
Beon
Beginner
Beginner
Posts: 4
Joined: Mon May 08, 2006 11:55 am

Post by Beon »

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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

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.

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
Post Reply