Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Number format errors in a custom google fusion tables infowindow
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mwcog  
View profile  
 More options Feb 23 2012, 9:12 am
From: mwcog <amayn...@mwcog.org>
Date: Thu, 23 Feb 2012 06:12:03 -0800 (PST)
Local: Thurs, Feb 23 2012 9:12 am
Subject: Number format errors in a custom google fusion tables infowindow

Thanks in advance. So i have a custom tabbed infowindow that opens using a
addlistener event. The tabs work correctly (images, text, links) but my
number values displayed are strange, for example my cost (in fusion tables)
is 10.00 but in the info window it appears as 10.00000000. How to I round
this to 2 significant figures?

I've tried:

   1. setting the format in google fusion tables.
   2. using javascript, for example
   Math.round(((e.row['Cost'].value)*100)/100). Interestingly, this just
   removes all decimal places and produces 10.

Here's a portion of my code, does it look incorrect.

google.maps.event.addListener(layer, 'click', function(e) {
if(infowindow) infowindow.close();
else infowindow = new google.maps.InfoWindow();
    infowindow.setContent(
    '<div class="tabs">' +
'<ul>' +
'<li><a href="#tab-1"><span>tab 1</span></a></li>' +
'<li><a href="#tab-2"><span>tab 2</span></a></li>' +
'</ul>' +
'<div id="tab-1">' +

 '<b><div class="infowindow_row">Cost:</b> ' + e.row['Cost'].value + '</div>' +    
 .........................

The testing site is anacostia.net/maps/tabtest.php <http://www.anacostia.net/maps/tabtest.php>.
   Thanks for any help you can give me.  Another thing to note is that
its using a merged table, but i also made sure the parent table columns
were set to show two decimal places.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob McCausland  
View profile  
 More options Feb 23 2012, 9:17 am
From: Rob McCausland <rgh...@gmail.com>
Date: Thu, 23 Feb 2012 09:17:45 -0500
Local: Thurs, Feb 23 2012 9:17 am
Subject: Re: [FT] Number format errors in a custom google fusion tables infowindow

I just recently noticed a similar problem.  A whole number I'm displaying
in my Info Window (area TV households) is showing up with a decimal
followed by 2 digits (zeros).  Other numbers I'm displaying in other
tables' Info windows are fine.  In the FT web app interface for modifying
columns, there is no option to choose/deselect decimals and decimal places.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kathryn from Fusion Tables Team  
View profile  
 More options Feb 24 2012, 2:51 pm
From: Kathryn from Fusion Tables Team <googletables-feedback+kath...@google.com>
Date: Fri, 24 Feb 2012 11:51:01 -0800
Local: Fri, Feb 24 2012 2:51 pm
Subject: Re: [FT] Number format errors in a custom google fusion tables infowindow

Hi Rob,

Can you share a link to your table? I'm not able to reproduce this issue
with any of my tables.

Thanks!

Kathryn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob McCausland  
View profile  
 More options Feb 24 2012, 4:56 pm
From: Rob McCausland <rgh...@gmail.com>
Date: Fri, 24 Feb 2012 16:56:15 -0500
Local: Fri, Feb 24 2012 4:56 pm
Subject: Re: [FT] Number format errors in a custom google fusion tables infowindow

I see they are formatted  that way in the table.  will reupload this
weekend.  will let you know if the problem persists.  thanks!
On Feb 24, 2012 2:51 PM, "Kathryn from Fusion Tables Team" <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob McCausland  
View profile  
 More options Feb 24 2012, 4:59 pm
From: Rob McCausland <rgh...@gmail.com>
Date: Fri, 24 Feb 2012 16:59:24 -0500
Local: Fri, Feb 24 2012 4:59 pm
Subject: Re: [FT] Number format errors in a custom google fusion tables infowindow

I see that they are formatted that way in the table.  perhaps my error.  I
have to reupload this weekend.  will let you know if the problem persists
or not.  Thanks!
On Feb 24, 2012 4:56 PM, "Rob McCausland" <rgh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »