Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2385 connectés 

 


 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  863  864  865  ..  1454  1455  1456  1457  1458  1459
Auteur Sujet :

blabla@web

n°1938592
leservicec​fini
Posté le 07-11-2009 à 02:12:22  profilanswer
 

Reprise du message précédent :
html5?
stop dream les mecs, les grands comptes sont encore en IE6!
le reste n'a pas de pognon donc osef :X

mood
Publicité
Posté le 07-11-2009 à 02:12:22  profilanswer
 

n°1938594
theredled
● REC
Posté le 07-11-2009 à 02:29:24  profilanswer
 

Alekusu2 a écrit :

Dernière question, excuse moi par avance d'être un noob :D
Actuellement j'utilise uniquement des fonctions mais absolument pas de class ce qui me semble pourtant primordial si je veux passer à la vitesse supérieure.

 

Or je n'ai pas bien compris la différence class/fonction et le fonctionnement des class, si tu pouvais prendre quelques minutes pour m'expliquer et me montrer 1 ou 2 exemples, ce serait super :D

 

Je sais j'abuse mais bon :( Une fois de plus, les tutos en ligne sont jamais très concrets...


Ok, mais après je réclame d'aller me coucher :o

 

Une classe, c'est un truc qui contient des variables (attributs) et des fonctions (méthodes).
Un objet, c'est une instance de classe.

 

Par ex, ya une classe Humain, qu'a des attributs (couleur des yeux, couleur de peau, date de naissance, un position dans l'espace) et des méthodes (marcher, parler)
Toi t'es une instance de la classe Humain, moi j'en suis une autre.

 
Code :
  1. class Human
  2. {
  3.  protected $eyes_color, $skin_color, $birthday, $position_x, $position_y;
  4.  
  5.  public function __construct($eyes_color, $skin_color, $birthday)
  6.  {
  7.     $this->eyes_color = $eyes_color;
  8.     $this->skin_color = $skin_color;
  9.     $this->birthday = $birthday;
  10.     $this->position_x = 1;
  11.     $this->position_y = 1;
  12.  }
  13.  
  14.  public function walk()
  15.  {
  16.    $this->position_x = $this->position_x + 4;
  17.  }
  18.  
  19.  public function talk()
  20.  {
  21.    echo 'Hey §§§';
  22.  }
  23.  
  24.  public function getPositionX()
  25.  {
  26.    return $this->position_x;
  27.  }
  28. }
  29.  
  30. $alekusu2 = new Human('blue', 'white', '05/12/1958');
  31. $theredled = new Human('green', 'black', '02/05/1984');
  32.  
  33. $alekusu2->talk(); // Affiche Hey§§§
  34. $theredled->walk();
  35. echo $theredled->getPositionX(); // Affiche 5
 

Bon, pour le moment, bonne nuit  [:sleepv]

Message cité 1 fois
Message édité par theredled le 07-11-2009 à 02:33:01

---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
n°1938595
boblenain2​00
Posté le 07-11-2009 à 02:30:33  profilanswer
 

Alekusu2 a écrit :

Dernière question, excuse moi par avance d'être un noob :D
Actuellement j'utilise uniquement des fonctions mais absolument pas de class ce qui me semble pourtant primordial si je veux passer à la vitesse supérieure.

 

Or je n'ai pas bien compris la différence class/fonction et le fonctionnement des class, si tu pouvais prendre quelques minutes pour m'expliquer et me montrer 1 ou 2 exemples, ce serait super :D

 

Je sais j'abuse mais bon :( Une fois de plus, les tutos en ligne sont jamais très concrets...

 

http://youcode.fr/voircours.php?id=20&page=1
Introduction à la POO !

 

EDIT : Ah bon ? Peut-etre une maitenance du serv [:spamafote]

Message cité 1 fois
Message édité par boblenain200 le 07-11-2009 à 12:01:41
n°1938596
Alekusu2
Posté le 07-11-2009 à 02:32:23  profilanswer
 

Ton site est down

