2amigos / egmap

Objet-oriented PHP abstraction to the Google Maps API to ease the process of adding a Google Map on your Yii projects.
14 stars 12 forks source link

EGMap inside form element (CActiveForm) breaks yiiactiveform js #9

Closed Jaredmmx closed 10 years ago

Jaredmmx commented 10 years ago

I placed an EGMap inside a CActiveForm with ClientValidation and AjaxValidation, but when the page loads console says 'Uncaught TypeError: undefined is not a function ' in the line where yiiactiveform is assigned the form id and the validation rules.

with Firefox, error is 'TypeError: jQuery(...).yiiactiveform is not a function'

If I remove the EGMAP (v.2, just dowloaded form github by the way), form is working properly.

jquery.yiiactiveform.js is loaded, anyway. It just doesn't work

tonydspaniard commented 10 years ago

Thats very strange... mind sharing some code @Jaredmmx ?

Jaredmmx commented 10 years ago

Yes it was an strange behaviour, but I finallly realized it wasn't because of EGMap, but because of a renderPartial that broke everything only when EGMap was in the form (I made a plugin to use de EGMap).

Thank you anyway for your interest, your doubts made me test further.

Great job!.

2014-04-19 18:17 GMT+01:00 Antonio Ramirez notifications@github.com:

Thats very strange... mind sharing some code @Jaredmmxhttps://github.com/Jaredmmx?

— Reply to this email directly or view it on GitHubhttps://github.com/2amigos/egmap/issues/9#issuecomment-40875051 .

tonydspaniard commented 10 years ago

@Jaredmmx good to know!