ehrm.... how about:
if (svcBranch == 'VA') map.setCenter(new GLatLng( 37.7,-97.3), 5);
if (svcBranch == 'VA') map.setCenter(new GLatLng( 37.7,-97.3), 5);
if (svcBranch == 'FL') map.setCenter(new GLatLng( 37.7,-97.3), 3);
if (svcBranch == 'TX') map.setCenter(new GLatLng( 37.7,-97.3), 7);

when there's only one instrucvtion following the if, there no need to
encapsulate it inside the curly brackets.
And why are the if statements inside it's own bracketing?

Sietse Wijnker


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Virgil Bierschwale
> Sent: woensdag 20 december 2006 20:42
> To: [EMAIL PROTECTED]
> Subject: [NF] Any JavaScript Pro's out there 
> 
> This should be working, but its not..and to top it off,
> response.write('svcBranch') and response.end doesn't show me 
> that its getting there.
> 
> It also is the only changes I've made to code that was 
> working before so I'm sure this has to be the problem, but at 
> this point, who knows ? <grin>
> 
> 
> var svcBranch = new String( Request.Form("state") )      
>  
> {
>       if (svcBranch == 'VA')
>               {
>            map.setCenter(new GLatLng( 37.7,-97.3), 5);
>               }
>      
> {
>       if (svcBranch == 'FL')
>               {
>            map.setCenter(new GLatLng( 37.7,-97.3), 3);
>               }
> 
> 
> {
>       if (svcBranch == 'TX')
>               {
>            map.setCenter(new GLatLng( 37.7,-97.3), 7);
>               }
> 
> The code in operation is at http://www.virgilslist.com/branch.asp
> Click on navy, click on ff-1059 then select any state size 
> and I want it to change the zoom levels and center of state 
> which is what the above mentioned code does.
> 
> Thanks,
> 
> Virgil Bierschwale
> http://www.virgilslist.com
> http://www.tccutlery.com
> http://www.bierschwale.com
> http://www.bierschwalesolutions.com
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.15.25/593 - Release 
> Date: 12/19/2006
> 1:17 PM
>  
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to