n°1938616
nraynaud
lol
Posté le 07-11-2009 à 12:30:59  profilanswer
 


ok, merci pour tout en tout cas.


---------------
trainoo.com, c'est fini
n°1938636
Harkonnen
Un modo pour les bannir tous
Posté le 07-11-2009 à 15:37:28  profilanswer
 


Citation :

je l'enverrai voir en Indonésie où est Java


 [:boxxxy]


---------------
J'ai un string dans l'array (Paris Hilton)
n°1938637
boblenain2​00
Posté le 07-11-2009 à 15:41:05  profilanswer
 

[:cambronne3]

n°1938638
Jubijub
Parce que je le VD bien
Posté le 07-11-2009 à 15:48:52  profilanswer
 

[:blague de merde]


---------------
Jubi Photos : Flickr - 500px
n°1938788
Alekusu2
Posté le 08-11-2009 à 21:43:35  profilanswer
 

theredled a écrit :


Ok, mais après je réclame d'aller me coucher :o
 


Merci beaucoup pour ton éclaircissement, c'est beaucoup plus clair maintenant.
 
Nouvelle petite question, beaucoup plus simple, actuellement au niveau de mes dossiers pour des projets web, j'ai :
 
index.php
/css
/js
/interface
/media
/views
/controllers
/models
 
Dans interface, je mets tout ce qui est lié uniquement au template en gros, et media tous les fichiers media contenus dans les pages.
Par contre dans js, j'ai du CSS (vu que parfois un module JS -genre un plugin mootools- est lié à une feuille CSS+des images), mais je préfère conserver tout au même endroit plutôt que de tout subdiviser dans les dossiers principaux, car c'est plus pratique ensuite au niveau gestion au quotidien (enfin il me semble)
 
Bref, comment organisez-vous vos dossiers pour que ce soit le plus clean possible et le plus cohérent ?
 
Merci d'avance  :jap:  :jap:

Message cité 1 fois
Message édité par Alekusu2 le 08-11-2009 à 21:47:17
n°1938933
gugus
Posté le 09-11-2009 à 12:07:06  profilanswer
 

Bonjour  [:darkspawn]  
 
Quelqu'un sait si y'a moyen d'utiliser le google document viewer en iframe avec un pdf de google docs?
 
Avec un pdf externe, pas de soucis, ça fonctionne, mais pas moyen de trouver comment faire avec un pdf enregistré dans google docs :sweat:


---------------
Site photo - FlickR - G+ - Fb
mood
Publicité
Posté le 09-11-2009 à 12:07:06  profilanswer
 

n°1938937
nraynaud
lol
Posté le 09-11-2009 à 12:36:54  profilanswer
 

gugus a écrit :

Bonjour  [:darkspawn]  
 
Quelqu'un sait si y'a moyen d'utiliser le google document viewer en iframe avec un pdf de google docs?
 
Avec un pdf externe, pas de soucis, ça fonctionne, mais pas moyen de trouver comment faire avec un pdf enregistré dans google docs :sweat:


du côté de la publication ?


---------------
trainoo.com, c'est fini
n°1938939
Alekusu2
Posté le 09-11-2009 à 12:43:15  profilanswer
 

gugus a écrit :

Bonjour  [:darkspawn]  
 
Quelqu'un sait si y'a moyen d'utiliser le google document viewer en iframe avec un pdf de google docs?
 
Avec un pdf externe, pas de soucis, ça fonctionne, mais pas moyen de trouver comment faire avec un pdf enregistré dans google docs :sweat:


 
<iframe src="http://docs.google.com/gview?url=ADRESSE_DE_TON_PDF&embedded=true" style="width:550px; height:500px;" frameborder="0"></iframe>  
 
voilà tu remplaces par l'adresse de ton PDF qui doit être à priori sur un autre serveur que celui de google docs.

n°1938940
erulio
Posté le 09-11-2009 à 12:44:37  profilanswer
 

Alekusu2 a écrit :

