Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xhtml pop up

Status
Not open for further replies.

Manjinda

Technical User
Jul 17, 2009
9
Hey,

I am having trouble trying to get a pop up working within a flash site driven by xml & css files coding used is xhtml...

I have tried using this as a test but having no luck

<htmlContent><en><![CDATA[
<p class="mainTitle">TITLE HERE</p>
<p>CONTENT HERE</p>
<a href=" id="popup"><img src="images/media/logo.jpg" alt="Google"></a>
<script type="text/javascript">
document.getElementById('popup').onclick= function() {
return !window.open(this.href, '_blank', 'width=250,height=250');
};
</script>
]]></en></htmlContent>

it comes up like this...(SEE ATTACHMENT)


i have been told javascript has been disabled within the site hence why it does not work... what is the work around for this i am a noob to xhtml coding so would appreciate pre-written code which makes it easier for me.

Thanks in advance
 
I believe that javascript has been disabled by checking your code and removing the script tags. That is why whatever is inside script tags appears as regular text. You could try directly embedding JS in the link:
Code:
<a href="[URL unfurl="true"]http://www.google.com"[/URL] id="popup" onclick="window.open(this.href, '_blank', 'width=250,height=250');"><img src="images/media/logo.jpg" alt="Google"></a>

[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top