Forums
This topic is locked
Open Browser Window and Go to Detail Page SB
Posted 16 Apr 2002 12:01:24
1
has voted
16 Apr 2002 12:01:24 Roman Uzdowski posted:
Well, such a trivial question. Stupid me. How can I display Detail Page in an _blank Browser Window with specific size f.ex. 240x400? Display Page according URL parameter (filter Id) from Master Page...JavaScript I think - but how... Second matter - is it possible to use Open Browser Window DW Extension and Go to Detail Page SB?
UDW4/PHAkt/PHP/MySQL
Replies
Replied 19 Apr 2002 17:47:38
19 Apr 2002 17:47:38 Eric Kaiser replied:
Yes, it is possible, but be prepared to go in and disect the code that was generated by UD. Every time I use this behavior with a dynamic link I get the popup window, but it also loads into the page it was clicked from. To get around this I go in an edit the code. Below is a sample of what I'm talking about. You can see this code in actin at: www.sunjournal.com/specialsections/section_detail.asp?PubID=28
Here's the code. Please note that I am using a recordset to identify the height and width of the popup window with a padding of 25 and 50 pixels. Just substitute your numbers in there. If you don't see all of the code let me know:
<PRE>
<A HREF="section_detail.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "AdvID=" & rsAdList.Fields.Item("AdvID".Value & "&PubID=" & rsAdlist.Fields.Item("PubID".Value %>" onClick="MM_openBrWindow('ad_full.asp?AdvID=<%=rsAdList.Fields.Item("AdvID".Value%> & PubID=<%=rsAdList.Fields.Item("PubID".Value %>','adfull','scrollbars=yes,resizable=yes,width=<%=(rsAdList.Fields.Item("Ad_W".Value) + 50 %>,height=<%=(rsAdList.Fields.Item("Ad_H".Value) + 25 %>')"><%=(rsAdList.Fields.Item("Adv_Name".Value)%></A>
</PRE>
Here's the code. Please note that I am using a recordset to identify the height and width of the popup window with a padding of 25 and 50 pixels. Just substitute your numbers in there. If you don't see all of the code let me know:
<PRE>
<A HREF="section_detail.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "AdvID=" & rsAdList.Fields.Item("AdvID".Value & "&PubID=" & rsAdlist.Fields.Item("PubID".Value %>" onClick="MM_openBrWindow('ad_full.asp?AdvID=<%=rsAdList.Fields.Item("AdvID".Value%> & PubID=<%=rsAdList.Fields.Item("PubID".Value %>','adfull','scrollbars=yes,resizable=yes,width=<%=(rsAdList.Fields.Item("Ad_W".Value) + 50 %>,height=<%=(rsAdList.Fields.Item("Ad_H".Value) + 25 %>')"><%=(rsAdList.Fields.Item("Adv_Name".Value)%></A>
</PRE>