noobie question

Discussion in 'Javascript' started by mailtralala@o2.pl, Aug 9, 2006.

  1. Guest

    hello, i have such problem

    function show_countrymap(parameter)
    {
    map.setCenter(new GLatLng(0.0, 0.0), 12);
    }

    this is working, but in parameter i have for example "(22.22, 22.22)"
    (without " " of course) and i want to use this parameter instead of
    "(0.0, 0.0)", how to do it ?

    thanks in advance


    ps. sory for my poor english
     
    , Aug 9, 2006
    #1
    1. Advertising

  2. Randy Webb Guest

    said the following on 8/9/2006 9:01 AM:
    > hello, i have such problem
    >
    > function show_countrymap(parameter)
    > {
    > map.setCenter(new GLatLng(0.0, 0.0), 12);
    > }
    >
    > this is working, but in parameter i have for example "(22.22, 22.22)"
    > (without " " of course) and i want to use this parameter instead of
    > "(0.0, 0.0)", how to do it ?
    >
    > thanks in advance


    map.setCenter(new GLatLng(parameter),12);

    show_countrymap('22.22,22.22')

    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
     
    Randy Webb, Aug 9, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. lallous

    Noobie question about Switch

    lallous, Dec 26, 2003, in forum: C++
    Replies:
    6
    Views:
    338
    Chris Mantoulidis
    Dec 27, 2003
  2. Replies:
    0
    Views:
    339
  3. Shaun
    Replies:
    2
    Views:
    560
    Simon Brunning
    Apr 22, 2005
  4. ProvoWallis

    noobie mkdir problem/question

    ProvoWallis, Mar 25, 2006, in forum: Python
    Replies:
    5
    Views:
    323
    Dennis Lee Bieber
    Mar 26, 2006
  5. Bit Byte
    Replies:
    1
    Views:
    854
    Teemu Keiski
    Jan 28, 2007
Loading...

Share This Page