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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript and getURL 1

Status
Not open for further replies.

eladi

Programmer
Sep 4, 2001
80
AU
hi all,

i tried to figure it out myself with some other threads. but, it didn't work. my guess is, that the parameter has a wrong form...i tried it several different ways...with no success. ok...here are the scripts.

flash:
on (release) {
getURL ("javascript:fensterauf('details/bild_01.htm')");
}

in the html file:
<script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;>
<!--
function fensterauf(url)
{
win = window.open(url, 'width=800,height=600,locationbar=no,menubar=no,scrollbars=no,statusbar=no,toolbar=no');
}
-->
</script>

can somebody help, please.
tnx
adrian
 
It work fine for me in a similar project when I used the full path (for the html), including the http//...

Did you try that? Regards,

oldman3.gif
 
hei oldnewbie,

i tried it. didn't work either. i always get a browser error mesage (ie5.5) that says, that there's a wrong argument. i understand it that way, that the parameter (url) can't be recognized. i just don't understand why. it seems as flash doesn't transmitt the parameter correctely.

tnx anyway.
adrian
 
Missed it the first time around...

But you have a missing argument, the second one (&quot;&quot;), the window's name, that must there even if it's empty. Other than that it's also location and not locationbar as you've used.
Code:
function fensterauf(url) 
    { win = window.open(url,&quot;&quot;,'width=800,height=600,location=no,menubar=no,scrollbars=no,statusbar=no,toolbar=no');
    }
Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top