Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/11/2013, 16:31
Avatar de bryanzark01
bryanzark01
 
Fecha de Ingreso: octubre-2013
Mensajes: 31
Antigüedad: 10 años, 6 meses
Puntos: 1
Exclamación problema no me ejecuta action=proceso3.php

tengo un gran problema boton no me ejecuta en mi form, el action=proceso3.php
este es el codigo

Código PHP:
echo "
<form name=formi method=post style='display:inline;' action=proceso3.php>
                    <button type='submit' class='stbut1 topopup' style='float:right;' name=modificar value=" 
.$row['id']. "> modificar </button>
                    </form>"

pero si en el boton le quito la clase 'topopup', si me ejectuta el action, como puedo resolver esto?? la otra clase topopup es como un tipo de funcion jquery para q salga un pop-up personalizado...

este es el codigo del jquery

Código:

jQuery(function($) {
	
	$("button.topopup").click(function() {
			loading(); // loading
			setTimeout(function(){ // then show popup, deley in .5 second
				loadPopup(); // function show popup 
			}, 500); // .5 second
	return false;
	});
	
	/* event for close the popup */
	$("div.close").hover(
					function() {
						$('span.ecs_tooltip').show();
					},
					function () {
    					$('span.ecs_tooltip').hide();
  					}
				);
	
	$("div.close").click(function() {
		disablePopup();  // function close pop up
	});
	$("button.cancelar").click(function() {
		disablePopup();  // function close pop up
	});
	$(this).keyup(function(event) {
		if (event.which == 27) { // 27 is 'Ecs' in the keyboard
			disablePopup();  // function close pop up
		}  	
	});
	
	$("div#backgroundPopup").click(function() {
		disablePopup();  // function close pop up
	});
	
	$('button.livebox').click(function() {
		alert('Hello World!');
	return false;
	});
	

	 /************** start: functions. **************/
	function loading() {
		$("div.loader").show();  
	}
	function closeloading() {
		$("div.loader").fadeOut('normal');  
	}
	
	var popupStatus = 0; // set value
	
	function loadPopup() { 
		if(popupStatus == 0) { // if value is 0, show popup
			closeloading(); // fadeout loading
			$("#toPopup").fadeIn(0500); // fadein popup div
			$("#backgroundPopup").css("opacity", "0.7"); // css opacity, supports IE7, IE8
			$("#backgroundPopup").fadeIn(0001); 
			popupStatus = 1; // and set value to 1
		}	
	}
		
	function disablePopup() {
		if(popupStatus == 1) { // if value is 1, close popup
			$("#toPopup").fadeOut("normal");  
			$("#backgroundPopup").fadeOut("normal");  
			popupStatus = 0;  // and set value to 0
		}
	}
	/************** end: functions. **************/
}); // jQuery End