Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/01/2011, 09:20
riccardo_sanfilippo
 
Fecha de Ingreso: enero-2011
Ubicación: valencia
Mensajes: 2
Antigüedad: 13 años, 4 meses
Puntos: 0
problemas con javascript:showPage() con llamada a file .php

tengo una duda sobre come llamar un archivo .php, con una llamada javascript:showPage().

la linea es la siguiente

<a class="m" style="height: 100px;" href="javascript:showPage('english/products.php', ''); <hr class="space" />PRODUCTS</a>

la funcion Jquery es

jQuery(document).ready(function(){
hideContent = function(contentString){
jQuery("div.dynamicContent").fadeOut( 1000 ,function() {
showContent(contentString);playSound(0);
});
};
showContent = function (contentString) {
jQuery.ajax({
type: "GET",
url: contentString,
dataType:"html",
success: function(data){
jQuery("div.dynamicContent").html(data);
jQuery("div.dynamicContent").slideDown(1000);
},
error: function () {
alert("Page "+contentString+" not found");
}
});
};


me devuelve el error Page english/products.php not found

quisiera saber si es posible llamar un archivo con extensión PHP con javascript:showPage(), y si la respuesta es afirmativa, donde esta el error. si no fuese posible cual seria la mejor solución sin tener que cambiar mucho el código.