<iframe src="http://docs.google.com/gview?url=ADRESSE_DE_TON_PDF&embedded=true" style="width:550px; height:500px;" frameborder="0"></iframe>  
 
voilà tu remplaces par l'adresse de ton PDF qui doit être à priori sur un autre serveur que celui de google docs.


C'est justement la question.

n°1938942
Alekusu2
Posté le 09-11-2009 à 12:52:09  profilanswer
 

Fuck en effet j'avais raté une ligne :D

n°1938951
gugus
Posté le 09-11-2009 à 13:21:44  profilanswer
 

nraynaud a écrit :


du côté de la publication ?

non je crois que la publication c'est pour publier le contenu vers un blog ou autre, pas pour intégrer le viewer

 

en tout cas j'ai pas l'impression que ce soit possible, j'ai essayé divers truc sans succès j'vais regarder un peu mieux mais j'ai pas l'impression que ce soit possible, obligation d'avoir le fichier hébergé ailleurs, c'est un peu dommage mais bon

 

edit: y'a pas d'option publication pour les pdf en fait :p juste des options de partage


Message édité par gugus le 09-11-2009 à 13:24:20

---------------
Site photo - FlickR - G+ - Fb
n°1939003
theredled
● REC
Posté le 09-11-2009 à 14:50:58  profilanswer
 

Alekusu2 a écrit :


Merci beaucoup pour ton éclaircissement, c'est beaucoup plus clair maintenant.

 

Nouvelle petite question, beaucoup plus simple, actuellement au niveau de mes dossiers pour des projets web, j'ai :

 

index.php
/css
/js
/interface
/media
/views
/controllers
/models

 

Dans interface, je mets tout ce qui est lié uniquement au template en gros, et media tous les fichiers media contenus dans les pages.
Par contre dans js, j'ai du CSS (vu que parfois un module JS -genre un plugin mootools- est lié à une feuille CSS+des images), mais je préfère conserver tout au même endroit plutôt que de tout subdiviser dans les dossiers principaux, car c'est plus pratique ensuite au niveau gestion au quotidien (enfin il me semble)

 

Bref, comment organisez-vous vos dossiers pour que ce soit le plus clean possible et le plus cohérent ?

 

Merci d'avance  :jap:  :jap:


T'as quoi dans /views si tes templates sont dans /interface ?

 

Sinon le mieux (niveau sécu, notament) est de faire un dossier web/public/www, qui soit le seul accessible par http, et qui contient donc ton index.php et tes css/js/images/flash. Tous le reste (php inclus, exécutables, fichiers de config) étant un niveau au-dessus.

 

Genre :
/lib
/models
/controllers
/views
/web
  /index.php
  /js
  /css

Message cité 2 fois
Message édité par theredled le 09-11-2009 à 14:52:11

---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
n°1939009
Alekusu2
Posté le 09-11-2009 à 14:59:14  profilanswer
 

theredled a écrit :


T'as quoi dans /views si tes templates sont dans /interface ?
 
Sinon le mieux (niveau sécu, notament) est de faire un dossier web/public/www, qui soit le seul accessible par http, et qui contient donc ton index.php et tes css/js/images/flash. Tous le reste (php inclus, exécutables, fichiers de config) étant un niveau au-dessus.
 
Genre :
/lib
/models
/controllers
/views
/web
  /index.php
  /js
  /css


 
Dans interface, j'ai que les images de mes templates. (j'avais pas précisé)
Sinon très bonne idée de mettre au niveau au dessus, très logique en plus, merci beaucoup pour le tips !
 
Une fois de plus :  :jap:  :jap:

n°1939013
Proov
Art & Science
Posté le 09-11-2009 à 15:02:47  profilanswer
 

Dites, Chrome et Safari, c'est webkit, donc y'a pas lieu de tester avec les deux... si ?

n°1939018
masklinn
í dag viðrar vel til loftárása
Posté le 09-11-2009 à 15:05:07  profilanswer
 

Proov a écrit :

Dites, Chrome et Safari, c'est webkit, donc y'a pas lieu de tester avec les deux... si ?


Ils sont pas forkés de la même révision de webkit, et les moteurs javascript sont différents. Donc si :)


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1939049
Proov
Art & Science
Posté le 09-11-2009 à 15:46:20  profilanswer
 

C'est vrai que j'avais remarqué que Safari 4 est quand meme beaucoup plus lent que Chrome. :jap:  
 
Sinon une question qui me vient (aucun rapport), y'a une énorme différence avec les typo sur un ordi qui a le cleartype activé, et l'autre non... moi je me base sur le cleartype activé pour définir mes typo. IE 6 sur un Windows Xp sans le cleartype, c'est vraiment horrible le rendu...
 
Il me semble que maintenant tout le monde a le lissage des polices activés avec Vista et Seven, meme sous Linux, bon, sous Mac OS la question ne se pose meme pas car ils ont leur propre mode de rendu de la typo (plus proche du résultat imprimé).
 
Voici un petit récapitulatif, il faudrait que je me fasse une VM avec Vista et Seven pour tout comparer :o mais bon, la flemme là...
http://hfr-rehost.net/self/pic/060b2a3a3def116aaa4e2e6e75bb60fb72ba3fb1.pnghttp://hfr-rehost.net/self/pic/063700eafa455214ded4b27ee0b0f639957ab383.pnghttp://hfr-rehost.net/self/pic/42157b5fbc1e47044f49bbfb62cc1b70fe8c542c.pnghttp://hfr-rehost.net/self/pic/e52acb14726d68cdb8fb5fe6dc5152c362a1ded0.pnghttp://hfr-rehost.net/self/pic/4e1e1a188e453c1b3f2cde289640d3e9861dc9e6.png
 Chrome 4 OSX                         FF 3.5 OSX                         IE 6 WinXP SP3 + ClearType     IE 6 WinXP SP3                       FF3.5 WinXP SP3

Message cité 1 fois
Message édité par Proov le 09-11-2009 à 15:48:07
n°1939060
gugus
Posté le 09-11-2009 à 15:52:50  profilanswer
 

me semble que par défaut FF n'utilise pas le cleartype, même sous vista seven

 

perso, le cleartype avec IE je trouve ça juste immonde, ça fait rien d'autre que flouté la typo


Message édité par gugus le 09-11-2009 à 16:01:15

---------------
Site photo - FlickR - G+ - Fb
n°1939061
nraynaud
lol
Posté le 09-11-2009 à 15:52:59  profilanswer
 

Citation :

