SniperVegeta
asked on
flash button + javascript
i am very stuck whit a problem
it seems not to work for me if i set it on a server
in flash:
a simple button whit:
on (release) {
getURL("javascript:test()" );
}
and in asp:
<script>
function test()
{
var l = ''+opener.document.locatio n;
if (l.indexOf('Action=Cancel' )<0) {
l += (l.indexOf('?')<0 ? '?' : '&') + 'Action=Cancel'
};
opener.document.location = l;
window.close();
}
</script>
<% UID = request.querystring("Uploa dID") %>
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<TITLE>...</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<OBJECT classid=...
<PARAM NAME=...>
<EMBED>...</EMBED>
</OBJECT>
</BODY>
</HTML>
it seems not to work for me if i set it on a server
in flash:
a simple button whit:
on (release) {
getURL("javascript:test()"
}
and in asp:
<script>
function test()
{
var l = ''+opener.document.locatio
if (l.indexOf('Action=Cancel'
l += (l.indexOf('?')<0 ? '?' : '&') + 'Action=Cancel'
};
opener.document.location = l;
window.close();
}
</script>
<% UID = request.querystring("Uploa
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<TITLE>...</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<OBJECT classid=...
<PARAM NAME=...>
<EMBED>...</EMBED>
</OBJECT>
</BODY>
</HTML>
ASKER
it isnot duble quotes but 2x single
like space+shomething
the problem is wenn i do this it works yust fine:
Only wenn i do the flash thing whit it it will not work at me
only seen it worked on 1 pc ... even he doesnot know what the error is..
(u need to open this page via other window)
<script>
function test()
{
var l = ''+opener.document.locatio n;
//Add Action=Cancel querystring parameter
if (l.indexOf('Action=Cancel' )<0) {
l += (l.indexOf('?')<0 ? '?' : '&') + 'Action=Cancel'
};
//Set the new URL to opener (upload is cancelled)
opener.document.location = l;
//Close this window.
window.close();
}
</script>
<Input Type=Button Value='Cancel upload' OnClick='test()'>
like space+shomething
the problem is wenn i do this it works yust fine:
Only wenn i do the flash thing whit it it will not work at me
only seen it worked on 1 pc ... even he doesnot know what the error is..
(u need to open this page via other window)
<script>
function test()
{
var l = ''+opener.document.locatio
//Add Action=Cancel querystring parameter
if (l.indexOf('Action=Cancel'
l += (l.indexOf('?')<0 ? '?' : '&') + 'Action=Cancel'
};
//Set the new URL to opener (upload is cancelled)
opener.document.location = l;
//Close this window.
window.close();
}
</script>
<Input Type=Button Value='Cancel upload' OnClick='test()'>
ASKER
got it
i wass using 4 frames in flash...
and in frame 1 it readed the contend
and in frane 2 it showed the contend
and frame 3 redirected to frame 2
and in move 1 button onclick (the one in abouve question)
then
so every time it passed frame 2 it buffered the reading contend
and then i didnot got a resonse wenn i pressed the button
reaqding+reading+ect.ect.e ct+finly response cancel or crash :(
i inserted more frames now for the reading and showing contend
now it works fine :)
i wass using 4 frames in flash...
and in frame 1 it readed the contend
and in frane 2 it showed the contend
and frame 3 redirected to frame 2
and in move 1 button onclick (the one in abouve question)
then
so every time it passed frame 2 it buffered the reading contend
and then i didnot got a resonse wenn i pressed the button
reaqding+reading+ect.ect.e
i inserted more frames now for the reading and showing contend
now it works fine :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
missing the Closing "
also try this
var l = eval(''opener.document.loc