Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > JavaScript > Bibliothèques & Frameworks > Ext JS / Sencha
Ext JS / Sencha Ext JS / Sencha Forum d'entraide sur les frameworks Ext JS et Sencha. Avant de poster : FAQ ExtJS / Sencha, Toutes les FAQ JavaScript
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 19/01/2011, 17h02   #1
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 249
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 249
Points : 240
Points : 240
Par défaut Message erreur IE6

Bonjour,

J'ai le message d'erreur suivant sous IE6
Citation:
Line: 38
Char: 12
Error: Expected ']'
Code: 0
URI: http://Localhost/Mon_site/
J'ai beau chercher dans toutes mes pages, je ne vois aucun ] en trop ou manquant...

Et pour embêter encore plus, ma page fonctionne parfaitement bien.

Si l'un ou l'une d'entre vous a une solution, je suis preneur.

Merci par avance
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/01/2011, 13h39   #2
Membre éclairé
 
sébastien courjean
Inscription : novembre 2010
Messages : 204
Détails du profil
Informations personnelles :
Nom : sébastien courjean
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : novembre 2010
Messages : 204
Points : 319
Points : 319
Tu pourrais nous montrer le code js de ta page ?
__________________
Sébastien Courjean
Développeur Web
scourjean@cyres.fr
http://www.cyres.fr/
scourjean est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/01/2011, 13h42   #3
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 249
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 249
Points : 240
Points : 240
je voudrais bien mais il ne m'indique aucune page...
J'ai pas mal de page qui font tourner mon application donc bon :/
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/01/2011, 13h44   #4
Membre éclairé
 
sébastien courjean
Inscription : novembre 2010
Messages : 204
Détails du profil
Informations personnelles :
Nom : sébastien courjean
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : novembre 2010
Messages : 204
Points : 319
Points : 319
Tu as ton site en ligne pour qu'on test ?
__________________
Sébastien Courjean
Développeur Web
scourjean@cyres.fr
http://www.cyres.fr/
scourjean est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/01/2011, 13h53   #5
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 249
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 249
Points : 240
Points : 240
non malheureusement :/
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/01/2011, 13h59   #6
Membre éclairé
 
sébastien courjean
Inscription : novembre 2010
Messages : 204
Détails du profil
Informations personnelles :
Nom : sébastien courjean
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : novembre 2010
Messages : 204
Points : 319
Points : 319
Tu as l'extension web developer sur firefox ?
Une fois que tu l'auras : clique sur Information => Voir le javascript
Copie colle ce qu'il te donnera sauf les fichiers de librairies juste le js que toi tu as intégré sur différentes pages.
__________________
Sébastien Courjean
Développeur Web
scourjean@cyres.fr
http://www.cyres.fr/
scourjean est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/01/2011, 14h10   #7
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 249
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 249
Points : 240
Points : 240
Ma page1
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// *****
 
// ***** ACCUEIL
 
// *****
 
infoProjetAccueil = Ext.extend(Ext.data.JsonStore, {
 
  constructor: function(cfg) {
 
    cfg = cfg || {};
 
    infoProjetAccueil.superclass.constructor.call(this, Ext.apply({
 
      storeId: 'infoProjetAccueil',
 
      url: 'php/webServiceAccueil.php',
 
      root: 'results',
 
      idProperty: 'postid',
 
      totalProperty: 'totalCount',
 
      sortField: 'postid',
 
      baseParams: {
 
        task: 'LISTING'
 
      },
 
      fields: [
 
        {
 
          name: 'postid',
 
          mapping: 'postid'
 
        },
 
        {
 
          name: 'title',
 
          mapping: 'title'
 
        },
 
        {
 
          name: 'intro',
 
          mapping: 'intro'
 
        },
 
        {
 
          name: 'content',
 
          mapping: 'content'
 
        },
 
        {
 
          name: 'name',
 
          mapping: 'name'
 
        },
 
        {
 
          name: 'dateCreated',
 
          type: 'date',
 
          dateFormat: 'timestamp',
 
          mapping: 'dateCreated'
 
        }
 
      ]
 
    }, cfg));
 
  }
 
});
 
new infoProjetAccueil().load();
 
 
 
storePresAccueil = Ext.extend(Ext.data.JsonStore, {
 
  constructor: function(cfg) {
 
    cfg = cfg || {};
 
    storePresAccueil.superclass.constructor.call(this, Ext.apply({
 
      storeId: 'storePresAccueil',
 
      url: 'php/webServiceAccueil.php',
 
      root: 'results',
 
      idProperty: 'postid',
 
      totalProperty: 'totalCount',
 
      sortField: 'postid',
 
      baseParams: {
 
        task: 'presAccueil'
 
      },
 
      fields: [
 
        {
 
          name: 'postid',
 
          mapping: 'postid',
 
          type: 'string'
 
        },
 
        {
 
          name: 'title',
 
          mapping: 'title',
 
          type: 'string'
 
        },
 
        {
 
          name: 'intro',
 
          mapping: 'intro',
 
          type: 'string'
 
        }
 
      ]
 
    }, cfg));
 
  }
 
});
 
new storePresAccueil().load();
Ma page 2
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
var tplPresAccueil = new Ext.XTemplate(
 
	'<tpl for=".">',
 
		'<div id ="sizePresAccueil" class="ressource">',
 
			// '<span class="titleInfos">{title}</span>',
 
			'<div class="textInfos">{intro}</div>',
 
		'</div>',
 
	'</tpl>',
 
	'<div class="x-clear"></div>'
 
);
 
 
 
var accueilCatAccueil = [
 
	{
 
		xtype: 'panel',
 
		title: ongletPresAccueil,
 
		// title: 'ongletPresAccueillllllll',
 
		id: 'accueilCatAccueil',
 
		border: false,
 
		autoScroll: true,
 
		layout: 'auto',
 
		items: new Ext.DataView(
 
			{
 
				id: 'PresAccueil',
 
				store: 'storePresAccueil',
 
				itemSelector: 'div.thumb-wrap',
 
				tpl: tplPresAccueil
 
			}
 
		)
 
	}
 
];
Ma page 3
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
var infoActuAccueil = new Ext.data.JsonStore(
 
	{
 
		storeId: 'infoActuAccueil',
 
		url: 'php/webServiceAccueil.php',
 
		root: 'results',
 
		baseParams:{task: 'LISTING'},
 
		fields: [
 
			'postid', 'title', 'intro', 'suite', 'content', 'name',
 
			{name:'dateCreated', type:'date', mapping: 'dateCreated', dateFormat:'timestamp'}
 
		]
 
	}
 
);
 
 
 
var tplNewActu = new Ext.XTemplate(
 
	'<tpl for=".">',
 
		'<div class="listeRessource">',
 
			'<span class="date">{dateCreated}</span><br />',
 
			'<span class="titleInfos">Par {name}</span><br />',
 
			//'<span class="descRess">{id}</span>',
 
			'<span class="listeTextInfos">{content}</span>',
 
		'</div>',
 
	'</tpl>',
 
	'<div class="x-clear"></div>'
 
);
 
 
 
newActue = Ext.extend(Ext.Panel, {
 
	xtype: 'panel',
 
	region: 'center',
 
	title: 'newActue',
 
	layout: 'fit',
 
	closable: true,
 
	border: false,
 
	body: ''
 
});
 
 
 
function newActu(idA, title, content, name, dateCreated)
 
{
 
	title = title.replaceAll('%27', '\'');
 
	content = content.replaceAll('%27', '\'');
 
	content = content.replaceAll("<br />", "\n");
 
	var id = 'article-'+idA;
 
	var bool = false;
 
	for(var i = 0; i < Ext.getCmp('accueilCenter').items.key.length; i++)
 
	{
 
		if(id == Ext.getCmp('accueilCenter').items.key[i])
 
		{
 
			bool = true;
 
			Ext.getCmp('accueilCenter').setActiveTab(Ext.getCmp('accueilCenter').items.items[i]);
 
		}
 
	}
 
	if(!bool)
 
	{
 
		var newActueAccueil = Ext.getCmp('accueilCenter').add(new newActue({id: 'article-'+idA})).setTitle(title);
 
		Ext.getCmp('accueilCenter').setActiveTab(newActueAccueil);
 
		tplNewActu.overwrite(
 
			Ext.getCmp('accueilCenter').getActiveTab().body,
 
			{
 
				id: idA,
 
				dateCreated: dateCreated,
 
				name: name,
 
				content: content
 
			}
 
		);
 
	}
 
}
Ma page 4
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
var TreeAcc = Ext.tree;	
 
accueilNewDocTree = Ext.extend(TreeAcc.TreePanel, {
 
	border: false,
 
	id: 'accueilNewDocTree',
 
	useArrows: false,
 
	autoScroll: true,
 
	animate: true,
 
	enableDD: true,
 
	containerScroll: true,
 
	initComponent: function() {
 
		this.root = {
 
			nodeType: 'async',
 
			text: 'Scope Reporting',
 
			iconCls: 'scope',
 
			draggable: false
 
		};
 
		this.loader = {
 
			url: 'php/webServiceAccueil.php?request=newDoc'
 
		};
 
	accueilNewDocTree.superclass.initComponent.call(this, arguments);
 
	}
 
});
 
 
 
accueilNewObjTree = Ext.extend(TreeAcc.TreePanel, {
 
	border: false,
 
	useArrows: false,
 
	autoScroll: true,
 
	animate: true,
 
	enableDD: true,
 
	containerScroll: true,
 
	initComponent: function() {
 
		this.root = {
 
			nodeType: 'async',
 
			text: 'Scope Reporting',
 
			iconCls: 'scope',
 
			draggable: false
 
		};
 
		this.loader = {
 
			url: 'php/webServiceAccueil.php?request=newObj'
 
		};
 
	accueilNewObjTree.superclass.initComponent.call(this, arguments);
 
	}
 
});
 
 
 