Array.prototype.splice (start, deleteCount [ , item1 [ , item2 [ , … ] ] ] )
When the splice method is called with two or more arguments start, deleteCount and (optionally)
item1, item2, etc., the deleteCount elements of the array starting at array index start are replaced by
the arguments item1, item2, etc. The following steps are taken:
1. Let A be a new array created as if by the expression new Array().
2. Call the [[Get]] method of this object with argument "length".
3. Call ToUint32(Result(2)).
4. Call ToInteger(start).
5. If Result(4) is negative, use max((Result(3)+Result(4)),0); else use min(Result(4),Result(3)).
6. Compute min(max(ToInteger(deleteCount),0),Result(3)–Result(5)).
7. Let k be 0.
8. If k equals Result(6), go to step 16.
9. Call ToString(Result(5)+k).
10. If this object has a property named by Result(9), go to step 11; but if this object has no property
named by Result(9), then go to step 14.
11. Call ToString(k).
12. Call the [[Get]] method of this object with argument Result(9).
13. Call the [[Put]] method of A with arguments Result(11) and Result(12).
14. Increment k by 1.
15. Go to step 8.
16. Call the [[Put]] method of A with arguments "length" and Result(6).
17. Compute the number of additional arguments item1, item2, etc.
18. If Result(17) is equal to Result(6), go to step 48.
19. If Result(17) is greater than Result(6), go to step 37.
20. Let k be Result(5).
21. If k is equal to (Result(3)–Result(6)), go to step 31.
22. Call ToString(k+Result(6)).
23. Call ToString(k+Result(17)).
24. If this object has a property named by Result(22), go to step 25; but if this object has no property
named by Result(22), then go to step 28.
25. Call the [[Get]] method of this object with argument Result(22).
26. Call the [[Put]] method of this object with arguments Result(23) and Result(25).
27. Go to step 29.
28. Call the [[Delete]] method of this object with argument Result(23).
29. Increase k by 1.
30. Go to step 21.
31. Let k be Result(3).
32. If k is equal to (Result(3)–Result(6)+Result(17)), go to step 48.
33. Call ToString(k–1).
34. Call the [[Delete]] method of this object with argument Result(33).
35. Decrease k by 1.
36. Go to step 32.
37. Let k be (Result(3)–Result(6)).
38. If k is equal to Result(5), go to step 48.
39. Call ToString(k+Result(6)–1).
40. Call ToString(k+Result(17)–1)
41. If this object has a property named by Result(39), go to step 42; but if this object has no property
named by Result(39), then go to step 45.
42. Call the [[Get]] method of this object with argument Result(39).
43. Call the [[Put]] method of this object with arguments Result(40) and Result(42).
44. Go to step 46.
45. Call the [[Delete]] method of this object with argument Result(40).
46. Decrease k by 1.
47. Go to step 38.
48. Let k be Result(5).
49. Get the next argument in the part of the argument list that starts with item1; if there are no more
arguments, go to step 53.
50. Call the [[Put]] method of this object with arguments ToString(k) and Result(49).
51. Increase k by 1.
52. Go to step 49.
53. Call the [[Put]] method of this object with arguments "length" and (Result(3)–
Result(6)+Result(17)).
54. Return A.
The length property of the splice method is 2.
NOTE
The splice function is intentionally generic; it does not require that its this value be an Array
object. Therefore it can be transferred to other kinds of objects for use as a method. Whether the
splice function can be applied successfully to a host object is implementation-dependent.


 
vous avez 5 min pour me dire si avec cette méthode, je peux ajouter un premier élément dans un tableau vide, pousser un élément avant le premier et pousser un élément après le dernier. [:manzana verde]


---------------
trainoo.com, c'est fini
n°1939070
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 09-11-2009 à 15:58:27  profilanswer
 

Proov a écrit :


Voici un petit récapitulatif, il faudrait que je me fasse une VM avec Vista et Seven pour tout comparer :o mais bon, la flemme là...


"tout types" [:clooney41]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°1939072
Proov
Art & Science
Posté le 09-11-2009 à 16:02:18  profilanswer
 

Taiche a écrit :


"tout types" [:clooney41]


 
c'est pas le texte définitif, c'est moi qui ait mis ça viteuf, mais faudra vérifier avant de rendre public le site :D  
 
merci qd mm [:ddr555]

n°1939073
masklinn
í dag viðrar vel til loftárása
Posté le 09-11-2009 à 16:02:35  profilanswer
 

nraynaud a écrit :

Citation :

