ugghh. javascript popup
...
this["clip" + i].url_btn.url = obj_xml[i].attributes.links;
this["clip" + i].url_btn.onRelease = function() {
getURL ("javascript :NewWindow=window.open(url ,'newWin','width=400,height=300,left=0,top=0,toolb ar=No,location=No,scrollbars=No,status=No,resizabl e=No,fullscreen=No'); NewWindow.focus();");
}
}
}
is it possible to stick a variable in a javascript statement like that? can't get it to work.
AKA [ Paul Bainbridge]
Pretty sure it will work. you not tested this already??
_paul
'test.html' works. url doesn't - which makes me think its not going through.
AKA [ Paul Bainbridge]
put a trace in your code to make sure that 'url' is getting passed
_paul
yeah, tried it - it says undefined.
this is driving me nuts.
edit -
actually, maybe I screwed up the trace.
here's me code:
...
_root.mc_body["clip" + i].url_btn.url = obj_xml[i].attributes.links;
_root.mc_body["clip" + i].url_btn.onRelease = function() {
getURL("javascript :NewWindow=window.open(url ,'newWin','width=400,height=300,left=0,top=0,toolb ar=No,location=No,scrollbars=No,status=No,resizabl e=No,fullscreen=No'); NewWindow.focus();");
trace(url);
}
thats right, isn't it?
Last edited by freddiemiles; 11-03-2003 at 07:43 PM .
How about...
_root.mc_body["clip" + i].url_btn.url = obj_xml[i].attributes.links;
trace(_root.mc_body["clip" + i].url_btn.url);
...
Or even...
trace(obj_xml[i].attributes.links);
merci, oldnewb.
it comes up with the urls:
test.html
test2.html
test3.html
etc.
by the way, if I replace that javascript
with getURL(this.url, "_blank"); it works
so I tried this.url in place with no luck.
edit:
maybe it has to be like "'" + this.url + "'" or something.
Last edited by freddiemiles; 11-03-2003 at 08:31 PM .
AKA [ Paul Bainbridge]
Does the html pages reside within the same directory as your swf moivie.
_paul
example
I attached an example.
anyone ever experienced this?
Attached Files
solution
on (release) {
param="javascript :NewWindow=window.open('"+this.ur l_txt+"','newWin','width=400,height=300,left=0,top =0,toolbar=No,location=No,scrollbars=No,status=No, resizable=No,fullscreen=No'); void(0);"
getURL(param);
}
AKA [ Paul Bainbridge]
Ah very cool
Also the reason it didn't work before was because url_txt didnt =="the page.html". it was as the page.html. Missing the quotes. Only just relised, glad you finaly got it working.
_paul
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width