We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to pass the {exp:channel:entries} data into jquery ?

Development and Programming

Rahul gamit's avatar
Rahul gamit
24 posts
14 years ago
Rahul gamit's avatar Rahul gamit

Hi i am implementing Google map in my site and i want to pass longitude and longitude variable in jquery using expression engine . so do you know how can i do this ? this is my code

$(function() {
    
$("#map").gMap(
{ controls:["GSmallMapControl", "GMapTypeControl"],
scrollwheel:true,
{exp:channel:entries entry_id="129"}
{latitude},
{longitude},
{/exp:channel:entries}
                  zoom: 6 });
});

if i am writing {exp:channel:entries} tag than the jquery is not working .

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
14 years ago
Sean C. Smith's avatar Sean C. Smith

Not sure about the jquery, but have you tried using one of the following add-ons? I’ve used both successfully

http://devot-ee.com/add-ons/mx-google-map1

http://devot-ee.com/add-ons/google-maps

       
Rahul gamit's avatar
Rahul gamit
24 posts
14 years ago
Rahul gamit's avatar Rahul gamit

hey i did it using this following code

{exp:channel:entries channel="location"}
[removed]
$(function() {
    $("#map").gMap({ controls:["GSmallMapControl", "GMapTypeControl"],
                  scrollwheel: true,
                  latitude: {location_latitude},
                  longitude: {location_longitude},
                  zoom: 10 });
});
[removed]
{/exp:channel:entries}

thanks for your reply
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.