DMXzone Lightbox Support Product Page

Solved

the form does not work after lightbox

Reported 17 Aug 2010 20:51:48
1
has this problem
17 Aug 2010 20:51:48 Luca lucag posted:
Hi,

I made a page (ASP classic) with a form that fill the db and upload (and resize - SIP) an image. If I send the form: all works fine. if I open before the lightbox (with some instructions), the form not works anymore (IE 6, FF 3.5.8, Chrome, IE8 ) the submit button as freezed, I click it but is dead.

Is possible an conflict with PAU?

Thank you
Luca

Promoted Solutions

Replied 24 Aug 2010 11:05:39
Hello Luca,

Please, do following:
in your form tag in onSubmit attribute set following:
document.MM_returnValue = true;

so it look like :
onsubmit="document.MM_returnValue = true;validateForm(this, 'GIF,JPG,JPEG,BMP,PNG', false, ['textfield', '', false], ['textfield2', '', false], ['file', 'GIF,JPG,JPEG,BMP,PNG', false], ['submit', '', false], ['mm_insert', '', false], ['gp_upload', '', false], ['uploadid', '', false]);showProgressWindow('win_look.htm?ProgressUrl=/ScriptLibrary/PU3Progress.asp&UploadId=210857235', 400, 200, this);return document.MM_returnValue"


Regards,

Replies

Replied 20 Aug 2010 12:12:12
20 Aug 2010 12:12:12 Miroslav Zografski replied:
Hello Luca,

Please, provide more information as where is your form placed, in lighbox or not, also if you could send your page code will be good.

Regards,
Replied 20 Aug 2010 13:22:26
20 Aug 2010 13:22:26 Luca lucag replied:
Hello, Miroslav
No, the form is not in the lightbox.
I open lightbox from some info links.

if I don't open any lightbox the form works correctly.

If I opened lightbox (and close it), the form don't send anything, like if the submit button is a simple button without function, and I must to refresh the page to back at the normal functionality

Extensions used:
PAU
SIP
Lightbox

Thank you
Luca
Replied 20 Aug 2010 16:20:58
20 Aug 2010 16:20:58 Miroslav Zografski replied:
Hello Luca,

Can I see this page online?

Regards,
Replied 23 Aug 2010 10:15:33
23 Aug 2010 10:15:33 Luca lucag replied:
Hi Miroslav,

I made an example with same problem...

testpage

(tested on FF 3.6.8, IE6, IE8, Chrome, Opera 10.53)

Thank you
Regards
Luca


<
%'*** Pure ASP File Upload 3.0.17
' Process form form1
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "/ScriptLibrary"
pau.ConflictHandling = "uniq"
pau.StoreType = "file"
pau.ProgressTemplate = "win_look.htm"
pau.ProgressWidth = 400
pau.ProgressHeight = 200
pau.UploadFolder = """../public/test"""
pau.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
pau.ProcessUpload
pau.SaveAll
%>
<
%' Smart Image Processor 2.5.5
Dim sip1
Set sip1 = New ImageProcessor
sip1.Key = "A7125519-1DA0-45FC-AADA-FD60892D089F"
sip1.ScriptFolder = "../ScriptLibrary"
sip1.Component = "Auto"
sip1.Source = "upload"
sip1.AutoOrient = false
sip1.KeepMetaData = false
sip1.Matte = "#FFFFFF"
sip1.UploadFields = ""
sip1.GetFiles
While sip1.HasFiles
sip1.LoadFromSource
sip1.Resize 600, 400, true
sip1.Overwrite = true
sip1.SaveJPEG 80
sip1.MoveNext
Wend
Set sip1 = Nothing
%>


<script type="text/javascript">
<!--
<%=pau.generateScriptCode()%>

function openDMXzoneLightbox(arg, options, context) {//v1.2
		context = context || window, options = options || {};
		if (context.DMX && context.DMX.Lightbox) {
			context.DMX.Lightbox.open(options.plugin || "", arg, options);
      document.MM_returnValue = false;
		}
	}
//-->
</script>
<script src="/ScriptLibrary/incPU3.js" type="text/javascript"></script>
<!--[if IE]><script type="text/javascript" src="../dmx/lib/excanvas-compressed.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="../dmx/widgets/Lightbox/styles/default/style.css" />
<script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="../dmx/dmx.core.js"></script>
<script type="text/javascript" src="../dmx/widgets/Lightbox/dmx.lightbox.js"></script>

Replied 24 Aug 2010 11:05:39
24 Aug 2010 11:05:39 Miroslav Zografski replied:
Hello Luca,

Please, do following:
in your form tag in onSubmit attribute set following:
document.MM_returnValue = true;

so it look like :
onsubmit="document.MM_returnValue = true;validateForm(this, 'GIF,JPG,JPEG,BMP,PNG', false, ['textfield', '', false], ['textfield2', '', false], ['file', 'GIF,JPG,JPEG,BMP,PNG', false], ['submit', '', false], ['mm_insert', '', false], ['gp_upload', '', false], ['uploadid', '', false]);showProgressWindow('win_look.htm?ProgressUrl=/ScriptLibrary/PU3Progress.asp&UploadId=210857235', 400, 200, this);return document.MM_returnValue"


Regards,
Replied 25 Aug 2010 10:05:28
25 Aug 2010 10:05:28 Luca lucag replied:
Thank you very much Miroslav...

Regards
Luca

Reply to this topic