LPARAMETERS pdisp, url, flags, targetframename, postdata, headers, cancel > >thisform.oBrowser2.Navigate( url, flags ) > >cancel = ! thisform.MaxButton && will cause the second and subsequent link clicks to open in the other browser only >thisform.MaxButton = .f. >>
>>*oBrowser1.BeforeNavigate2 >> With ThisForm.oBrowser2 >> .Navigate2('file://'+sys(5)+curdir()+this.oBrowser2) >> .refresh() >> Endwith >> >>>>
*obrowser1.beforenavigate2 This.HTMLFile2 = sys(2015)+'.htm' Set textmerge on Set textmerge to (this.HTMLFile2) noshow * Initialize lcHTML \<HTML><BODY><TABLE border=1 width=50> \<TR> \<TD><A href="<<trans(recno())>>"><img border="0" src="<<trim(chrtran(ImagePath,'\','/'))>>" width=85 height=100></A></TD> \</TR> \</TABLE></BODY></HTML> Set textmerge to Set textmerge off lcHTML2=FileToStr(this.HTMLFile2) thisform.oBrowser2.Navigate( 'file://'+sys(5)+curdir()+this.HTMLFile2, flags )I know this should work because I am basically doing the same in my form1.init to make picture come up on obrowser1 as follows:
LOCAL lk WITH thisform *by cetin bozin Local lnImages, lnPerrow, lnCurrent lnImages = adir(arrImages,'myimages\*.jpg') *You'd use a table let's simulate it Create cursor myImages (ImagePath c(50),FirstName c(12), LastName c(12)) For ix=1 to lnImages Insert into myImages values ; (CURDIR()+'myimages\'+arrImages[ix,1],'FirstName'+trans(ix),'LastName'+trans(ix)) Endfor lnPerRow = 5 && How many would we show on a line lnCurrent = 0 && Do not use recno() thinking it might be ordered on an index This.HTMLFile = sys(2015)+'.htm' Set textmerge on Set textmerge to (this.HTMLFile) noshow * Initialize lcHTML \<HTML><BODY><TABLE border=1 width=100> Select myImages Scan lnCurrent = lnCurrent+1 If (lnCurrent-1)%lnPerRow=0 If lnCurrent>1 \</TR> Endif \<TR> ENDIF \<TD><A href="<<trans(recno())>>"><img border="0" src="<<trim(chrtran(ImagePath,'\','/'))>>" width=85 height=100></A></TD> Endscan \</TR> \</TABLE></BODY></HTML> Set textmerge to Set textmerge off lcHTML=FileToStr(this.HTMLFile) With ThisForm.obrowser1 .Navigate2('file://'+sys(5)+curdir()+this.HTMLFile) Do while .ReadyState # 4 && Wait for ready state Enddo ENDWITH ENDWITHWhen They click on picture in obrowser1, I want that picture to show up in obrowser2 displaying a larger picture. Thanks for the input.