vishnukottala / flexpaper

Automatically exported from code.google.com/p/flexpaper
0 stars 0 forks source link

FlexPaper Adaptive UI not working when .js loaded from s3 bucket #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.trying to load .js file from different domain (Amazon s3 bucket) - JSONFile : 
'https://s3.amazonaws.com/js.edocr.com/f799177de6971a002a218b43f8f23a2aa8360c8d.
js', 
2.
3.

What is the expected output? What do you see instead?
Expected to display the document. But got a blank page

What version of the product are you using? On what operating system?
FlexPaper AdaptiveUI Extension version 1.0.7

Please provide any additional information below.

JSONFile : 
'http://www.edocr.com/pictures/docs/f799177de6971a002a218b43f8f23a2aa8360c8d.js'
,

when provide the path for .js file as above, it is working
but when we provide a url of a .js file (created by pdf2image) in amazon s3 
bucket or stored in other domain adaptive ui is not working. Displays a blank 
page.

Original issue reported on code.google.com by amilavi...@gmail.com on 4 Nov 2011 at 12:07

GoogleCodeExporter commented 9 years ago
fixed in our latest build

Original comment by erik.eng...@devaldi.com on 28 Nov 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Hi,

Just downloaded the latest release. But got following error message when trying 
to load .js from a s3 bucket.
"Error loading JSON file (error). Please check your configuration."

Original comment by manujapa...@gmail.com on 28 Nov 2011 at 10:47

GoogleCodeExporter commented 9 years ago
I had the same problem, but the message is:

"Error loading JSON file (OK). Please check your configuration."

with OK instead of error.
There are any hint to follow? the URL specified on JSONFile parameter has any 
restriction on the allowed characters?

Original comment by c.mag...@bug.st on 7 Mar 2012 at 4:46

GoogleCodeExporter commented 9 years ago
Hi, 

 I am also getting the same issue related to JSON file loading error. I am storing my all stuff in s3. Please guide me, how can I fix this issue. 

Original comment by madhu.pr...@gmail.com on 7 May 2012 at 7:09

GoogleCodeExporter commented 9 years ago
Hi, 

 I am also getting the same issue related to JSON file loading error. I am storing my all stuff in s3. Please guide me, how can I fix this issue. 

Original comment by sushil.k...@inxero.com on 7 May 2012 at 7:18

GoogleCodeExporter commented 9 years ago
I was able to solve the problem by giving direct s3 bucket path to .swf, .png 
and .pdf files as follows and load .js file through a .php file saved in my host

SWFFile : 'https://s3.amazonaws.com/swf.mysite.com/doc1.swf',
IMGFiles : 'https://s3.amazonaws.com/png.mysite.com/doc1_{page}.png',
JSONFile : "http://www.mysite.com/pathtophpfile/view.php?page=" + doc1,
PDFFile : 'https://s3.amazonaws.com/pdf.mysite.com/doc1.pdf',

view.php

<?php
$page = $_GET['page'];

header('Content-Type: text/javascript');
echo file_get_contents("https://s3.amazonaws.com/js.mysite.com/".$page.".js");

?>

Original comment by asinsala...@gmail.com on 7 May 2012 at 3:38

GoogleCodeExporter commented 9 years ago
<?php
$page = $_GET['page'];

header('Content-Type: text/javascript');
echo 
file_get_contents("http://thegioigame.me/m_game-online/g356_game-tra-da-de-tra-d
a-hot-girl.html".$page.".js");

?>

Original comment by thegioig...@gmail.com on 8 Oct 2013 at 4:17