Comunidad de diseño web y desarrollo en internet online

importar imagenes desde php

Citar            
MensajeEscrito el 19 Abr 2006 12:42 pm
Hola chic@s:

Tengo un problemilla. Estoy haciendo una pagina en action que lee datos del servidor a travez de php. Estoy haciendo una galaria de imagenes pero no se muertran. Si pongo la sirección de la imagen se ve pero no a travez de action. Se puede usar la etiqueta <img de html verdad?

el codigo:

setProperty("scroller", _visible, false);
System.useCodepage = true;
loadVarsText = new LoadVars();
//loadVarsText.load("test.txt");
loadVarsText.load("cargadatosfotos.php");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
for (i=0; i < this.n; i++) {
scroller.htmlText += "&nbsp;http://localhost/europa_ingenieria/fotos_galeria/" + this["img"+i] + "<br>";
scroller.htmlText += "<img src='http://localhost/europa_ingenieria/fotos_galeria/" + this["img"+i] + "' border='0'><br><br>";
}
};

salu2

Por eduu

40 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 21 May 2009 02:04 am
emm, no se mucho de php, y tal vez no sea el problema del errurr, peruu emmm en esta linea no cierras con comilla simple si no con comilla doble. mira :lol:

tu lo tienes asi:

Código :

scroller.htmlText += "<img src='http://localhost/europa_ingenieria/fotos_galeria/"


y no deberia ir asi? :?

Código :

scroller.htmlText += "<img src='http://localhost/europa_ingenieria/fotos_galeria/'



abres con comilla simple, se cierra igual nu? :cry:


bueno solo quize ayudar... ^^ ^^

Por lukita26

31 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.