Array.prototype.splice (start, deleteCount [ , item1 [ , item2 [ , … ] ] ] )
When the splice method is called with two or more arguments start, deleteCount and (optionally)
item1, item2, etc., the deleteCount elements of the array starting at array index start are replaced by
the arguments item1, item2, etc. The following steps are taken:
1. Let A be a new array created as if by the expression new Array().
2. Call the [[Get]] method of this object with argument "length".
3. Call ToUint32(Result(2)).
4. Call ToInteger(start).
5. If Result(4) is negative, use max((Result(3)+Result(4)),0); else use min(Result(4),Result(3)).
6. Compute min(max(ToInteger(deleteCount),0),Result(3)–Result(5)).
7. Let k be 0.
8. If k equals Result(6), go to step 16.
9. Call ToString(Result(5)+k).
10. If this object has a property named by Result(9), go to step 11; but if this object has no property
named by Result(9), then go to step 14.
11. Call ToString(k).
12. Call the [[Get]] method of this object with argument Result(9).
13. Call the [[Put]] method of A with arguments Result(11) and Result(12).
14. Increment k by 1.
15. Go to step 8.
16. Call the [[Put]] method of A with arguments "length" and Result(6).
17. Compute the number of additional arguments item1, item2, etc.
18. If Result(17) is equal to Result(6), go to step 48.
19. If Result(17) is greater than Result(6), go to step 37.
20. Let k be Result(5).
21. If k is equal to (Result(3)–Result(6)), go to step 31.
22. Call ToString(k+Result(6)).
23. Call ToString(k+Result(17)).
24. If this object has a property named by Result(22), go to step 25; but if this object has no property
named by Result(22), then go to step 28.
25. Call the [[Get]] method of this object with argument Result(22).
26. Call the [[Put]] method of this object with arguments Result(23) and Result(25).
27. Go to step 29.
28. Call the [[Delete]] method of this object with argument Result(23).
29. Increase k by 1.
30. Go to step 21.
31. Let k be Result(3).
32. If k is equal to (Result(3)–Result(6)+Result(17)), go to step 48.
33. Call ToString(k–1).
34. Call the [[Delete]] method of this object with argument Result(33).
35. Decrease k by 1.
36. Go to step 32.
37. Let k be (Result(3)–Result(6)).
38. If k is equal to Result(5), go to step 48.
39. Call ToString(k+Result(6)–1).
40. Call ToString(k+Result(17)–1)
41. If this object has a property named by Result(39), go to step 42; but if this object has no property
named by Result(39), then go to step 45.
42. Call the [[Get]] method of this object with argument Result(39).
43. Call the [[Put]] method of this object with arguments Result(40) and Result(42).
44. Go to step 46.
45. Call the [[Delete]] method of this object with argument Result(40).
46. Decrease k by 1.
47. Go to step 38.
48. Let k be Result(5).
49. Get the next argument in the part of the argument list that starts with item1; if there are no more
arguments, go to step 53.
50. Call the [[Put]] method of this object with arguments ToString(k) and Result(49).
51. Increase k by 1.
52. Go to step 49.
53. Call the [[Put]] method of this object with arguments "length" and (Result(3)–
Result(6)+Result(17)).
54. Return A.
The length property of the splice method is 2.
NOTE
The splice function is intentionally generic; it does not require that its this value be an Array
object. Therefore it can be transferred to other kinds of objects for use as a method. Whether the
splice function can be applied successfully to a host object is implementation-dependent.


 
vous avez 5 min pour me dire si avec cette méthode, je peux ajouter un premier élément dans un tableau vide, pousser un élément avant le premier et pousser un élément après le dernier. [:manzana verde]


Tu peux pas juste utiliser push avec tes 3 éléments [:pingouino dei]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1939075
0x90
Posté le 09-11-2009 à 16:14:22  profilanswer
 

nraynaud a écrit :

Citation :

