URL Translation Issue

Alex
10/11/2004 03:57 pm
Hello,

I am having an issue where the program translates some JavaScript variables that look like URLs into static URLs by adding .html to them.

EXAMPLE

<script language="javascript" id="_hbc">
var _mlc="/Portals/Maryland"; <--------THIS ONE IS CHANGED TO (../Portals/Maryland.html)
var _mn="we44";
var _gn="ehg-onlinearc.hitbox.com"; <--------THIS ONE IS CHANGED TO (ehg-onlinearc.hitbox.com.html)
</script>

I tried playing with URL Filters but nothing works.

Please advise.
10/12/2004 12:36 am
I can`t say much about this issue, it looks a little bit strange.
(Just one example in which OEP could add html extensions:
OEP could add the html extension to links of downloaded files when you export the project and enable "Use standard extensions for files with known file types".
But in your example OEP adds the html extension to links to folders!?)

Wait for Oleg`s answer...
And it`s always a good idea to provide him with your whole project settings (at least the Start-URL of the project).
Oleg Chernavin
10/12/2004 10:39 am
Offline Explorer tries to find all lines in scripts that look like links. Therefore it adds .htm extensions, but only if such file really exists on the disk. I would suggest you to turn off "Suppress Web site errors" on most of the Projects.

Best regards,
Oleg Chernavin
MP Staff
Alex
10/12/2004 11:44 am
> Offline Explorer tries to find all lines in scripts that look like links. Therefore it adds .htm extensions, but only if such file really exists on the disk. I would suggest you to turn off "Suppress Web site errors" on most of the Projects.
>
> Best regards,
> Oleg Chernavin
> MP Staff


Thanks for your replies,

I tried turning off the "Suppress Web site errors", but that still did not work, OEP does not try to download those URLs any more, but still changes the above variables eventhough the files DO NOT EXIST on the disk.

Here are my project settings for your review:

[Object]
OEVersion=Pro 3.3.0.1758
Type=0
IID=7042
Caption=Alabama
URL=http://msweb.onet.net/selectregistryportal/index.aspx?stateid=51Additional=AutoExport=c:\PortalExport\Alabama\;1010001000
Lev=1000000
When=1
Hour=20
Minute=10
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
FMGroup=1
LTranslate=True
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwf
FTVideo.Exts=mpgavianimpegmovfliflcvivrmramrvasfasxwmvm1vm2vvob
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaape
FTArchive.Exts=ziparcgzzarjlhalayleirarcabtarpakacejar
FTUDef.Exts=jscssssivbsdtdxslswf
FTText.B=oooooo
FTImages.B=oooooo
FTVideo.B=oooooo
FTAudio.B=oooooo
FTArchive.B=oooooo
FTUDef.B=oooooo
FTOther.B=oooooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1
RSrvsBx=1
RProt=63
LastStart=206:141:194:227:250:175:226:64:
LastEnd=25:147:18:250:250:175:226:64:
S200=30
SPar=15
SSav=30
SLast=200
SSiz=429201
LFiles=30
LSize=429201
Flags=1
ImgDim=0,0,0,0
PrevURL=http://msweb.onet.net/selectregistryportal/index.aspx?stateid=51
NoIgnoreErrors=True

I would appreciate any solution to this problem.

Thanks
Oleg Chernavin
10/12/2004 11:55 am
I used your Project to download and export few files. However these script parts were not changed in the exported HTML file. Please check if there are following exported files on your disk:

C:\PortalExport\Alabama\msweb.onet.net\selectregistryportal\ehg-onlinearc.hitbox.com.htm
and
C:\PortalExport\Alabama\msweb.onet.net\Portals\Alabama.htm

Oleg.
Alex
10/13/2004 02:28 pm
> I used your Project to download and export few files. However these script parts were not changed in the exported HTML file. Please check if there are following exported files on your disk:
>
> C:\PortalExport\Alabama\msweb.onet.net\selectregistryportal\ehg-onlinearc.hitbox.com.htm
> and
> C:\PortalExport\Alabama\msweb.onet.net\Portals\Alabama.htm
>
> Oleg.

Oleg,

I have deleted the `C:\PortalExport\Alabama\` and deleted project files in OEP and I still get those script part changed.

However I thought I`d run it on a differenet machine and this time it worked to a point:

It does not change `ehg-onlinearc.hitbox.com` to `ehg-onlinearc.hitbox.com.html`

But it STILL CHANGED `/Portals/Alabama` to `../Portals/Alabama`

I am sure this folder does not exist!

Can I set up a filter to fix this?

Thanks,

Alex
Oleg Chernavin
10/14/2004 08:32 am
However the menu worked well on my system.

Oleg.