GGmap element

Ajyamal

New Member
hi,

When we set geocoding , there might be hiden option in the form.
we can specify the geocode by entering the adress.
 

Attachments

  • hiden needed.png
    hiden needed.png
    45 KB · Views: 196
The problem with geocoding from an address is that google doesn't necessarily know the given address, producing unexpected positions; the map shows the user which position will be saved.

(It's the same with the geocoding cron plugin: I always have to check if there are some unknown locations which won't show up correctly in the visualization)
 
hi, troester

ah , I see your opinion.

r u pointing the country?
geocode is working correctly for me.
so it is alway pointing exactly place.

And my case, if it mistake to pointting. I dont care about it.
so, I wanted to hide this element on the form.

thank u always
 
hi not sure what you are asking?
which element did you want to hide and why?

thx
Rob
 
hi,

ok, look at my picture, u can see a map at the bottom on the Form. however if we enter some data(state,city,adress), we do not need to specify a point of map. because it's data make a point automatic. that is why. So, I thought the GGmap element might not show up on the Form, but only detail and list view.
 
Ah, OK. No, we don't support that behavior out-of-box.

However, you could probably achieve this with some custom JS, which hides the map element itself in form view.

So ... create a file in ./components/com_fabrik/js/XX.js, where XX is the numeric ID of yoru form (number in leftmost column on the main list of Forms on the backend). In that, try this:

Code:
window.addEvent('domready', function () {
    if (typeof(form_XX) === 'object')) {
       $('yourtable___yourmapelement').findClassUp('fabrikElementContainer').hide();
    }
});

Again, replace XX as per the filename. And replace yourtable___yourmapelement with the full element name of your map element. This code should hide your map as the form loads.

Assuming you have your geocode option on the map set to 'use elements', then this should still allow for auto-geocoding of addresses as you type them, and the map element should be updated with the coordinates.

-- hugh


-- hugh
 
hi, chee

yes, the map disappeared thank u.
and I am gonna use this show/hide

where can I put the toggle ?
Code:
var mySlide = new Fx.Slide('db_schedule___place');

$('toggle').addEvent('click', function(e){
 e = new Event(e);
 mySlide.toggle();
 e.stop(); 
)};

when u have time, thank u

appendix : also got an erorr.
 

Attachments

  • error_window_addEvent.png
    error_window_addEvent.png
    30.1 KB · Views: 193
hi, rob thanks??r u working in X's :) ?

yes, I wanted to apply to form and detail, and have show/hide by section. however there were normally no section name in the table.
I would need a anchor pointing as the button. therefore I am gonna try to use a button plugin as anchor.

[button](on/off)
Section1
-country
-state
-city

[button](on/off)
Section2
-phone
-mobile

Code:
var mySlide = new Fx.Slide('class_ids);
var mySlide = new Fx.Slide('class_ids);
var mySlide = new Fx.Slide('class_ids);
var mySlide = new Fx.Slide('class_ids);

$('button_id').addEvent('click', function(e){
 e = new Event(e);
 mySlide.toggle();
 e.stop(); 
)};
 
Code:
var mySlide = new Fx.Slide ('db_schedule___postal');
//var mySlide = new Fx.Slide ('db_schedule___state');
//var mySlide = new Fx.Slide ('db_schedule___city');

$('XXXXX').addEvent('click', function(e){
 e = new Event(e);
 mySlide.toggle();
 e.stop(); 
)};
I replaced XXXXX to button id or button name or placeholder, otherwise it does not work...
Whether or not the Fx was able to apply a function to <input > tag.
Would the XXXXX only apply the function to <div> tag ?
However the name of <div> tag was 'FabrickElement' at all. <li> tag was fabrikElementContainer.

So, How can I specify object?
 

Attachments

  • section.png
    section.png
    7.9 KB · Views: 166
  • section2.png
    section2.png
    29.6 KB · Views: 165
I added <div id= > to group.php
but does not work.....?deadlock now.
 

Attachments

  • added_div_id.png
    added_div_id.png
    309.1 KB · Views: 170
  • error.png
    error.png
    30.2 KB · Views: 177
Rob - my concern is the second image, where the condition seems to be missing from the FX eval. Which is code we generate.

Ajyamal - are you sure you have a condition selected in your 'load' JS on that element? i.e. ==, <=, etc.

-- hugh
 
Ajyamal - are you sure you have a condition selected in your 'load' JS on that element? i.e. ==, <=, etc.
-- hugh
I would not understand this part.
I was writing this script to a js file in a js folder, I have not use Fabrik console. i thoght Fab console was a JQuery sort of. Is this problem?

rob - I tryed to build a public sever, however it does not work now. I might send SQL file........ but not send.
so, I keep building it for a while.


thank u.
 
hi,

commercial server was almost secured sever, so I can not install the Fabrik , Fabrik would be a big component.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top