Array.prototype.splice (start, deleteCount [ , item1 [ , item2 [ , … ] ] ] )
When the splice method is called with two or more arguments start, deleteCount and (optionally)
item1, item2, etc., the deleteCount elements of the array starting at array index start are replaced by
the arguments item1, item2, etc. The following steps are taken:
1. Let A be a new array created as if by the expression new Array().
2. Call the [[Get]] method of this object with argument "length".
3. Call ToUint32(Result(2)).
4. Call ToInteger(start).
5. If Result(4) is negative, use max((Result(3)+Result(4)),0); else use min(Result(4),Result(3)).
6. Compute min(max(ToInteger(deleteCount),0),Result(3)–Result(5)).
7. Let k be 0.
8. If k equals Result(6), go to step 16.
9. Call ToString(Result(5)+k).
10. If this object has a property named by Result(9), go to step 11; but if this object has no property
named by Result(9), then go to step 14.
11. Call ToString(k).
12. Call the [[Get]] method of this object with argument Result(9).
13. Call the [[Put]] method of A with arguments Result(11) and Result(12).
14. Increment k by 1.
15. Go to step 8.
16. Call the [[Put]] method of A with arguments "length" and Result(6).
17. Compute the number of additional arguments item1, item2, etc.
18. If Result(17) is equal to Result(6), go to step 48.
19. If Result(17) is greater than Result(6), go to step 37.
20. Let k be Result(5).
21. If k is equal to (Result(3)–Result(6)), go to step 31.
22. Call ToString(k+Result(6)).
23. Call ToString(k+Result(17)).
24. If this object has a property named by Result(22), go to step 25; but if this object has no property
named by Result(22), then go to step 28.
25. Call the [[Get]] method of this object with argument Result(22).
26. Call the [[Put]] method of this object with arguments Result(23) and Result(25).
27. Go to step 29.
28. Call the [[Delete]] method of this object with argument Result(23).
29. Increase k by 1.
30. Go to step 21.
31. Let k be Result(3).
32. If k is equal to (Result(3)–Result(6)+Result(17)), go to step 48.
33. Call ToString(k–1).
34. Call the [[Delete]] method of this object with argument Result(33).
35. Decrease k by 1.
36. Go to step 32.
37. Let k be (Result(3)–Result(6)).
38. If k is equal to Result(5), go to step 48.
39. Call ToString(k+Result(6)–1).
40. Call ToString(k+Result(17)–1)
41. If this object has a property named by Result(39), go to step 42; but if this object has no property
named by Result(39), then go to step 45.
42. Call the [[Get]] method of this object with argument Result(39).
43. Call the [[Put]] method of this object with arguments Result(40) and Result(42).
44. Go to step 46.
45. Call the [[Delete]] method of this object with argument Result(40).
46. Decrease k by 1.
47. Go to step 38.
48. Let k be Result(5).
49. Get the next argument in the part of the argument list that starts with item1; if there are no more
arguments, go to step 53.
50. Call the [[Put]] method of this object with arguments ToString(k) and Result(49).
51. Increase k by 1.
52. Go to step 49.
53. Call the [[Put]] method of this object with arguments "length" and (Result(3)–
Result(6)+Result(17)).
54. Return A.
The length property of the splice method is 2.
NOTE
The splice function is intentionally generic; it does not require that its this value be an Array
object. Therefore it can be transferred to other kinds of objects for use as a method. Whether the
splice function can be applied successfully to a host object is implementation-dependent.


 
vous avez 5 min pour me dire si avec cette méthode, je peux ajouter un premier élément dans un tableau vide, pousser un élément avant le premier et pousser un élément après le dernier. [:manzana verde]


 
arr.splice(0, 0, elem) pour les deux premiers cas.
arr.splice(arr.length, 0, elem) pour le dernier cas.


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1939076
nraynaud
lol
Posté le 09-11-2009 à 16:20:47  profilanswer
 

merci, en fait le bug c'était encore une histoire de this pas bindé, j'y capte rien à cette histoire de this [:pingouino]


---------------
trainoo.com, c'est fini
n°1939079
theredled
● REC
Posté le 09-11-2009 à 16:28:05  profilanswer
 

nraynaud a écrit :

merci, en fait le bug c'était encore une histoire de this pas bindé, j'y capte rien à cette histoire de this [:pingouino]


Bah il est jamais bindé quand ça change de scope, c'est tout [:moulti]
 
Corrigez-moi :o


---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
n°1939081
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 09-11-2009 à 16:32:08  profilanswer
 

Proov a écrit :


 
c'est pas le texte définitif, c'est moi qui ait mis ça viteuf, mais faudra vérifier avant de rendre public le site :D  
 
merci qd mm [:ddr555]


Si c'est pour du test, tu es pardonné [:clooney18]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°1939096
theredled
● REC
Posté le 09-11-2009 à 17:05:05  profilanswer
 

Tiens, une page toute grise sans rien dessus, sous IE 6 [:marc]


---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
n°1939103
Alekusu2
Posté le 09-11-2009 à 17:50:23  profilanswer
 

