More JavaScript

Author Message
Scott Spivey 11/02/2005 02:12 am
I want to download the following file:

javascript:infoWinPop2(`/common/jsp/stream_pdf.jsp?contentType=application/pdf&relativeDocPath=/share/pdf/products/prospectus/annual/105p.pdf`);

From the following page:

http://www.franklintempleton.com/retail/jsp_app/products/prospectus_view.jsp?familyID=1&name=Franklin

Is there anyway to do this? All I get are files that return `%pdf-` errors when I try to view them offline.
Oleg Chernavin 11/02/2005 08:47 am
Scott,

These links point to a redirector file that submits a form to get the PDF - please try to allow HTML Forms processing to follow these form-based links.

Best regards,
Oleg Chernavin
MP Staff
Scott Spivey 11/02/2005 09:54 pm
I have tried that but it is not making a difference. Here is what I see happening. This is a link that OEP downloaded:

www.franklintempleton.com\common\jsp\stream_pdf.jsp@contentType=application_2Fpdf&relativeDocPath=_2Fshare_2Fpdf_2Fproducts_2Fprospectus_2Fannual_2F112p.pdf

The link that I need downloaded is:

www.franklintempleton.com\common\jsp\stream_pdf.jsp?contentType=application%2Fpdf&relativeDocPath=%2Fshare%2Fpdf%2Fproducts%2Fprospectus%2Fannual%2F112p.pdf

Notice in the link that was downloaded into OEP the ? was changed to an @ and the % was changed to a _. I have tried every combination of settings I can think of but this is still happening. How do I fix it?
Oleg Chernavin 11/07/2005 09:06 am
Offline Explorer cannot save a file with a name that contains ? symbol - the filesystem doesn`t accept them at all in filenames. This is why some symbols have to be replaced.

Oleg.
Scott Spivey 11/08/2005 07:05 pm
So then does this mean that OEP will not work at all for any pdf files that I need to download that have a ? in the url?

Is there any way to work around this?
Oleg Chernavin 11/09/2005 04:28 am
No, the PDF files will work and Offline Explorer not only replaces symbols in downloaded filenames - it also corrects all links, so they point to the correct files on your disk. So, it should not give you any problem.

Oleg.
Scott Spivey 11/09/2005 08:46 am
Well that is the problem. The pdf files are not working. They are not even being downloaded. I have tried changing a number of settings to get them to work but they still don`t. I am going to copy my project and paste it hear for you to look at. Maybe you will see something that I can change to make this work. I have set the project to download everything on the page and it does not work. After the download is complete, when I click on one of the files to browse them, I get an error message stating that the file does not begin with %pdf.

[Object]
OEVersion=Pro 3.9.0.2124
Type=0
IID=7042
Caption=Franklin Templeton
URL=http://www.franklintempleton.com/retail/jsp_app/products/prospectus_view.jsp?familyID=1&name=Franklin
Lev=1
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
EnableForms=True
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwf
FTVideo.Exts=mpgavianimpegmovfliflcvivrmramrvasfasxwmvm1vm2vvob
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaape
FTArchive.Exts=ziparcgzzarjlhalayleirarcabtarpakacejarpdf
FTUDef.Exts=jscssssivbsdtdxslswfclass
FTText.B=ooxooo
FTImages.B=ooxooo
FTVideo.B=ooxooo
FTAudio.B=ooxooo
FTArchive.B=ooxooo
FTUDef.B=ooxooo
FTOther.B=ooxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,0,3,0
RProt=127
LastStart=48:250:227:131:43:225:226:64:
LastEnd=93:181:128:133:43:225:226:64:
S200=125
S304=137
SPar=149
SSav=125
SLast=200
SSiz=2749310
SMdf=8
LFiles=262
LSize=2750861
ImgDim=0,0,0,0
PrevURL=http://www.franklintempleton.com/retail/jsp_app/products/prospectus_view.jsp?familyID=1&name=Franklin
Oleg Chernavin 11/10/2005 08:41 am
Please increase the Project level to 2 - this should allow Offline Explorer to process the form with the link to PDF files.

