To participate you will need to enter your login details:
Go Back   The Australian Frequent Flyer Online Community> > Community Resources > Playground
 
   

 


2 Minute Car Rental
product picture

Mice On A Plane

» Read Article

The Wilson's head for the City of Sails: QF BNE/AKL/SYD/BNE

» Read Report


Reply

Registered Users have the option of removing this and all other advertisements.  More

 
LinkBack Thread Tools Display Modes
  #2351 (permalink)  
Old 19th November 2008, 12:48 AM
anat0l's Avatar
Member
 
Join Date: Dec 2006
Location: Brisbane
Member of: QF SG, MH Blue, Velocity Red, AA None
Posts: 523
Re: The totally off-topic thread

Here's one for any programming geeks or freaks here. (I'm one too, but I can't work this one out.)

I use ba97.com to store my flight record online. I was editing stuff the other day and realised Fairchild Metroliner 23 is too big for the Aircraft field. So I tried abbreviating to F'child Metr 23.

The first time I tried this, it didn't work - I got an SQL error. Then, trying to be smart, I tried it again, except I used the Aircraft type as F\'child Metr 23. (I'd learned a few tricks having to deal with SQL in final year IT.)

This worked and it is reflected in my ba97 record. The only problem is that I can't edit anything in my flight record any more. It seems that the ' character is stuffing everything up. An examination of the Javascript error log shows this. I've tried to "intercept" the error using Firebug for Firefox, with no avail. I think the error effectively stuffs up some of the data structures (e.g. the document.forms[] is not initialised).

Using another browser does not get around the problem. Nor can I fiddle with the adding function to overwrite the faulty flight. I've tried some similar SQL tricks whilst trying to add a flight, with no success.

If I knew the .asp code (i.e. diary.asp) then that might be easy to do some deduction, esp. the SQL query code. But of course .asp files are processed server-side before delivery, so no joy to get the source code....

I've emailed the ba97.com admin; not sure if I'll ever get a response.

Anyone got any other ideas? (Apart from abandoning the old account, starting a new one, then reentering all the flights).
__________________
anat0l My Flight Memory | My ba97 | My FT Picture Albums

Airlines: QF SG / 16.21% LTS | AA Entry | MH Blue | DJ Red
Alliances: OW Sapphire
Hotels: HH Gold
| PC Club | SPG Entry
Reply With Quote
  #2352 (permalink)  
Old 19th November 2008, 07:12 AM
drron's Avatar
Established Member
 
Join Date: Jul 2002
Location: Sunshine Coast
Member of: QC life,AA Explat.,HH diamond,SPG plat,Iprefer
Posts: 1,122
Re: The totally off-topic thread

Ha! I've always said computers just do what they want to.
Reply With Quote
  #2353 (permalink)  
Old 19th November 2008, 09:52 AM
serfty's Avatar
Moderator
 
Join Date: Nov 2004
Member of: ¤QF WP[96-01,05-09] 103%LT SG ¤HHG
Posts: 8,620
SQL 101 -do not permit the use of characters such a '!

Is the problem with the one flight or your whole diary?

Can you delete the record?
__________________
utilities¤)
Reply With Quote
  #2354 (permalink)  
Old 19th November 2008, 10:06 AM
serfty's Avatar
Moderator
 
Join Date: Nov 2004
Member of: ¤QF WP[96-01,05-09] 103%LT SG ¤HHG
Posts: 8,620
Quote:
Originally Posted by anat0l View Post
... I use ba97.com to store my flight record online. I was editing stuff the other day and realised Fairchild Metroliner 23 is too big for the Aircraft field. So I tried abbreviating to F'child Metr 23. ...
Of course it's really obvious you should have simply entered SWM.

The Airline Codes Website
__________________
utilities¤)
Reply With Quote
  #2355 (permalink)  
Old 19th November 2008, 11:49 AM
oz_mark's Avatar
Senior Member
 
Join Date: Jun 2002
Location: Melbourne
Member of: QF FF, SQ KF, DJ Velocity, MH enrich
Posts: 6,826
Re: The totally off-topic thread

