[BNM] Javascript question
Ali
ali at nubz.com
Thu Jan 22 11:32:47 GMT 2009
could it be the brackets around the window.parent.location.href
Ali
-----Original Message-----
From: bnmlist-bounces at brightonnewmedia.org
[mailto:bnmlist-bounces at brightonnewmedia.org] On Behalf Of
AndrewGill73 at gmail.com
Sent: 22 January 2009 11:20
To: Brighton New Media
Subject: [BNM] Javascript question
Hi,
I was wondering if any Javascript people could solve this problem below?
The link below sits in an iframe. When the link is clicked the
javascript opens up a pop up window and sends some variables to
examplescript.php.
The problem is that the first two variables are sent ok... But the
third variable is ignored. Somehow any text after
'window.parent.location.href' is ignored... Any ideas how to fix this?
<a title="Customer Services" class="center_text" href=""
onclick="window.open('https://example.com/examplescript.php/?user_chat_badge
=1&user_http_referer='+(window.parent.location.href)+'&user_http_referer_tit
le='+window.parent.document.title+'','new_chat_popup1','toolbar=0,resizable=
0,menubar=0,scrollbars=0,width=600,height=500');
return false;">Click here to chat live with Customer Services</a>
Any pointers much appreciated!
MANY THANKS.
Andy Gill
--
BNM Subscribe/Unsubscribe:
http://www.brightonnewmedia.org/options/bnmlist
BNM powered by Wessex Networks:
http://www.wessexnetworks.com
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.10/1904 - Release Date: 22/01/2009
07:08
More information about the BNMlist
mailing list. Powered by Wessex Networks