Hi All,
Please help me…
I’m working on a web based project. My problem is that i have a frameset with two frames… In the first frame ,i have a form with an outline entry. when i click on this entry, it’ll open a pdf file in the second frame… It is working fine as long as the pdf file is available. But if the specified pdf file is not available ,it throws an Error 404:file not found error in the second frame. Instead of the default error , i have to display the user that the specified pdf file is not available . please contact the admin… Please help me… and your reference i have given the outline entry code below…please help me to catch the error and display the msg i want…
Outline EntryCode:
“http://dev.example.com/TaxStatement/abcd.pdf”
Thanks in advance…
John…
Subject: File Not found error
Why not check the existance of the pfd-file prior to opening it? You could use the LS function Dir for it.
Subject: RE: File Not found error
use the dir function and first check that given file is exist on your server directory or not .if no tthen print a message box
u can use javascript for that .
Subject: RE: File Not found error
Hi Rob…
Thanks for your reply… I tried checking whether the file is available or not using LS, but it is checking the local system’s directory… my pdf file is stored in the server’s HTML folder…how can i check the server’s dir using Lotus Notes?
Thanks
John
Subject: RE: File Not found error
This code will assing an external share (e.g. F$) on a given ip-address (e.g. 123.456.789.123) to a local drive (e.g. H:)
Sub setDriveMap()
Dim objNetwork As Variant
Dim drive As String
Dim ipaddress As String
Dim sharename As String
drive = "your driveletter"
ipaddress = "your IP-address"
sharename = "your share name"
If Right$(drive, 1) <> ":" Then
drive = drive + ":"
End If
If Left$(ipaddress, 2) <> "\\" Then
ipaddress = "\\" + ipaddress
End If
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive drive, ipaddress + "\" + sharename
End Sub