Jump to content


Naruto's Content

There have been 57 items by Naruto (Search limited from 30/03/2023)



Ordernar por                Order  

#656896 Problemas Com Html Area + Php

Posted by Naruto on 01/11/2005, 17:14 in Javascript / DOM / AJAX / ECMAScript

Talvez pq o JavaScript esteja funcionando e o PHP retornando o valor errado não? Sem contar que tem uns 10 tópicos relacionados à HTML Área na seção PHP que não foram movidos pra cá.

http://forum.wmonlin...hlite=html area ;)



#656876 Problemas Com Html Area + Php

Posted by Naruto on 01/11/2005, 16:21 in Javascript / DOM / AJAX / ECMAScript

Ae pessoal to com um probleminha aqui com o HTML Area, já consegui configurá--lo pra aparecer na text area, porém na hora de imprimir o conteúdo da mesma ele aparece sem nenhuma formatação. Vou postar 2 screens aqui pra vocÊs entenderem melhor:

Posted Image

Como ele retorna:
Posted Image

Aqui vai o código da index.php teste que eu fiz pra vocês darem uma olhada:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<!-- Configure the path to the editor.  We make it relative now, so that the
    example ZIP file will work anywhere, but please NOTE THAT it's better to
    have it an absolute path, such as '/htmlarea/'. -->
<script type="text/javascript">
  _editor_url = "htmlarea/";
  _editor_lang = "en";
</script>

<!-- load the main HTMLArea file, this will take care of loading the CSS and
    other required core scripts. -->
<script type="text/javascript" src="htmlarea/htmlarea.js"></script>

<!-- load the plugins -->
<script type="text/javascript">
      // WARNING: using this interface to load plugin
      // will _NOT_ work if plugins do not have the language
      // loaded by HTMLArea.

      // In other words, this function generates SCRIPT tags
      // that load the plugin and the language file, based on the
      // global variable HTMLArea.I18N.lang (defined in the lang file,
      // in our case "lang/en.js" loaded above).

      // If this lang file is not found the plugin will fail to
      // load correctly and nothing will work.

      HTMLArea.loadPlugin("TableOperations");
      HTMLArea.loadPlugin("SpellChecker");
      HTMLArea.loadPlugin("FullPage");
      HTMLArea.loadPlugin("CSS");
      HTMLArea.loadPlugin("ContextMenu");
   
   var editor = null;
function initEditor() {

  // create an editor for the "ta" textbox
  editor = new HTMLArea("teste");

  // register the FullPage plugin
  editor.registerPlugin(FullPage);

  // register the SpellChecker plugin
  editor.registerPlugin(TableOperations);

  // register the SpellChecker plugin
  editor.registerPlugin(SpellChecker);

  // register the CSS plugin
  editor.registerPlugin(CSS, {
    combos : [
      { label: "Syntax:",
                   // menu text       // CSS class
        options: { "None"           : "",
                   "Code" : "code",
                   "String" : "string",
                   "Comment" : "comment",
                   "Variable name" : "variable-name",
                   "Type" : "type",
                   "Reference" : "reference",
                   "Preprocessor" : "preprocessor",
                   "Keyword" : "keyword",
                   "Function name" : "function-name",
                   "Html tag" : "html-tag",
                   "Html italic" : "html-helper-italic",
                   "Warning" : "warning",
                   "Html bold" : "html-helper-bold"
                 },
        context: "pre"
      },
      { label: "Info:",
        options: { "None"           : "",
                   "Quote"          : "quote",
                   "Highlight"      : "highlight",
                   "Deprecated"     : "deprecated"
                 }
      }
    ]
  });

  // add a contextual menu
  editor.registerPlugin("ContextMenu");

  // load the stylesheet used by our CSS plugin configuration
  editor.config.pageStyle = "@import url(custom.css);";

  setTimeout(function() {
    editor.generate();
  }, 500);
  return false;
}

function insertHTML() {
  var html = prompt("Enter some HTML code here");
  if (html) {
    editor.insertHTML(html);
  }
}
function highlight() {
  editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>

<body onLoad="initEditor()">
<form action="index.php?a=postar" id="edit" name="edit" method="post">
  <p>
    <textarea name="teste" cols="50" rows="10" id="teste"></textarea>
</p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Enviar" />
    </label>
</p>
</form>

<? if ($a == "postar"){

echo $_POST["teste"];

}
?>
</body>
</html>



#656251 Sistema De Lyrics

Posted by Naruto on 31/10/2005, 08:07 in Avaliação de Sistemas

Tem sim vo tira umas screens pra mostra pro pessoal



#655927 Como Saber Se Meu Host Tem Suporte à Biblioteca Gd

Posted by Naruto on 29/10/2005, 22:10 in PHP

Pessoal tenhu um site hospedado no host siweb.com.br e queria colocar uns scripts para fazer miniatura no meu site. Mas pra isso preciso dessa Biblioteca GD né? Então queria saber se tem algum jeito de testar pra ver se o host tem suporte ou não. E se não tiiver como instalar?



#655918 Iniciando Com Gd

Posted by Naruto on 29/10/2005, 21:49 in Artigos, Dicas e Tutoriais de PHP

como eu instalo essa biblioteca num host q eu hospedo meu site?



#655914 Gerar Miniaturas

Posted by Naruto on 29/10/2005, 21:41 in Artigos, Dicas e Tutoriais de PHP

existe algum tutorial que ensine a instalar essa biblioteca no meu host? não no meu pc mas sim no host q eu hospedo meu site



#652190 Sistema De Lyrics

Posted by Naruto on 18/10/2005, 20:23 in Avaliação de Sistemas

Ae pessoal, aqui está meu primeiro script completo. É um sistema de letras de músicas de um determinado tipo. O script foi feito totalmente por mim, o que vocês acham? Deêm suas opniões ai plz :lol:

http://letras.animesgeneration.com/




IPB Skin By Virteq