Topic: eval(function(p,a,c,k,e,r) in page content

Hello,
since a couple of days I have problems to show the simple viewer shows in current browsers like ie9, firefox and chrome.
This problem occurs with several providers on Win and Linux servers.
The problem is, that the page code contents the compressed code of the simpleviewer.js like this:

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><title>my page title</title> </head><body><script type="text/javascript"  style="display:none">/*
 * SimpleViewer-Pro v2.2.0.10261826
 * http://simpleviewer.net/simpleviewer/pro
 *
 * © 2011 SimpleViewer Inc. All rights reserved.
 *
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function()...

This occurs only if the page is provided by a webserver. During local testing there is no problem.

The only possibility to get the page right from the webserver ist to use the "compatibility mode" of the IE9. In this mode the page is loaded right:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>my page title</title>
</head>

<body>

    <!--START SIMPLEVIEWER EMBED -->
    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
    simpleviewer.ready(function () {
        simpleviewer.load('sv-container', '830px', '590px', 'transparent', true, null, null, null, false);
    });
    </script>
    <div id="sv-container"></div>
    <!--END SIMPLEVIEWER EMBED -->

</body>
</html>

This problem exists not only at my computer but on others too.
Here is a link for you to check it out: http://www.chemnitzer-fruehstarter.de/ … alerie.htm

I hope, anyone can help!?

Regards
micha

Re: eval(function(p,a,c,k,e,r) in page content

The gallery whose link you provided displays OK in Firefox 8.0.1, IE9, Safari 5.1.1 and Chrome 16 on my PC and the JavaScript code does not show up on the page. Try clearing your browser's cache before reloading the gallery.
Additionally, the code you posted shows part of the SimpleViewer-Pro v2.2.0 JavaScript code but the gallery whose link you posted uses SimpleViewer-Pro v2.1.3 so it looks like the link does not relate to the code you posted.

Steven Speirs
SimpleViewer Support Team.

Re: eval(function(p,a,c,k,e,r) in page content

The clean up of the browsers cache has done a lot of times during the last days I'm searching for a solution, after any phase of try and error.
Yes, I've updated yesterday to version 2.2.0 - hopefully to solve the problem with a new version.

Request Headers Fiddler shows:

IE9, standard mode (with error, javascript in content):

 GET http://www.edelstahlschmiede.com/images/10_kunstobjekte/galerie.htm HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: de
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: www.edelstahlschmiede.com

IE9, compatibility mode (without error):

GET http://www.edelstahlschmiede.com/images/10_kunstobjekte/galerie.htm HTTP/1.1
Accept: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-silverlight, application/x-shockwave-flash, application/vnd.ms-xpsdocument, */*
Accept-Language: de
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; Tablet PC 2.0; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: www.edelstahlschmiede.com
Pragma: no-cache

Firefox 8.0.1 (with error, javascript in content):

GET http://www.edelstahlschmiede.com/images/10_kunstobjekte/galerie.htm HTTP/1.1
Host: www.edelstahlschmiede.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: http://www.edelstahlschmiede.com/

I've updated the Java Runtime yesterday. Updated Flash- and SWF-Plugins today.

Your samples at http://www.simpleviewer.net/simpleviewe … es/modern/  generates the same problem. These samples are usable in compatibility mode in IE9 only.

Just tested:
WinXP Virtual Machine, IE8: Same errors like described above.
Win7Starter Netbook, IE9: Same errors like described above.
WinXP Notebook, IE8: Same errors like described above.

But: my colleague with Win7/IE9 - Notebook has no problems.
Here is his request header:

 GET http://www.edelstahlschmiede.com/images/05_balkone/galerie.htm HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: de-DE
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: www.edelstahlschmiede.com
Pragma: no-cache

The difference is: He sends a Pragma: no-cache, my browsers not but only in compatibility mode.
May this be a approach?

Re: eval(function(p,a,c,k,e,r) in page content

PS:
The samples of Tilt Viewer, Postcard Viewer ... from your website works fine.
But not the Simpleviewer...

Re: eval(function(p,a,c,k,e,r) in page content

But not the Simpleviewer...

What do you see on-screen when you visit this sample SimpleViewer gallery (in a browser other than IE9 in Compatibility Mode)?
http://simpleviewer.net/simpleviewer/examples/modern/

Steven Speirs
SimpleViewer Support Team.

Re: eval(function(p,a,c,k,e,r) in page content

As fare as I know there are no other browsers than IE8 or IE9 which would have Compatibility Modes!?

In FireFox I see nothing because of the code in the content.

Re: eval(function(p,a,c,k,e,r) in page content

The demo gallery displays OK in all browsers on my PC.
As certain as I can be, there is no problem with the web server hosting the files nor with the gallery files themselves.
The problem seems to lie somewhere on your own system.
Make sure you have JavaScript enabled in your Firefox browser and temporarily disable all add-ons and extensions (which might be interfering with the rendering of the web site).

Steven Speirs
SimpleViewer Support Team.

Re: eval(function(p,a,c,k,e,r) in page content

Done, no success.

It is clear, that the problem is on my computers, but this problem could get other users too.
So it should be interesting to solve it.

Another hint. This HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Weihnachtsbasteln am 12. Dezember 2011</title>
</head>

<body>

    <!--START SIMPLEVIEWER EMBED -->
    <script type="text/javascript" src="jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
    simpleviewer.ready(function () {
        simpleviewer.load('sv-container', '830px', '590px', 'transparent', true, null, null, null, false);
    });
    </script>
    <div id="sv-container"></div>
    <!--END SIMPLEVIEWER EMBED -->

</body>
</html>

delivers this content:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Weihnachtsbasteln am 12. Dezember 2011</title> 
</head>
<body>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script> 
<script type="text/javascript"  style="display:none">eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?Stri ...

You see, only the simplevierer.js will be inserted in the page content, not a jquery-1.7.1.min.js  or other js.  What is in your simplevierer.js to let the browser put it in the source code???




To put all scripts into the page header like follows delivers not succsess too:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Weihnachtsbasteln am 12. Dezember 2011</title>
    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
    simpleviewer.ready(function () {
        simpleviewer.load('sv-container', '830px', '590px', 'transparent', true, null, null, null, false);
    });
    </script>
    </head>

<body>

    <!--START SIMPLEVIEWER EMBED -->

    <div id="sv-container"></div>
    <!--END SIMPLEVIEWER EMBED -->

</body>
</html>

Firewalls and V-scanners have no influence, also tested.

I'm sorry and out of ideas.

Re: eval(function(p,a,c,k,e,r) in page content

I'm sorry and out of ideas.

Me, too. Perhaps someone else reading this thread can help further.

Steven Speirs
SimpleViewer Support Team.

Re: eval(function(p,a,c,k,e,r) in page content

Would there be an non packed version of the simpleviewer.js available?
If these will be included it would be no error?

Re: eval(function(p,a,c,k,e,r) in page content

Would there be an non packed version of the simpleviewer.js available?

No. The version of 'simpleviewer.js' supplied in the 'svcore' folder is the only version available.

If these will be included it would be no error?

Unfortunately, there is no way to tell without actually trying and it is not possible to do so as there is no unpacked version of 'simpleviewer.js' available.

Steven Speirs
SimpleViewer Support Team.

Re: eval(function(p,a,c,k,e,r) in page content

The solution of the discussed problem:

Internet providers, in this case the Deutsche Telekom, are using compressing algorithms to compress data traffic in wireless connections like GPRS, EPRS, UMTS and LTE. These compressing algorithms are not used for wired connections like DSL.
The compressing algorithms can cause errors in Java scripts used within the transmitted webpages.
Exactly this the cause for my problems because I'm connected by LTE.

There are some possibilities for workarounds:
- Switch off the data compression at the Website of the provider if possible. For Telekom: speed.telekom.de  ( if this site is accessible and working...)
- The compression is browser-specific. Pages are compressed (by Telekom) for all up to date browsers beside: Opera. Also the newest Opera shows all pages properly. Further usable browsers are the older IE6, IE7 (not tested) an the IE8 and IE9 both in compatibility mode (tested).

The Deutsche Telekom is informed and like they write - are working on it...

Thank you for the patience, it was really no problem of the SimpleViewer.

Re: eval(function(p,a,c,k,e,r) in page content

Thank you for sharing your findings.

Steven Speirs
SimpleViewer Support Team.