GithubHelp home page GithubHelp logo

submodal's People

submodal's Issues

Title of the submodal

What steps will reproduce the problem?
1. if the server takes more time to load the page in submodal
2.
3.

What is the expected output? What do you see instead?
The title of the page loaded in the modal should be the title of the modal
Instead im getting the title as  Loading now.I traced this back to the 
title of the intermediate html page with "loading now" graphics.

What version of the product are you using? On what operating system?
Windows XP

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 Aug 2008 at 1:28

printing of submodel

I want to print the content of sub model content using print icon on the pop up 
window ?

can you please provide some suggestion to implement this functionality.


Original issue reported on code.google.com by [email protected] on 14 Dec 2011 at 5:34

Enhancement: Showing subModal popup onload

What steps will reproduce the problem?
1. Register showPopWin to be fired at onload event
2.
3.

What is the expected output? What do you see instead?
Expected output is that popup window should be opened after page gets
loaded. Instead, showPopWin call fails because subModal didn't get
initialized as initPopup is also registered to be fired at onload event.


What version of the product are you using? On what operating system?
subModal 1.6, IE7, Vista x64

Please provide any additional information below.
See discussion at
http://groups.google.com/group/submodal/browse_thread/thread/cb378a30558fd9c2
and
http://groups.google.com/group/submodal/browse_thread/thread/a2b7f290172caec

Attached is the proposed patch that enables subModal to show popup windows
at onload events. Patch also removes need for initPopup to be called at
onload event, and introduces a new function, initCheck, that gets called at
the begining of showPopWin to conditionally initialize popup code.

Original issue reported on code.google.com by [email protected] on 25 Sep 2008 at 12:49

Attachments:

button not working in portlet

What steps will reproduce the problem?
1. i have add this sub modal project  js in portlet porject.
2. when i click on link this floating window get opens with content. but 
problem is that any button on that portlet page not working. if i remove 
that floating window code. then that button starts working. i am using 
liferay as portal server. 
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Nov 2008 at 1:36

All time scroll to top page

What steps will reproduce the problem?
1. Open a subModal dialog with the page scrolled down

What is the expected output? What do you see instead?
The subModal dialog is open correctly but in the top of the page.

What version of the product are you using? On what operating system?
1.6

Please provide any additional information below.

Sorry for my english.

Original issue reported on code.google.com by [email protected] on 19 Dec 2008 at 8:29

IE version detection doesn't work

in lines 64-67, subModal tries to detect the version of Internet Explorer
that is in use. However, that detection snippet doesn't really work as
intended, and always returns version of 4 (because it's always
Mozilla/4.0), thus causing IE7 to hide select boxes too.

The working way to fix it is to change that code to something like this:

    if(window.navigator.appVersion.indexOf("MSIE") > -1 &&
parseInt(window.navigator.appVersion.split("MSIE")[1], 10) <= 6) {
        gHideSelects = true;
    }

Original issue reported on code.google.com by [email protected] on 12 Mar 2009 at 4:14

"Close this modal" button in modalContent page does not work in Chrome

What steps will reproduce the problem?
1. download the submodal 1.6 zip file
2. extract the content to a folder
3. open index.html in chrome

What is the expected output? What do you see instead?
Click "Close this modal" button, the modal box is expected to be closed, but it 
is not.

What version of the product are you using? On what operating system?
submodal 1.6, on windows Vista.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 Oct 2011 at 11:00

IE8 Issue

When I click on an icon to load the pop up window, it shows up and disappears

Original issue reported on code.google.com by [email protected] on 12 Jan 2012 at 5:52

Submodal is large is uncloseable

What steps will reproduce the problem?
1. shrink browser window 
2. open submodal
3. try to close it--it seems to not work.

Original issue reported on code.google.com by rogerpack2005 on 25 Aug 2008 at 8:49

Scrolling Makes Page "Jump" in a "Choppy" Way

What steps will reproduce the problem?
1. On a page that requires scrolling, open a modal window, then try to 
scrolll using the mouse scroll wheel or browser scroll bars.

I expected scrolling to be disabled, then re-enabled when modal is closed.

I am using version 1.6


Original issue reported on code.google.com by [email protected] on 14 Sep 2008 at 4:06

zIndex problem in IE, going behind of all browsers

What steps will reproduce the problem?
1. open in IE 
2. in modal dialog window click on any button, 
3. The browser goes behind all the browsers.

What is the expected output? What do you see instead?
It should stay as it is

What version of the product are you using? On what operating system?
submodal v1.6, windows 7, IE8

Please provide any additional information below.
OPEN IE THEN,
open submodal window, click on any href, button click, hiding the current 
browser to behind of any application opened the system in IE only, its working 
fine in safari.

Thanks
-Aru.

Original issue reported on code.google.com by [email protected] on 13 Apr 2011 at 11:57

script error: access denied error on IE8

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 
3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; 
OfficeLivePatch.0.0)
Timestamp: Mon, 9 Nov 2009 19:09:27 UTC


Message: Access is denied.

Line: 236
Char: 2
Code: 0
URI: http://******/modalfiles/subModal.js


Original issue reported on code.google.com by [email protected] on 9 Nov 2009 at 7:18

submodal window closes right away after it just got displayed

url: http://test.topcatsports.com
click the "contact us" button on the top left menu

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Oct 2009 at 10:40

<SELECT> dropdowns with inherited or hidden visibility cause problems

Scott's fix for IE6 to hide and then show <SELECT> fields causes problems 
when the current visibility of the object is 'inherit' or 'hidden'.

E.g. the dropdown is on a div layer that is currently hidden (a menu pane 
for example).  The visibility value of the dropdown will be 'inherit' i.e. 
it inherits the value of it's parent.  Scott's fix hides the dropdown but 
then sets it to visible when the modal window is closed.  This results in 
the dropdown then being visible when it shouldn't be.

I've fixed this by storing the visibility property for each SELECT field 
in hideSelectBoxes() and then restoring it to its previous value in 
displaySelectBoxes().



var gSelectArray;

function hideSelectBoxes() {
  var x = document.getElementsByTagName("SELECT");
  gSelectArray = new Array();

  for (i=0;x && i < x.length; i++) {
    /* .currentStyle property is IE only but this shouldn't be a problem 
here */
    switch (x[i].currentStyle.visibility) {
        case "hidden" :
            gSelectArray[i] = 0;
            break;
        case "visible" :
            gSelectArray[i] = 1;
            x[i].style.visibility = "hidden";
            break;
        case "inherit" :
            gSelectArray[i] = 2;
            x[i].style.visibility = "hidden";
            break;
    }
  }
}

function displaySelectBoxes() {
  var x = document.getElementsByTagName("SELECT");

  for (i=0;x && i < x.length; i++){
    switch (gSelectArray[i]) {
        case 0:
            x[i].style.visibility = "hidden";
            break;
        case 1: 
            x[i].style.visibility = "visible";
            break;
        case 2:
            x[i].style.visibility = "inherit";
            break;
    }
  }
}

Original issue reported on code.google.com by gmail%[email protected] on 21 May 2009 at 9:44

Safari 4 Problem

Hi, my name is John, I speak not very good English. Speak spanish, i live 
in Colombia (South America)

The subModal no working correctly in safari 4, no hide, no disable the 
scripts of the SWF

The version of the product is SubModal v1.6, in Windows XP

Thank you

Original issue reported on code.google.com by [email protected] on 15 May 2009 at 2:48

Attachments:

Does n't work with asp.net page Page.ClientScript.RegisterStartupScript

Cool. Works Great. But popup pops and closes immediatly when called below
code in asp.net page.

 StringBuilder sbOnClickJS = new StringBuilder();
        try
        {
            sbOnClickJS.Append("<SCRIPT language='javascript'>");

sbOnClickJS.AppendLine("javascript:showPopWin('popupZipCode.aspx', 400,
200, null);");
            sbOnClickJS.Append("</SCRIPT>");
        }
        catch (Exception ex)
        {
            string msg =
System.Reflection.MethodBase.GetCurrentMethod().Name + ": " + ex.Message;
            throw (new Exception(msg));
        }


        //Register Script
        Page.ClientScript.RegisterStartupScript(GetType(), "EstZipScript",
BuildModalDialogJS().ToString());


It works when user explicitly clicks on a linkbutton.

Original issue reported on code.google.com by [email protected] on 12 Feb 2009 at 4:58

Does n't work with asp.net code behind (not opening sub model )

I have to open sub model from code behind ..

Dim strForm As String = "frmLogin.aspx"

Page.RegisterClientScriptBlock("MyScript", "<SCRIPT Language='JavaScript' 
src='../subModal.js'></SCRIPT>")
        Dim stra As String = "showPopWin('" & strForm & "',1000,400,null);"
        test.Attributes.Add("onclick", stra)
but when i run this code it won't work

but when i try to call showPopWin function from client side like 

<input onclick="showPopWin('FrmDataEntry.aspx', 1000,400, null);" 
value="test_id" type="button">

it works .
help me to sort out his problem

"This SubModel is very nice and helpful"

thanks in advance 







Original issue reported on code.google.com by [email protected] on 8 Dec 2010 at 11:47

Reimplement subModal using OOD

This is a general enhancement for subModal.  To make it more portable
across various projects, it would be nice if the entire source was
implemented using one of javascript's OO implementation patterns.  I have a
large project where I'd like to integrate subModal but because it is
implemented on a global scope, I have to review the entire code and
possibly rework it to make sure I don't have any naming collisions in the
global scope.  Would be nice if it followed something along the files of:

var SUBMODAL = {};

SUBMODAL.popup = function () {
    // add some init stuff here
};

SUBMODAL.popup.prototype = {

    show: function (param1, param2) {
        // do some stuff here
    }
}

Original issue reported on code.google.com by [email protected] on 9 Feb 2010 at 5:42

Please fix the above issues and make the source JSLint compatible

Thanks for your modal dialog. I want to make use of it.
Unfortunately there are some issues, mostly mentioned in the other bug reports.

What steps will reproduce the problem?
1. Paste source in http://www.jslint.com/
2. Check for errors
3. Fix them

Thanks!

(If you need my updated version, i'll be happy to send it)

Original issue reported on code.google.com by [email protected] on 4 Mar 2011 at 3:51

call back function cannot get return value

What steps will reproduce the problem?
1. after close modal windows
2. call back  
3. cannot get return value

What is the expected output? What do you see instead?
call back function can get return value from modal window.

What version of the product are you using? On what operating system?
1.6

Please provide any additional information below.
<button onclick="showPopWin('modalContent.html', 600, 450, 
showmessage,true);">show modal window button</button>

window.frames["popupFrame"].returnVal="hello world ";

function showmessage(returnVal) {alert(returnVal);}

Original issue reported on code.google.com by [email protected] on 23 Sep 2009 at 7:43

"showCloseBox" parameter malfunction.

What steps will reproduce the problem?
1. When you try to hide the CloseBox in the dialog.

What is the expected output? What do you see instead?

The main problem is that the function "showPopWin" needs to receive 5
parameters, and every time this function is called the callers send 4
parameters instead of 5. The result is that the variable "showCloseBox" is
always "null", avoiding the closebox to hide every time this function is
called.

What version of the product are you using? On what operating system?

 SUBMODAL v1.6

Please provide any additional information below.

I fixed the problem myself, so you can find the solution in the attached file.

Original issue reported on code.google.com by [email protected] on 23 Jul 2009 at 4:49

Attachments:

Browser Back button after modal closes

What steps will reproduce the problem?
1. Open a submodal window
2. Close a submodal window
3. Click the browser's back button

What is the expected output? What do you see instead?

Expected output is for the browser to go back to the previous page, instead it 
does nothing.  Clicking the browsers back button a couple more times will 
finally get the previous page to load.  It seems that opening a modal window is 
adding the browsers history.

What version of the product are you using? On what operating system?
 V1.6, Windows using IE or Chrome  (not sure about other browsers)

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 17 Oct 2011 at 5:57

geturl flash

i need to open submodal window from flash button.

flash button as:
on (release) {
       getURL("javascript:showPopWin('http://www.google.com', 1012, 655,
null);");
}

html :

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
       <title>subModal DHTML Modal Dialog / Modal Window Test Page</title>
       <link rel="stylesheet" type="text/css" href="style.css" />
       <link rel="stylesheet" type="text/css" href="subModal.css" />
       <script type="text/javascript" src="common.js"></script>
       <script type="text/javascript" src="subModal.js"></script>

</head>


window won't open. is there any solution?


Original issue reported on code.google.com by [email protected] on 24 Mar 2009 at 12:54

IE 6 Problem

It is not working on IE6 browser on rest of all browser.
It is going on infinite loop when we click on anchor tag.

Help required.


Original issue reported on code.google.com by [email protected] on 22 Sep 2008 at 9:57

Title display intermitent

What steps will reproduce the problem?
1. Open the modal window once and title is "Not Found"
2. Close the modal window
3. Open modal again and title is now the correct title of the window

What is the expected output? What do you see instead?
The title of the aspx page is "User Info".  When I open the window for the
first time, the title of the modal is "Not Found".  When I close it and
open it again the title then gets set properly as "User Info".  This
happens 100% of the time.

What version of the product are you using? On what operating system?
1.6




Original issue reported on code.google.com by [email protected] on 13 Jul 2009 at 1:59

Callback function window.setTimeout('gReturnFunc(gReturnVal);', 1) does not work

What steps will reproduce the problem?
1. seems Callback function does not work?
2. window.setTimeout('gReturnFunc(gReturnVal);', 1);


What is the expected output? What do you see instead?
in FireFox, Error console show "gReturnFunc is not a function"
in IE6, IE will crash

What version of the product are you using? On what operating system?
SUBMODAL v1.6

Please provide any additional information below.
But if use function name directly in subModal.js, it works well.
E.g. there is a function "callbackTest()", replace to 
window.setTimeout('callbackTest(gReturnVal);', 1); it works fine.



Original issue reported on code.google.com by [email protected] on 25 Feb 2009 at 7:27

Back Button Issue

What steps will reproduce the problem?
1. When you have a modal window opened, and you click the back button in 
the browser, it only redirects the contents of the modal frame, and does 
not truly "go back".  The modal frame stays open and displays the loading 
page, and who wants to see that.
2. If you right-click the content of the modal frame, and choose back, you 
are brought back to the "loading" page.


What is the expected output? What do you see instead?
I would expect to be brought back to the same screen which I saw, before 
that modal was opened.

What version of the product are you using? On what operating system?
I am using version 1.5

Original issue reported on code.google.com by [email protected] on 14 Sep 2008 at 5:18

Button function of show modal window does not work if button is included in a form tag.

What steps will reproduce the problem?
1. in the index.html provided, add form tag above button of 'show modal window' 
 and end tag later
2. the loading window dows not display for more than a second
3. with the form tag below the button, the modal window works well 

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
latest version - 1.6

Please provide any additional information below.

I need to show the modal window within a form. Need to fetch some parameters on 
click of a button. 
Please help. 

Original issue reported on code.google.com by [email protected] on 24 Oct 2011 at 4:51

Enabling microphone on my subModal window

Hello,
I want the pop up window (modalContent.html window) to have access to my 
microphone and the background page should not have access ..

Can you show me the steps to do that.

Thanks,


Original issue reported on code.google.com by [email protected] on 20 Feb 2014 at 7:10

typo in subModal.js

this line in subModal.js:

var gDefaultPage = "/loading.html";

should read:

var gDefaultPage = "loading.html";


Original issue reported on code.google.com by [email protected] on 26 Feb 2009 at 12:56

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.