var tplInfoProjetAccueil = new Ext.XTemplate(
 
	'<tpl for=".">',
 
		'<div class="listeRessource">',
 
			'<div class="date">{dateCreated:date("d/m/Y")}</div><br />',
 
			'<div class="titleInfos">{title}</div>',
 
			//'<span class="descRess">{id}</span>',
 
			"<div class='listeTextInfos'>{intro}",
 
				'<u><span style="cursor: pointer;" onclick="newActu({postid}, \'{title:this.funcReplace}\', \'{content:this.funcReplace}\', \'{name}\', \'{dateCreated:date("d/m/Y")}\');">[Lire la suite...]<br /><br /></span></u>',
 
			'</div>',
 
			// '<span class="textInfos">{content}</span>',
 
		'</div>',
 
	'</tpl>',
 
	'<div class="x-clear"></div>'
 
);
 
 
 
tplInfoProjetAccueil.funcReplace = function(chaine)
 
{
 
	chaine = chaine.replaceAll('\'', '%27');
 
	return chaine;
 
};
 
 
 
accueillayout = Ext.extend(Ext.Panel, {
 
	id:'accueillayout',
 
  layout: 'border',
 
	border: false,
 
	initComponent: function() {
 
		this.items = [
 
			{
 
				xtype: 'panel',
 
				region: 'west',
 
				id: 'west-accueil',
 
				title: titlePanelLeftAccueil,
 
				width: 200,
 
				minSize: 175,
 
				maxSize: 400,
 
				autoScroll: true,
 
				collapsible: true,
 
				margins: '5 0 5 5',
 
				cmargins: '5 0 5 5',
 
				layout: {
 
					type: 'accordion',
 
					animate: true
 
				},
 
				items: [
 
					{
 
						xtype: 'panel',
 
						title: newDocsAccueil,
 
						border: false,
 
						collapsed: true,
 
						layout: 'fit',
 
						iconCls: 'nav',
 
						items: new accueilNewDocTree()
 
					},{
 
						xtype: 'panel',
 
						title: newObjAccueil,
 
						border: false,
 
						collapsed: true,
 
						layout: 'fit',
 
						iconCls: 'settings',
 
						items: new accueilNewObjTree()
 
					},{
 
						xtype: 'panel',
 
						title: infoProjAccueil,
 
						border: false,
 
						collapsed: true,
 
						iconCls: 'settings',
 
						autoScroll: true,
 
						items: {
 
							xtype: 'dataview',
 
							store: 'infoProjetAccueil',
 
							itemSelector: 'div.thumb-wrap',
 
							tpl: tplInfoProjetAccueil
 
						}
 
					}
 
				]
 
			},{
 
				xtype: 'tabpanel',
 
				id: 'accueilCenter',
 
				region: 'center',
 
				margins: '5 5 5 5',
 
				activeTab: 0,
 
				items: accueilCatAccueil
 
			}
 
		];
 
		accueillayout.superclass.initComponent.call(this);
 
	}
 
});
Ma page 5
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
Ext.BLANK_IMAGE_URL = './ext/resources/images/default/s.gif';
Ext.onReady(function() {
 
	var barSearch;
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
 
 
 
	var ouestlogo = new Ext.Panel(
 
		{
 
			region: 'west',
 
			id: 'logoTitle',
 
			border: false,
 
			html:'<img id="logo" src="img/planet.gif" width="214px" height="30px" title="Logo Planet" />'
 
		}
 
	);
 
var eastoptions = new Ext.Panel(
 
		{
 
			region: 'center',
 
			id: 'eastoptions',
 
			border: false,
 
			// html: '<p id="options">Aide | Déconnexion</p><div id="msgError"></div>'
 
			html: '<div id="msgError"></div>'
 
		}
 
	);
 
 
 
	var tab = new Ext.TabPanel(
 
		{
 
			id: 'mainTab',
 
			border: false,
 
			region: 'center',
 
			deferredRender: true,
 
			activeTab: 0,
 
			plain: true,
 
			items: [
 
				{
 
					title: moduleAccueil,
 
					layout: 'fit',
 
					closable: false,
 
					border: false,
 
					autoScroll: true,
 
					items: new accueillayout()
 
				}
 
			]
 
		}
 
	);
 
 
 
	var viewport = new Ext.Viewport(
 
		{
 
			layout: 'border',
 
			border: false,
 
			items: [
 
				{
 
					region: 'north',
 
					id: 'nordIndex',
 
					height: 32,
 
					border: false,
 
					layout: 'border',
 
items: [ouestlogo, eastoptions]
 
				},
 
				tab.show(),
 
				new Ext.BoxComponent(
 
					{
 
						region: 'south',
 
						height: 20,
 
						border: false,
 
						html:'<div id="foot">powered by <a href="http://www.officedecision.com/v2/">OfficeDecision</a></div>'
 
					}
 
				)
 
			]
 
		}
 
	);
var sizeY = Ext.getCmp('accueilCatAccueil').getSize().height; // Récupération de la taille de l'article
$('#sizePresAccueil').css("height",sizeY+"px"); // Imposer la taille de l'article pour permettre un affichage correct de l'image (en bas à droite)
});
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 01h30.


 
 
 
 
Partenaires

Hébergement Web