All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
  Print view

Load all fields in M:O relation
Author Message
PostPosted: Thu Dec 18, 2008 6:19 pm 
Offline

Joined: Wed Dec 03, 2008 7:10 pm
Posts: 23
Hi,

I have a M:O relation that has a specific descriptor (Street, Town, Postcode) which works great for searching, however, I want to be able to access some other fields (lat,lng) from Javascript. Is there any way to get a M:O relation to load all fields and store them in hidden inputs? I'm guessing this isn't trivial :(

One idea I had was to get the JS to use AJAX and call _something_ that would return the lat/lng but if it could access them directly from the form that would be so much better.

Cheers,

Matt

edit: also, while im at it - is there anyway of supressing fields from the descriptor if they are emtpy? Because if my client leaves the Street blank, say, it comes back as " POSTCODE" which doesnt look too good.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group