4
I’m having the following problem, I found a plugin, jQuery Window, that opens windows with minimize button, maximize, etc., and opens pages inside this window, only that I’m not able to make it work.
I would like to use in my system the example number 6, method 2, if someone can give me a light how I wheel as in the example found on the site would be great.
Remembering that I include in my HTML all the necessary libraries like jQuery, jQuery UI and Plugin.
Code of the button I left to call the function and open the window when clicked
<input type='button' value='Click Here to Create Window' onclick='createWindowWithRedirectChecking2();'>
My Code - Plugin
function createWindowWithRedirectChecking2(){
$.window({
title: "create window with redirect checking",
url: "http://www.myspace.com",
iframeRedirectCheckMsg: "the window is going to redirect to {url}!!\r\nPlease select 'cancel' to stay here."
});
}
Imports
<script src="libs/JQuery/jquery-1.11.0.min.js"></script>
<script src="libs/Bootstrap/js/bootstrap.min.js"></script>
<script src="libs/jquery-ui-1.10.4/js/jquery-ui-1.10.4.js"></script>
<script src="libs/jquery-window-5.03/jquery.window.js"></script>
<link href="libs/Bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link id="jquery_ui_theme_loader" type="text/css" href="libs/jquery-ui-1.10.4/css/black-tie/jquery-ui.css" rel="stylesheet" />
<link href="libs/jquery-window-5.03/css/jquery.window.css" rel="stylesheet" media="screen">
Code in the Jsfiddle: Jsfiddler
Very strange, but now that I’m seeing your precedence, try setting Bootstrap as the last on the list. Something else... Why are you using such an old version of jQuery? Suddenly upgrading might be a possible way.
– Bruno Augusto
@Brunoaugusto I changed the order now as you suggested but continued the same way, just open the empty gray frame when I click the button.
– MarcosJunior
This happens to any site you set?
– Bruno Augusto
@Brunoaugusto access the site of the plugin I posted there above, da para ver que lá funciona, and seems to be simple to implement, but in practice here with me n ta funcionando nenhum dos exemplos exibidos la.
– MarcosJunior
@Brunoaugusto yes, I changed the Myspace that was there by Uol and presents the same result, only the frame.
– MarcosJunior
@Marcosjunior It would be possible for you to pass your code to that site so we can see the problem closely http://jsfiddle.net
– Silvio Andorinha
In addition to switching to Jsfiddle, still with the tab Network open Chrome, when clicking the button you should see a new entry from Method GET pointing to the URL set and right after N other items referring to each resource that the external site requires. For me www.myspace.com I get a 301 from Permanently moved. If you have some traffic block, which is very unlikely, it may appear different.
– Bruno Augusto
@Silvioandorinha ta ai http://jsfiddle.net/JSXKQ/
– MarcosJunior
But its version is beyond old. @Marcosjunior, in Jsfiddle you don’t use <link> and <script>, you load resources in the left pane.
– Bruno Augusto
@Brunoaugusto obg for the tip, never used this system before.
– MarcosJunior
It also took me a while to learn at first, it’s normal. :)
– Bruno Augusto