SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Glocalsearch

  1. #1
    SitePoint Zealot
    Join Date
    Aug 2006
    Location
    Newcastle, England
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Glocalsearch

    Hi,

    I'm messing around with google maps API and I'm trying to call GlocalSearch from within my own object. Is this possible?

    Code JavaScript:
    fp = {
           .... variables, methods etc....
     
           	getPointFromPostcode : function()
    	{
    		var localSearch = new GlocalSearch();
                 ...........
                 }
    }

    Above is the basic principle, it works fine outside an object but within an object I get the error:

    GlocalSearch is not defined

    I'm pretty sure its because I'm trying to access the API out of my own object. Is their a way I can access the API class from within an object?

    Any ideas......anyone?

    Ta

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2006
    Location
    Newcastle, England
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorted now.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •