My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 30 days

  • Dec 24, 2009
    HowToUse (How to use the SubModal) Wiki page commented on by s4ni.la   -   this is the best, i ever use! great thanks! use save at least 2 days of my life :)
    this is the best, i ever use! great thanks! use save at least 2 days of my life :)
  • Dec 07, 2009
    HowToUse (How to use the SubModal) Wiki page commented on by adem.cirak   -   very usefull Great work...
    very usefull Great work...
  • Dec 07, 2009
    HowToUse (How to use the SubModal) Wiki page commented on by prasadz123   -   Great work!... How can we refresh the parent window, after clicking the save(say) button in the pop up window and closing?? Hari.
    Great work!... How can we refresh the parent window, after clicking the save(say) button in the pop up window and closing?? Hari.

Older

  • Dec 01, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by vivoart2   -   I'm brand new at this. All I want is the pop up modal to have Accept or Don't Accept buttons. If the terms in the modal box are accepted by clicking accept, the visitor is taken inside the site (a .php link). If not accepted the visitor is taken to away from the website. How is this possible. The code above unlike the previous code for the modal box does not explain where it must be pasted and where to insert links if any, also where does the Showpopwin get inserted?
    I'm brand new at this. All I want is the pop up modal to have Accept or Don't Accept buttons. If the terms in the modal box are accepted by clicking accept, the visitor is taken inside the site (a .php link). If not accepted the visitor is taken to away from the website. How is this possible. The code above unlike the previous code for the modal box does not explain where it must be pasted and where to insert links if any, also where does the Showpopwin get inserted?
  • Nov 25, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by kamakazi27   -   Just for people like me who wondered, returnVal can be an array, for example, in my case {{{ function buildReturnArray() { user = document.getElementById("userField").value; password = document.getElementById("passwordField").value; returnVal = new Array(user,password); } }}}
    Just for people like me who wondered, returnVal can be an array, for example, in my case {{{ function buildReturnArray() { user = document.getElementById("userField").value; password = document.getElementById("passwordField").value; returnVal = new Array(user,password); } }}}
  • Nov 09, 2009
    issue 1 (Title of the submodal) commented on by jongmr   -   does this work on external activate page? i have this done, but it displays nothing loading an external asp page.
    does this work on external activate page? i have this done, but it displays nothing loading an external asp page.
  • Nov 09, 2009
    issue 24 (script error: access denied error on IE8) reported by jongmr   -   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
    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
  • Oct 23, 2009
    issue 3 (Scrolling Makes Page "Jump" in a "Choppy" Way) commented on by jongmr   -   another problem with this fix is when you have a long page and your link is at the bottom, you wont able to see the popup window anymore and wont be able to close the hidden popup window.
    another problem with this fix is when you have a long page and your link is at the bottom, you wont able to see the popup window anymore and wont be able to close the hidden popup window.
  • Oct 01, 2009
    issue 23 (submodal window closes right away after it just got displaye...) commented on by jongmr   -   nvm. problem fixed.
    nvm. problem fixed.
  • Oct 01, 2009
    issue 23 (submodal window closes right away after it just got displaye...) reported by jongmr   -   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.
    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.
  • Sep 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by zorbaleeroper   -   The way I've gotten around the returnVal problem is simply by doing this: window.top.action = "whatever you want to return" It works in both IE7 and FF3. I would think it would work in earlier versions as well. zorba...
    The way I've gotten around the returnVal problem is simply by doing this: window.top.action = "whatever you want to return" It works in both IE7 and FF3. I would think it would work in earlier versions as well. zorba...
  • Sep 23, 2009
    issue 22 (call back function cannot get return value) reported by liceblone   -   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);}
    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);}
  • Sep 23, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by liceblone   -   <button onclick="showPopWin('modalContent.html', 600, 450, showmessage,true);">show modal window button</button> function showmessage(returnVal) {alert(returnVal);} i cannot get the return value. so is there anyone can tell me how to set return value
    <button onclick="showPopWin('modalContent.html', 600, 450, showmessage,true);">show modal window button</button> function showmessage(returnVal) {alert(returnVal);} i cannot get the return value. so is there anyone can tell me how to set return value
  • Sep 18, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by sakalou   -   How to provide some value to modal window. For example goal is to show help message. Like "This is that ... ". So message itself should be passed in modal screen.
    How to provide some value to modal window. For example goal is to show help message. Like "This is that ... ". So message itself should be passed in modal screen.
  • Sep 05, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by zorbaleeroper   -   I can't get returnVal back, either. When I try to access it using a simple alert in the callback function, the alert doesn't fire. If I replace the returnVal variable, the alert fires and displays whatever string I use. I've assigned returnVal just as you've shown, but for some reason it isn't being set.
    I can't get returnVal back, either. When I try to access it using a simple alert in the callback function, the alert doesn't fire. If I replace the returnVal variable, the alert fires and displays whatever string I use. I've assigned returnVal just as you've shown, but for some reason it isn't being set.
  • Sep 02, 2009
    HowToUse (How to use the SubModal) Wiki page commented on by bruno.me...@chickasaw.net   -   Very useful tool. I used the showPopWin() approach and it works great. One thing I noticed though, is that on return the IE progress bar keeps running unless I click something else (not in Firefox). I assume that it must be my code, although all of my javascript methods complete before that (verified with alerts()). Do you have any idea what could be the cause? Or what debugging tool I could use to discover if something is still running?
    Very useful tool. I used the showPopWin() approach and it works great. One thing I noticed though, is that on return the IE progress bar keeps running unless I click something else (not in Firefox). I assume that it must be my code, although all of my javascript methods complete before that (verified with alerts()). Do you have any idea what could be the cause? Or what debugging tool I could use to discover if something is still running?
  • Sep 01, 2009
    HowToUse (How to use the SubModal) Wiki page commented on by CarlosPinedaT   -   Gracias por su aporte.. muy buen script... faltan algunas cositas pero vas por el camino adecuado!
    Gracias por su aporte.. muy buen script... faltan algunas cositas pero vas por el camino adecuado!
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... {{{ <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script> }}}
    In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... {{{ <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script> }}}
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   {{{ In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script> }}}
    {{{ In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script> }}}
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( whatever ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
    In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( whatever ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   <pre> In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script> </pre>
    <pre> In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script> </pre>
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
    In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function ClosePopupWin ( ) { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function MyCloseFunction () { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
    In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function MyCloseFunction () { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function CloseMe () { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
    In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function CloseMe () { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function CloseMe() { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
    In order for the "returnVal" to return variables, the "returnVal" should be declared as following... inside the subModal window. I wish this helps.... <script language="javascript"> var returnVal = "none"; function CloseMe() { returnVal = "here is my return value!!!"; window.top.hidePopWin(true); } </script>
  • Jul 29, 2009
    UsingCallbackFunction (Using callback functions with SubModal) Wiki page commented on by jamsoo   -   In order to make the "returnVal" to work, I found out that the returnVal should be a global variable... Example: inside SubModal Window... <script language="javascript"> var returnVal = "James Kim"; function CloseMe() { returnVal = "here is my return value!!!"; // this will be returned.... window.top.hidePopWin(true); } </script>
    In order to make the "returnVal" to work, I found out that the returnVal should be a global variable... Example: inside SubModal Window... <script language="javascript"> var returnVal = "James Kim"; function CloseMe() { returnVal = "here is my return value!!!"; // this will be returned.... window.top.hidePopWin(true); } </script>
  • Jul 24, 2009
    issue 17 (geturl flash) commented on by b...@stellargfx.com   -   well... for some reason it keeps nixing the comma when it get's posted after google.com and the apostrophe there should be a comma. google.com',
    well... for some reason it keeps nixing the comma when it get's posted after google.com and the apostrophe there should be a comma. google.com',
  • Jul 24, 2009
    issue 17 (geturl flash) commented on by b...@stellargfx.com   -   Don't know if you have figured this out yet but when the original code was posted it missed a comma. here is what it should be: on (release) { getURL("javascript:showPopWin('http://www.google.com' 1012, 655, null);"); } Hope this helps! Bill
    Don't know if you have figured this out yet but when the original code was posted it missed a comma. here is what it should be: on (release) { getURL("javascript:showPopWin('http://www.google.com' 1012, 655, null);"); } Hope this helps! Bill
  • Jul 23, 2009
    issue 21 ("showCloseBox" parameter malfunction.) reported by joealmore   -   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.
    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.
  • Jul 13, 2009
    issue 20 (Title display intermitent) reported by bstyles   -   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
    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
  • Jul 08, 2009
    issue 13 (how can I call popup from iframe to parent windows?) commented on by tingilikarisandeep   -   how can I call popup from iframe to parent windows? I am unable to reload or refresh the parent page from showpop. I have combinatio master page and content page.., i have to refresh the content page I'he tried with parent.document but its not working
    how can I call popup from iframe to parent windows? I am unable to reload or refresh the parent page from showpop. I have combinatio master page and content page.., i have to refresh the content page I'he tried with parent.document but its not working
  • Jun 25, 2009
  • Jun 25, 2009
    issue 9 (window.top.hidePopWin() don't work) commented on by HowgoO   -   may be page isn't the same domain.
    may be page isn't the same domain.
  • Jun 25, 2009
    issue 1 (Title of the submodal) commented on by HowgoO   -   thanks.
    thanks.
  • Jun 25, 2009
    issue 6 (function setPopTitle doesn't work) commented on by HowgoO   -   How to fix?
    How to fix?
  • Jun 18, 2009
    issue 7 (Enhancement: Showing subModal popup onload) commented on by jibanez25   -   it is posible too that showPopWin call fails because subModal does not find the loading.html file. Just create and html called loading.html and in subModal.js change this line of code: var gDefaultPage = "/loading.html"; by: var gDefaultPage = "loading.html";
    it is posible too that showPopWin call fails because subModal does not find the loading.html file. Just create and html called loading.html and in subModal.js change this line of code: var gDefaultPage = "/loading.html"; by: var gDefaultPage = "loading.html";
  • May 21, 2009
    issue 19 (<SELECT> dropdowns with inherited or hidden visibility cause...) reported by leytonest   -   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; } } }
    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; } } }
  • May 15, 2009
    issue 18 (Safari 4 Problem) reported by esutoraiki   -   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
    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
  • Apr 15, 2009
    issue 13 (how can I call popup from iframe to parent windows?) commented on by ste...@bluemania.co.uk   -   I also need to find how to do this. I have a page with an IFRAME. The content inside the IFRAME is calling shopPopUpWin and displaying the overlaying div but it's only blocking access to the IFRAME and not the parent window. How can I do this? I've tried changing subModal.js to parent.document but this has strange results Any help appreciated.
    I also need to find how to do this. I have a page with an IFRAME. The content inside the IFRAME is calling shopPopUpWin and displaying the overlaying div but it's only blocking access to the IFRAME and not the parent window. How can I do this? I've tried changing subModal.js to parent.document but this has strange results Any help appreciated.
  • Apr 07, 2009
    issue 9 (window.top.hidePopWin() don't work) commented on by joshi.vidyadhar   -   I tried this. I get an "Access Denied" error when i try "window.parent.hidePopWin (true);".
    I tried this. I get an "Access Denied" error when i try "window.parent.hidePopWin (true);".
  • Apr 02, 2009
    issue 7 (Enhancement: Showing subModal popup onload) commented on by matcuz   -   How I should use this patch? I need open a modal window after the page is loaded, too.
    How I should use this patch? I need open a modal window after the page is loaded, too.
  • Mar 28, 2009
    issue 7 (Enhancement: Showing subModal popup onload) commented on by yuvalpinker   -   Works great for me too. Thanks!
    Works great for me too. Thanks!
  • Mar 23, 2009
    issue 17 (geturl flash) reported by czechu82   -   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?
    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?
  • Mar 16, 2009
    issue 6 (function setPopTitle doesn't work) commented on by rael.gc   -   Simple to fix.
    Simple to fix.
  • Mar 12, 2009
    issue 16 (IE version detection doesn't work) reported by rimmas   -   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; }
    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; }
  • Feb 25, 2009
    issue 15 (typo in subModal.js) reported by jonat...@hamiltonselway.com   -   this line in subModal.js: var gDefaultPage = "/loading.html"; should read: var gDefaultPage = "loading.html";
    this line in subModal.js: var gDefaultPage = "/loading.html"; should read: var gDefaultPage = "loading.html";
  • Feb 24, 2009
    issue 14 (Callback function window.setTimeout('gReturnFunc(gReturnVal)...) reported by frank.song.1999   -   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.
    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.
  • Feb 22, 2009
    issue 3 (Scrolling Makes Page "Jump" in a "Choppy" Way) commented on by manish.bhoir   -   Yes this will definitely work in IE6, Firefox & safari. But IE7 and Opera it wont. A rather different approach would be to give the modal window causing the opacity layer to set the property as fixed instead of absolute and giving the popup as fixed also this will allow the popup to be always in the fixed position of the screen rather then the user scrolling the window.
    Yes this will definitely work in IE6, Firefox & safari. But IE7 and Opera it wont. A rather different approach would be to give the modal window causing the opacity layer to set the property as fixed instead of absolute and giving the popup as fixed also this will allow the popup to be always in the fixed position of the screen rather then the user scrolling the window.
  • Feb 16, 2009
    issue 13 (how can I call popup from iframe to parent windows?) reported by mrjunaidali   -   how can I call popup from iframe to parent windows?
    how can I call popup from iframe to parent windows?
  • Feb 12, 2009
    issue 12 (Does n't work with asp.net page Page.ClientScript.RegisterSt...) reported by tvlaxmi   -   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.
    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.
 
Hosted by Google Code