Comunidad de diseño web y desarrollo en internet online

<a href

Citar            
MensajeEscrito el 09 Jun 2005 02:25 pm
Hola:

Veran quiero hacer un enlace tipo html sobre una variable pero no me sale, me marca error de sintaxis... este ens mi codigo.

Código :

if (this["email"+i] != "") {
         content.htmlText += "<b>" + this["apellido"+i] + " " + this["nombre"+i] + "</b>" + "<a href='"this["email"+i]"'>mail</font></a><br>";


Podrian ayudarme con la etiqueta <a href porfavor

Gracias de antemano

Por manuel_cfe

106 de clabLevel



 

msie
Citar            
MensajeEscrito el 09 Jun 2005 04:49 pm
Hey, acuerdate que flash forma los enlaces con getURL :lol: , ahora no lo pongas directamente en la etiqueta html porque sino te abre el URL de una vez. :wink: , Aqui te doy un ejemplo de como hacerlo:

Código :

txt.html = true;
enlace="http://www.cristalab.com"; 
txt.htmlText = "El Link es: "+"<u>"+"<A HREF=\"asfunction:Link,"+enlace+"\">"+"Cristalab"+"</u>"+"</A>";

function Link(milink) {
   getURL(milink, "_blank");
}


Cuando en la etiqueta html digo +enlace+ es paserle el parametro a la funcion. ahora la barras invertidas es para que el escape las comillas, puedes sustituir eso por comillas simples '. Quedándote asi:

Código :

txt.htmlText = "El Link es: "+"<u>"+"<A HREF='asfunction:Link,"+enlace+"'>"+"Cristalab"+"</u>"+"</A>";


Bueno asi es, 8). Ese ejemplo lo consegui en la seccion ejemplos de esta web, le hice unas modificaciones pero lo esencial lo saque de alli. :D

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

msie
Citar            
MensajeEscrito el 09 Jun 2005 06:43 pm
de hecho sí se puede poner a href como en html

Por fael

BOFH

2443 de clabLevel

3 tutoriales
2 articulos

 

firefox
Citar            
MensajeEscrito el 10 Jun 2005 03:13 pm
Que tal amigos de cristalab:

Gracias Maikel y fael....., ya quedo solucionado mi problema, ahi les muestro el codigo.

Código :

System.useCodepage = true;

function Link(milink) { 
   getURL(milink, "_blank"); 
} 


function showContent() {
   var i;  
   content.htmlText = "";
   for (i=0; i < this.n; i++) {
      if (this["email"+i] != "") {
         enlace=this["email"+i]; 
         content.htmlText += "<b>" + this["apellido"+i] + " " + this["nombre"+i] + "</b>" + "<a href=\"asfunction:Link,"+enlace+"\">"+"&nbsp;&nbsp;(<font color='#0000cc'>email</font>)"+"</a>";
         } else {
         content.htmlText += "<b>" + this["nombre"+i] + " " + this[""+i] + "</b><br>";
      }
      content.htmlText += "&nbsp;&nbsp;" + this["phone"+i] + "<br>";
      content.htmlText += "&nbsp;&nbsp;<a href=" + this["email"+i] + "</a><br><br>";
   }
}

// Create new load vars object c for data transfer
var c = new LoadVars();
c.onLoad = showContent;

// define content and actions for each tab
for (var i=65; i<=90; i++) {
   this["tab"+chr(i)].letter.text = chr(i);
   // when this tab is clicked
   this["tab"+chr(i)].onRelease = function() {
      // can't use chr(i) here -- must use mc name
      c.thisLetter = this._name.substr(3,1);
      bigLetter.text = c.thisLetter;
      content.htmlText = "Cargando datos para " + c.thisLetter;
      // scope of this function is main timeline so can refer to c directly
      c.sendAndLoad("flashmx_dbPassReturn.php",c,"POST");
   }
}

stop();


Saludos desde Veracruz

Por manuel_cfe

106 de clabLevel



 

msie
Citar            
MensajeEscrito el 10 Jun 2005 03:19 pm
De nada, siempre a la orden. :D

Mi hermano mayor vive en Veracruz-México trabaja en Tamsa

Saludos desde Pto. Ordaz-Venezuela

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

msie
Citar            
MensajeEscrito el 13 Jun 2005 02:19 pm
Oye Maikel, y que hace tu hermano por aca, que hace o a que se dedica en tamsa?

Saludos

Por manuel_cfe

106 de clabLevel



 

msie
Citar            
MensajeEscrito el 13 Jun 2005 02:35 pm
Mi hermano es ingeniero en informática y ejerce su profesion desde antes del 2000 a Ingdesi una compañia argentina que le trabaja a siderúrgicas, empezo aqui en SIDOR (venezuela-pto ordaz) y luego se lo llevaron a méxico... El último proyecto que escuche de él era de Sistemas Expertos pero no se si era para Tamsa o para la Maestria que esta haciendo alla.

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox

 

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