PDA

View Full Version : popup inside DTF..


hotkarl!
01-17-2002, 12:13 PM
Hello again!

Okay...

I made a dt-field that loads a .txt file. Now i want to make a link in that .txt file that opens a popup window... This is the code i used now..

text=<Font Color="#000000">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>

<a href="javascript:;" onClick="MM_openBrWindow('url.html','popup','scrollbars=yes ,width=800,height=500')">Click me</a></p>

....But when i test it, it just opens a normal (blank) window.. Do i need to insert different tags, 'cause it's html inside flash??
Or can't a popup be done at all??

Thanx every1!!!

Tink
01-17-2002, 12:24 PM
where it says 'theURL' u need to put the link to the page that u want to open inside the window. at the moment it opens a blank window because ur not telling it what to put in the window.

does that sound right?

BLEEDA

hotkarl!
01-17-2002, 12:29 PM
Hehehe.. Yeah i know that..
I meant with "blank" that it opens a new window.. U know _blank, _top, _parent and so on..

I need to know why it does that, cause i want a popup without the menu, and no resizing handles and stuff...
Thanx anyway bleeda!

tg
01-17-2002, 03:57 PM
i belive you can only use html 1.0 tags inside a text field... well, actually you can use any tags you want, and even make up a few new ones, but flash will only understand some of the html 1.0 tags.

i don't think flash understands the <script> tag in this case.

hotkarl!
01-17-2002, 04:07 PM
So i can't make a popup window appear then.. Damn that sucks... Ah well, thanx everyone.. I really appreciate it...