Advertisement
Guest User

Untitled

a guest
Feb 6th, 2013
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. Dans la console de chrome, je retrouve 3 erreurs :
  2. 1) Uncaught ReferenceError: $ is not defined localhost:247
  3. 2) Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'widget' jquery.ui.addresspicker.js:17
  4. 3) Uncaught TypeError: Object #<Object> has no method 'Load' main.js:42
  5.  
  6. qui correspondent à :
  7. 1) <script type="text/javascript">
  8. $(function() {
  9. ----------------- AFFICHAGE DE L'ERREUR ICI : Uncaught ReferenceError: $ is not defined ------------------
  10. var addresspickerMap = $("#dp_prodbundle_producteurtype_address_address").addresspicker({
  11. regionBias: "fr",
  12. elements: {
  13. map: "#dp_prodbundle_producteurtype_address_map",
  14. locality: '#dp_prodbundle_producteurtype_address_locality',
  15. country: '#dp_prodbundle_producteurtype_address_country',
  16. lat: "#dp_prodbundle_producteurtype_address_lat",
  17. lng: "#dp_prodbundle_producteurtype_address_lng"
  18. }
  19. });
  20.  
  21.  
  22. 2)(function( $, undefined ) {
  23.  
  24. $.widget( "ui.addresspicker", {
  25. --------------------Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method --'widget'
  26. options: {
  27. appendAddressString: "",
  28. draggableMarker: true,
  29. regionBias: null,
  30. mapOptions: {
  31. zoom: 5,
  32. center: new google.maps.LatLng(46, 2),
  33. scrollwheel: false,
  34. mapTypeId: google.maps.MapTypeId.ROADMAP
  35. },
  36. .........
  37. 3) StreetViewStatus:{OK:Uc,UNKNOWN_ERROR:Xc,ZERO_RESULTS:Yc},StyledMapType:Rh,TrafficLayer:sg,TransitLayer:tg,TravelMode:sd,UnitSystem:rd});function Th(a){this.setOptions(a)}N(Th,W);Qa(Th[I],function(){S(Se,Zc())});function Uh(){this.b=new Pf}N(Uh,W);ra(Uh[I],function(){var a=this[Pb]();this.b[rb](function(b){b[Jc](a)})});Sf(Uh[I],{map:ye(eg)});var Vh;var Wh,Xh;function Yh(a){this.b=a}function Zh(a,b,c){for(var d=ga(b[G]),e=0,f=b[G];e<f;++e)d[e]=b[Hc](e);d.unshift(c);a=a.b;c=b=0;for(e=d[G];c<e;++c)b*=1729,b+=d[c],b%=a;return b};var $h=/'/g,ai;tf.main=function(a){eval(a)};wf("main",{});function bi(a){return P(n,eval,"window."+a+"()")}
  38. n.google.maps.Load(function(a,b){var c=n.google.maps,d;for(d in Object[I])n[Wb]&&n[Wb].log("Warning: This site adds property <"+d+"> to Object.prototype. Extending Object.prototype breaks JavaScript for..in loops, which are used heavily in Google Maps API v3.");"version"in c&&n[Wb]&&n[Wb].log("Warning: you have included the Google Maps API multiple times on this page. This may cause unexpected errors.");Rg=new Eg(a);d=Rg.b[5];if(p[Sb]()<(d!=l?d:1))qh=k;sh=new ph(b);rh(sh,"jl");Vh=0.01>p[Sb]();var e;
  39. ---------------------------- Uncaught TypeError: Object #<Object> has no method 'Load' --------------------
  40. d=Rg.b[4];d=(d?new Dg(d):Wg).b[0];e=d!=l?d:0;var f=new Yh(131071),g=unescape("%26%74%6F%6B%65%6E%3D");lg=function(a){a=a[db]($h,"%27");var b=a+g;ai||(ai=/(?:https?:\/\/[^/]+)?(.*)/);a=ai[ab](a);return b+Zh(f,a&&a[1],e)};var h=new Yh(2147483647);mg=function(a){return Zh(h,a,0)};Wh=new Wf;Xh=b;d=(d=Rg.b[3])?new Cg(d):Vg;var j=d.b[0];Wd(rf).Ob(j!=l?j:"",Ze);Id(Sh,function(a,b){c[a]=b});d=d.b[1];na(c,d!=l?d:"");n[Hb](function(){xf(["util",We],function(a){a.d.b()})},5E3);R.Rj();d=Rg.b[11];if(d=d!=l?d:
  41. "")j=hd(Rg.b,12),xf(j,bi(d),k)});var ci=new od;
  42. }).call(this)
  43.  
  44. Bonjour Soullivaneuh, tout d'abord, je tiens à te remercier sur le temps que tu passe avec moi pour resoudre mon soucis.
  45.  
  46. Je ne sais pas si t'avais vu, mais dans ton exemple, tu fais :
  47. Intégration dans un formulaire
  48. // src/My/MainBundle/Form/Type/PlaceType.php
  49. namespace My\MainBundle\Form\Type;
  50.  
  51. use Symfony\Component\Form\FormBuilderInterface;
  52.  
  53. class PlaceType extends AbstractType
  54. {
  55. public function buildForm(FormBuilderInterface $builder, array $options)
  56. {
  57. $builder->add('address', 'gmap_address', array(
  58. 'data_class' => 'My\MainBundle\Entity\Place',
  59. ));
  60. }
  61. }
  62.  
  63. et moi, je l'ai intégré directement dans mon form producteur !! n'est ce pas là mon soucis ??
  64. Sinon, je t'ai mis les 3 erreurs que trouve chrome sur le javascript. Pour une meilleur visualisation, je te les ai entourées de ---------------------------------
  65.  
  66. Merci encore une fois pour ton aide et bon début de journée ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement