nBill Community
29/August/2008, 08:12:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Javascript error for 'GBP'  (Read 147 times)
dynorodney
Newbie
*
Offline Offline

Posts: 13


View Profile
« on: 23/July/2008, 09:24:50 AM »

[ SORRY - AFTER SPENDING AGES TRYING TO TRACK DOWN THE PROBLEM, GIVING UP AND FILING THIS, I THINK I'VE SPOTTED THE PROBLEM ON THE IMPORT FILE - MY PROBLEM ]

Hi

Ive bought a licence for nBill but am not yet using it live. When I go to the invoices section I get a javascript error which then (i think) stops the rest of the javascript from working so none of the lookup SKU code etc works either.  I'm using the latest version 1.2.1 on Joomla 1.5.3

When creating / editing an invoice, FireBug reports the line as

"missing ) after condition"

for(var i = 0; i <= currencies.options.length; i++)
 { if (currencies.options != null && currencies.options.value == ''GB') { currencies.selectedIndex = i; break; } }

As you can see the generated javascript has got a ''GB' rather than i assume a 'GBP' so the extra quote is confusing things (its 2 single quotes at the start not 1 double quote) - whether its getting the first 3 letters of 'GBP' and picking up the first extra quote I dont know but Ive checked the currency  file (and done a view-source to make sure that it shows GBP and not 'GBP and that seems ok so I dont know where else to check ?

Thanks in advance

Tony
« Last Edit: 23/July/2008, 09:29:43 AM by dynorodney » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!