Oleg.
Scott Spivey 11/10/2005 06:15 pm
I set the level limit to two and I am still having the exact same problem. After I run the project, the file names show up when I select edit, find content. But when I try to browse one of the PDF files I get the same error message that the file name does not begin with %pdf.
Oleg Chernavin 11/12/2005 10:55 am
Did you try to browse inside Offline Explorer Pro?

Oleg.
Scott Spivey 11/12/2005 09:01 pm
Yes I am browsing inside OEP.
Oleg Chernavin 11/14/2005 09:46 am
Sorry. I missed that the server reports different filenames for the PDF files and Offline Explorer creates simple HTML redirector files to point to them. To overcome this, please add the following line to the Project`s URLs field:

Add=SkipDisposition

Then redownload the Project.

Oleg.
Scott Spivey 11/14/2005 09:52 am
I have added Add=SkipDisposition and I am still having the exact same problem. I have copied and pasted the project here again for you to look at.

[Object]
OEVersion=Pro 4.0.0.2254
Type=0
IID=7042
Caption=Franklin Templeton
URL=http://www.franklintempleton.com/retail/jsp_app/products/prospectus_view.jsp?familyID=1&name=Franklinhttp://www.franklintempleton.com/retail/jsp_app/products/prospectus_view.jsp?familyID=2&name=Templetonhttp://www.franklintempleton.com/retail/jsp_app/products/prospectus_view.jsp?familyID=3&name=Mutual%20SeriesAdd=SkipDisposition
Lev=2
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
EnableForms=True
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwf
FTVideo.Exts=mpgavianimpegmovfliflcvivrmramrvasfasxwmvm1vm2vvob
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaape
FTArchive.Exts=ziparcgzzarjlhalayleirarcabtarpakacejarpdf
FTUDef.Exts=jscssssivbsdtdxslswfclass
FTText.B=ooxooo
FTImages.B=ooxooo
FTVideo.B=ooxooo
FTAudio.B=ooxooo
FTArchive.B=ooxooo
FTUDef.B=ooxooo
FTOther.B=ooxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,0,3,0
RSrvsBx=1
RFileBx=2
RFileIn=prospectus x
RProt=127
LastStart=129:247:143:2:205:225:226:64:
LastEnd=166:25:22:4:205:225:226:64:
S200=139
SPar=105
SSav=139
SLast=200
SSiz=1513246
SMdf=139
LFiles=139
LSize=1601132
ImgDim=0,0,0,0
PrevURL=http://www.franklintempleton.com/retail/jsp_app/products/prospectus_view.jsp?familyID=1&name=Franklin
Oleg Chernavin 11/14/2005 10:15 am
Please add the following to the URL Filters | Filename | Included keywords list:

gwsfileservingservlet.dyn

Oleg.
Scott Spivey 11/14/2005 10:22 am
Still having the exact same problem. When I try to browse the files after download, I get an error message saying that the file does not begin with %pdf.
Oleg Chernavin 11/14/2005 10:50 am
Can you please erase all previously downloaded files from the disk and download it again? I made a test download using your Project settings and it worked well.

Oleg.
Scott Spivey 11/14/2005 11:16 am
I have been doing that each time and still having the problem. I did try something different that works. I tried to open the files in teh download folder with Adobe instead of going through the OEP browser or through IE. I can open the files with Adobe directly, so there has to be something about the browser. Is there a setting that I can change to solve this problem?
Oleg Chernavin 11/14/2005 12:30 pm
I don`t know - the Internal Browser is simply an embedded MS IE window. Please let me know how PDF file names look like when you open them with Adobe?

Oleg.
Scott Spivey 11/14/2005 12:37 pm
GWSFileServingServlet.dyn@contentType=application_2Fpdf&relativeDocPath=_2Fshare_2Fpdf_2Fproducts_2Fprospectus_2Fannual_2F101p

This is a file name that is showing up when I open the file directly in Adobe.
Oleg Chernavin 11/14/2005 01:09 pm
It looks absolutely correct. Offline Explorer should pass the same file to Adobe. Another thing to try is to uncheck the Internal HTTP server in Options. Would this change the behavior?

Oleg.