Quote:
Originally Posted by serfty View Post
SQL 101 -do not permit the use of characters such a '!
SQL does allow such characters when escaped properly (although on thedatabases I use it is a double apostrophe ''). But \ is also a Javascript escape code!
__________________
Air: QFF Gold
Hotel: PC Plat, Hyatt GP: Plat, HH: Silver
Car: Avis preferred
On the Road to LTS: 99.5%
Reply With Quote
  #2356 (permalink)  
Old 19th November 2008, 11:55 AM
serfty's Avatar
Moderator
 
Join Date: Nov 2004
Member of: ¤QF WP[96-01,05-09] 103%LT SG ¤HHG
Posts: 8,620
Re: The totally off-topic thread

Quote:
Originally Posted by oz_mark View Post
SQL does allow such characters when escaped properly (although on thedatabases I use it is a double apostrophe ''). But \ is also a Javascript escape code!
Yes, of course - but it can often lead to problems, some unforseen ...

Ban their use I say!
__________________
utilities¤)
Reply With Quote
  #2357 (permalink)  
Old 19th November 2008, 06:38 PM
anat0l's Avatar
Member
 
Join Date: Dec 2006
Location: Brisbane
Member of: QF SG, MH Blue, Velocity Red, AA None
Posts: 523
Re: The totally off-topic thread

Quote:
Originally Posted by serfty View Post
Yes, of course - but it can often lead to problems, some unforseen ...

Ban their use I say!
You wouldn't be very popular with someone named O'Brien. They always popped that one up on us in final year IT design project.

Anyway, the admins from ba97 got back to me and deleted the offending entry. So profile is back to its springy self with nary a loss. And apparently the ba97 people are looking into the issue.
__________________
anat0l My Flight Memory | My ba97 | My FT Picture Albums

Airlines: QF SG / 16.21% LTS | AA Entry | MH Blue | DJ Red
Alliances: OW Sapphire
Hotels: HH Gold
| PC Club | SPG Entry
Reply With Quote
  #2358 (permalink)  
Old 20th November 2008, 01:31 AM
straitman's Avatar
Established Member
 
Join Date: Apr 2003
Location: SE Oz
Member of: Qantas, UA
Posts: 4,843
Re: The totally off-topic thread

Lucky this issue has been resolved as it was starting to look like you guys had settled 'On a Topic' which of course would be inappropriate here
__________________
cheers,
Bill.

Oz Fest #6" - Cairns Queensland - Memorial Day Weekend, May 22-24, 2009
_______________________________
QFF Gold (OW Sapphire,) 65.21% toward Lifetime Silver, UA Nothing, HHonors Gold, PC Platinum, Hertz Gold No 1, Ansett -- nothing any more!
Reply With Quote
  #2359 (permalink)  
Old 20th November 2008, 06:22 AM
drron's Avatar
Established Member
 
Join Date: Jul 2002
Location: Sunshine Coast
Member of: QC life,AA Explat.,HH diamond,SPG plat,Iprefer
Posts: 1,122
Re: The totally off-topic thread

But I was feeling lost so possibly Off Topic?
Reply With Quote
  #2360 (permalink)  
Old 20th November 2008, 08:26 AM
straitman's Avatar
Established Member
 
Join Date: Apr 2003
Location: SE Oz
Member of: Qantas, UA
Posts: 4,843
Re: The totally off-topic thread

Quote:
Originally Posted by drron View Post
But I was feeling lost so possibly Off Topic?
There is a lot of that going around

__________________
cheers,
Bill.

Oz Fest #6" - Cairns Queensland - Memorial Day Weekend, May 22-24, 2009
_______________________________
QFF Gold (OW Sapphire,) 65.21% toward Lifetime Silver, UA Nothing, HHonors Gold, PC Platinum, Hertz Gold No 1, Ansett -- nothing any more!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
turtlemichael
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +11. The time now is 09:36 PM.


 
Powered by vBulletin Version 3.7.0. Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC4 ©2008, Crawlability, Inc.
Designed by
 
Copyright © 1998 - 2009, The Australian Frequent Flyer. All Rights Reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83