PDA

View Full Version : How to open in a new window


fxwoody
06-22-2011, 09:56 AM
Ok, i'ved been using an imagehost script for a good while now but i'm stuck with an iFrame script
that is added to my editor_toolbar_on for users to upload there images when posting etc etc.

Problem i have is that the actual script works great but instead of opening a new tab for the imagehost, i would like the tab to open in a new floating window, like we can do with

javascript:void(0)' onclick='window.open("http://mywebimageblabla.com/","link","height=450,width=650,scrollbars=yes,status=yes")

but i can't figure out where to had this kind of script to an iFrame!! :(

This is my iFrame script for the editor box

<!-- Imganinarium uploader -->
<div class="blockrow">
<label for="thumbnailurl" class="full">Imaginarium Uploader:</label>
<span id="iframe_uploader"></span>
<script type="text/javascript" src="http://myweb.com/imaginarium/source/includes/scripts/jquery.js"></script>
<script type="text/javascript" src="http://myweb.com/imaginarium/source/includes/scripts/genjscript.js"></script>
<script type="text/javascript">$('#iframe_uploader').html(get_ajax_content("http://myweb.com/imaginarium/index.php?module=iframeupload"));</script><noscript>Your browser does not support Javascript.</noscript>
</div>
<!-- end -->

Anyone with an idea on this????
Would be appreciated a lot :D

LifesGreatestGift
06-22-2011, 02:13 PM
you would need to place the iframe code in a html complient .html file on your forum root. Then use something like highslide or any of those javascript overlay div scripts to popup that html file. Then a link where you want it with the proper code to call the highslide/etc script to open the floating div (window).

Checkout this example.
http://highslide.com/examples/iframe.html

fxwoody
06-22-2011, 09:11 PM
Humm interesting! Tks for the scoop TW7S.
That would be like the end results of the upload.

The script was made by Mihalism but the shut off completeley....so loll

Actually, it works kind of like that tho, the tab open up after the upload is completed.
Maybe it would be easier to work from with in the script itself?!?

I hate not to know what i'm doing lolll

Tks for the infos tho ;)