IE6...le jour où ce browser disparaitra totalement des stats, ce sera un soulagement pour tout le monde. Dire que certains groupes sont encore sous IE 5.5 :/

n°1939107
skeye
Posté le 09-11-2009 à 17:59:59  profilanswer
 

theredled a écrit :

Tiens, une page toute grise sans rien dessus, sous IE 6 [:marc]


Bienvenue en l'an 2000! [:dawak]


Message édité par skeye le 09-11-2009 à 18:00:05

---------------
Can't buy what I want because it's free -
n°1939123
Alekusu2
Posté le 09-11-2009 à 18:26:01  profilanswer
 

theredled > dans le contexte de l'archi MVC que tu m'as indiquée, tu mets où tes fonctions PHP perso et tu les includes à quel niveau ?

n°1939131
theredled
● REC
Posté le 09-11-2009 à 18:50:09  profilanswer
 

Alekusu2 a écrit :

theredled > dans le contexte de l'archi MVC que tu m'as indiquée, tu mets où tes fonctions PHP perso et tu les includes à quel niveau ?


Tu les mets dans dans /lib
 
Et tu inclus tout dans le front controler...


---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
n°1939253
Alekusu2
Posté le 10-11-2009 à 02:46:00  profilanswer
 

Oki, merci beaucoup !
Et tu les réparties de quelle manière ? Une fonction par fichier, toutes les fonctions dans le même fichier ou bien selon le type de fonctions (ex : formatage_texte.php) ?

n°1939299
theredled
● REC
Posté le 10-11-2009 à 10:09:16  profilanswer
 

Alekusu2 a écrit :

Oki, merci beaucoup !
Et tu les réparties de quelle manière ? Une fonction par fichier, toutes les fonctions dans le même fichier ou bien selon le type de fonctions (ex : formatage_texte.php) ?


J'écris très peu de fonctions [:djmb]
Mais à l'époque où j'en faisais, je classais par thème ouais, tu fais comme c'est le plus pratique quoi...
L'important c'est que ce classement soit cohérent et les noms de fonctions explicites, pour t'y retrouver facilement...


Message édité par theredled le 10-11-2009 à 10:10:07

---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
n°1939308
Alekusu2
Posté le 10-11-2009 à 10:17:14  profilanswer
 

Ok, merci chef !

n°1939349
theredled
● REC
Posté le 10-11-2009 à 11:27:38  profilanswer
 

>

Code :
  1. alert(console);


 
"console" n'étant pas défini, arrête l'exécution du script sur IE 7, sans péter d'erreur [:manust]
 
C'est quoi ce délire [:manust]


---------------
Contes de fées en yaourt --- --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique
n°1939351
gugus
Posté le 10-11-2009 à 11:32:52  profilanswer
 

theredled a écrit :

>

Code :
  1. alert(console);


 
"console" n'étant pas défini, arrête l'exécution du script sur IE 7, sans péter d'erreur [:manust]
 
C'est quoi ce délire [:manust]

IE7 [:clooney3]  
 
enfin celà dit tenter d'utiliser une variable non défini sans la tester avant, ça me parait un peu bourrin :o


---------------
Site photo - FlickR - G+ - Fb
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  863  864  865  ..  1454  1455  1456  1457  1458  1459

Aller à :
Ajouter une réponse
 

Sujets relatifs
blabla 3blabla 2
PUTAIN HARKO TU AS FERM2 BLABLA ![Beaucoup de blabla pour rien : post à effacer] Compiler .bat
variable1="blabla + variable2 +blala : c'est possible ??[PHP & regex] "blabla blabla file.ext?point=444 blabla" Recupérer 444
mail("celine@hotmail.com"," sujet","blabla"); pose une err ! Help[MySQL] WHERE 'blabla' compris dans le champ truc
[blabla@olympe] Le topic du modo, dieu de la fibre et du monde[PHP / BlaBla - limite]
Plus de sujets relatifs à : blabla@web


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)