vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to open in a new window (https://vborg.vbsupport.ru/showthread.php?t=265638)

fxwoody 06-22-2011 09:56 AM

How to open in a new window
 
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

Code:

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

Code:

<!-- 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 ;)


All times are GMT. The time now is 10:15 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01029 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete