PB Javascript
LightOL69
-
LightOL69 -
LightOL69 -
Voila plus ou moins le source html du code que j'utilise :
<SCRIPT LANGUAGE="Javascript">
var tab= new Array;
var counter = 0;
var tab[0] = new Array;
tab[0]["text_content"] = "blabla";
tab[counter]["html_content"] = "\
<html>\
<body bgcolor='#CD9BFF'>\
<table>\
<tr valign='middle'>\
<td class='normal' width='50%' align='justify'>\
<b>blablabla<font face="symbol, verdana, arial">l</font></b> <br />\
<b>blabal</b> <br />\
<b>blabliblublo</b><br />\
<br />\
<b>\
etc...
**************************
la partie ou je range certains éléments dans le tableau se trouve dans une boucle php
$out.="
<SCRIPT LANGUAGE=\"Javascript\">
var tab = new Array;
var counter = 0;";
// get the content of the two tables tab_heading and tab_bottom_page of mail_config.php
// in two tables javascript
foreach($tab AS $tab_counter => $tab_option)
{
$out.="
var tab[counter] = new Array;
tab[counter][\"text_content\"] = \"".$tab_option["text_content"]."\";
tab[counter][\"html_content\"] = \"".$heading_option["html_content"]."\";
counter = counter + 1;";
}
*************************
au niveau du var tab[0] = new Array;, il me met qu'il manque un point virgule au caractère 22, moi y en a pas comprendre
. je pensais au départ que ça venais de la chaîne de caractère...
PLEASE HELP !
<SCRIPT LANGUAGE="Javascript">
var tab= new Array;
var counter = 0;
var tab[0] = new Array;
tab[0]["text_content"] = "blabla";
tab[counter]["html_content"] = "\
<html>\
<body bgcolor='#CD9BFF'>\
<table>\
<tr valign='middle'>\
<td class='normal' width='50%' align='justify'>\
<b>blablabla<font face="symbol, verdana, arial">l</font></b> <br />\
<b>blabal</b> <br />\
<b>blabliblublo</b><br />\
<br />\
<b>\
etc...
**************************
la partie ou je range certains éléments dans le tableau se trouve dans une boucle php
$out.="
<SCRIPT LANGUAGE=\"Javascript\">
var tab = new Array;
var counter = 0;";
// get the content of the two tables tab_heading and tab_bottom_page of mail_config.php
// in two tables javascript
foreach($tab AS $tab_counter => $tab_option)
{
$out.="
var tab[counter] = new Array;
tab[counter][\"text_content\"] = \"".$tab_option["text_content"]."\";
tab[counter][\"html_content\"] = \"".$heading_option["html_content"]."\";
counter = counter + 1;";
}
*************************
au niveau du var tab[0] = new Array;, il me met qu'il manque un point virgule au caractère 22, moi y en a pas comprendre
. je pensais au départ que ça venais de la chaîne de caractère...
PLEASE HELP !
A voir également:
- PB Javascript
- Telecharger javascript - Télécharger - Langages
- A javascript error occurred in the main process - Forum Windows
- Afficher un tableau javascript en html ✓ - Forum Javascript
- Javascript arrondi - Forum Javascript
- Javascript arrondi après la virgule ✓ - Forum Windows