• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

show table by country

New Here ,
Jan 10, 2007 Jan 10, 2007

Copy link to clipboard

Copied

Hi i have a table which i only want to show if users are in australia

can i do something like this maybe uing ip address?

<cfif (user is in australia)>show table One<cfelse>show table Two</cfif>
TOPICS
Advanced techniques

Views

317

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 10, 2007 Jan 10, 2007

Copy link to clipboard

Copied

RyanG24 wrote:
> Hi i have a table which i only want to show if users are in australia
>
> can i do something like this maybe uing ip address?

see if this helps:

http://www.sustainableGIS.com/projects/geoLocator/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 10, 2007 Jan 10, 2007

Copy link to clipboard

Copied

Thanks, i have uploaded the cfc but cant get it to display

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 10, 2007 Jan 10, 2007

Copy link to clipboard

Copied

RyanG24 wrote:
> Thanks, i have uploaded the cfc but cant get it to display
>
> http://www.thesmsengine.com/local.cfm
>
> also how would i code it something like this?
>
> <cfif #thisCountry# is 'Australia'>show table One<cfelse>show table Two</cfif>

looks like you didn't put the inet jar on your cf classpath. try copying it to:
/cfusionMX/wwwroot/web-inf/lib (standalone cf install). might need to stop,
re-start the cf server service.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 11, 2007 Jan 11, 2007

Copy link to clipboard

Copied

Hi i havnt got access to this directory as its a hosted server,

can i not somehow put it in my root folder?

also i will use <cfif thisC is 'Australia'>show table one pricing<cfelse>show table two pricing</cfif>

what i would like is table two has pricing in GBP can i use some sort of local to change the currency for differnet users in different countries?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 11, 2007 Jan 11, 2007

Copy link to clipboard

Copied

RyanG24 wrote:
> Hi i havnt got access to this directory as its a hosted server,
>
> can i not somehow put it in my root folder?

use mark mandel's javaLoader CFC or the remote classpath method outlined in that
zip, where you'll also find example code. as long as you can use createObject
you should be good to go.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 14, 2007 Jan 14, 2007

Copy link to clipboard

Copied

hi yes but not sure how to do it, there is a link in the zip file

http://www.spike.org.uk/blog/index.cfm?data=20040603#EBB52433-D565-E33F-353D2664926C59B5

which does not show any instructions

how do you use the remote classpath?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 14, 2007 Jan 14, 2007

Copy link to clipboard

Copied

RyanG24 wrote:
> how do you use the remote classpath?

same as you would the regular one just use the CFC named
remoteclasspath_geoLocator instead. it's all in the zip file.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 14, 2007 Jan 14, 2007

Copy link to clipboard

Copied

LATEST
HI i have tried that but get this error, any ideas what i need to do?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation