Hi,all I want to display a new sub windows when click the following hyper link: <a href="#" onClick="window.open('<dtml-var absolute_url>/viewInfo>','','scrollbars=yes,width=640,height=430')"><dtml-var jobtitle></a> But you know that <dtml-var absolute_url> is like http://www.mydomain.com/object... ,And it is not a physical web page. How can I realize this? Give me some advice. Thanks in advance. "WorldSecure Server <ogilvy.com>" made the following annotations on 12/11/99 03:00:07 ------------------------------------------------------------------------------ Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of the Ogilvy Group shall be understood as neither given nor endorsed by it. ==============================================================================
Victor.Zhai@ogilvy.com wrote:
Hi,all I want to display a new sub windows when click the following hyper link:
<a href="#" onClick="window.open('<dtml-var absolute_url>/viewInfo>','','scrollbars=yes,width=640,height=430')"><dtml-var jobtitle></a>
Minor note, with the new syntax, the following would be better: <a href="#" onClick="window.open('&dtml-absolute_url;/viewInfo>','','scrollbars=yes,width=640,height=430')"> <dtml-var jobtitle></a> Or, with 2.1, you could even use: <a href="#" onClick="window.open('&dtml.url-viewInfo;','','scrollbars=yes,width=640,height=430')"> <dtml-var jobtitle></a> This version inserts the absolute URL (because of the '.url' in the dtml entity reference) of viewInfo. This works even if called from a sub-folder of the folder containing viewInfo.
But you know that <dtml-var absolute_url> is like http://www.mydomain.com/object... , And it is not a physical web page.
What difference does this make. It *is* a web page that is as physical as any other. Javascript can't tell that it isn't a simple file.
How can I realize this? Give me some advice.
Doesn't the above code work? It should. Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (888) 344-4332 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (2)
-
Jim Fulton -
Victor.Zhai@ogilvy.com