How to open attachment in same window through lotus script

hi i will try to open attachment file through lotus script code is–>>

Dim s As New NotesSession

Dim db As NotesDatabase

Dim v As NotesView 

Dim entry As NotesViewEntry 

Set db=s.CurrentDatabase 

Set v=db.GetView("imageEntry")

Set entry=v.GetEntryByKey("1")

If Not entry Is Nothing Then 

	value=entry.ColumnValues(1)

	v1=Strleftback(value,"'ta")

	v2=Strrightback(v1,"'/")

	v3="http://144.0.24.211/"+v2

	Print | <script>window.open("|+v3+|")</script>|

	Print |<META HTTP-EQUIV="Refresh" CONTENT="1; URL=JavaScript:history.go(-1)">|

Else

	Print | <script>alert("|+ "File doesnot exist" +|")</script>|

End If

But this code is working fine and attachment will be open in another window but i want to open this attachment in same window.This window.open code will be open attachment in another window how to open this in same window

pls guide me

amar

Subject: how to open attachment in same window through lotus script

window.open is suppose to open another window.

so replace

window.open(“your URL”)

with

location.href = “your URL”

Ashish

Subject: how to open attachment in same window through lotus script

Dim db As NotesDatabaseDim v As NotesView

Dim entry As NotesViewEntry

Set db=s.CurrentDatabase

Set v=db.GetView(“imageEntry”)

Set entry=v.GetEntryByKey(“1”)

If Not entry Is Nothing Then

value=entry.ColumnValues(1)

v1=Strleftback(value,“'ta”)

v2=Strrightback(v1,“'/”)

v3=“http://144.0.24.211/”+v2

Print {

  <script>location.href="}&v3&{";

  </script>}

Use this and let me know

RIshi

Subject: how to open attachment in same window through lotus script

Hi Amar, How are u.Can U send ur Req Clearly.

my id is :- pawan.kumar@v2solutions.com

PAwan