Forums
This topic is locked
onClick Window Not Opening
Posted 02 Mar 2006 19:56:37
1
has voted
02 Mar 2006 19:56:37 Greg Kresslein posted:
In the following snippet of code, I can not get my openBrWindow command to work. Does anyone see anything that jumps out at them that is obviously wrong?<% if strImage2 > "" then response.write"<a href=""#""><img src=""/properties/images/" & Thumbnail("_small",(rsDetail.Fields.Item("photo2"


Thanks.
Replies
Replied 09 Mar 2006 17:00:50
09 Mar 2006 17:00:50 Tom Theys replied:
You need to place your onclick between the <a href> tag
Something like this:
<% if strImage2 > "" then response.write"<a href=""#"" onClick=""MM_openBrWindow('/properties/window2.asp?propertyid=(rsDetail.Fields.Item(""propertyid""
.Value)','window2','scrollbars=yes,resizable=yes,width=510,height=420')""><img src=""/properties/images/" & Thumbnail("_small",(rsDetail.Fields.Item("photo2"
.Value)) & """ alt=""Photo 3"" border=""0""></a>" %>
Something like this:
<% if strImage2 > "" then response.write"<a href=""#"" onClick=""MM_openBrWindow('/properties/window2.asp?propertyid=(rsDetail.Fields.Item(""propertyid""

