Are you using Firebug to see if any Javascript errors are preventing
the call from even ocurring?
Did you see the syntax error in your .js? $('address_text) should be $
('address_text')
On Mar 21, 2:17 pm, vishy wrote:
> Anyone??
--
You received this message because you are subscribed to the G
Anyone??
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more option
Also the JS code in my application.js is :
$('searchbutton').live('click', function() {
var address = $('address_text).val();
geocoder = new google.maps.geocoder();
geocoder.geocode(request:address,callback:function(results,status) {
var lat = results[0].geometry.location.lat().toString(
Oops hit the send button too quickly.
Here is the actual result.html.erb code
<% @restaurants.each do |restaurant| %>
<%= render 'search_result', :restaurant => restaurant%>
<%= link_to 'Order Now', {:controller => "search", :action =>
"create_order", :id => restaurant},
:
here is the view code in the result.html.erb
<% restaurants.each do |restaurant| %>
<%= render 'search_result', :restaurant => restaurant%>
<%= link_to 'Order Now', {:controller => "search", :action =>
"create_order", :id => restaurant},
:c
Your view code would be helpful to see.
On Mar 21, 5:48 am, vishy wrote:
> Hi all,
>
> I am using the google maps API to perform some geolocation on the
> client side. I am able to geocode my users address without any issues.
> However after doing this on the front end I would like to goto my
>
6 matches
Mail list logo