Google Chrome + type mismatch error?

5 posts / 0 new
Last post
faith_starr
faith_starr's picture
Offline
Last seen: 4 years 11 months ago
Joined: 24/03/2010 - 5:28am
Google Chrome + type mismatch error?
I'm on a different computer now, so I can't post screenshots or anything. But the shop front pasting doesn't work for me in Chrome (works fine in FF). I keep getting that type mismatch error... When I copy my shop front from Firefox, the items look like this: [Larger creatures love to play with bouncy balls. The smaller ones may be a little scared of them at first.] Blue Bouncy Ball 3 in stock Cost : 449 NP [Choo choo choo. Im a little toy train!] Toy Train 2 in stock Cost : 1,349 NP [This beautiful blue bike is excellent for young pets. Once pets learn to ride bikes they can travel faster around Neopia.] Blue Bike 2 in stock Cost : 999 NP And from Chrome like this: blue bouncy ball 3 in stock cost : 449 np toy train 2 in stock cost : 1,349 np blue bike 2 in stock cost : 999 np So, in Chrome the description is missing and the items are lowercase (they're like that because of my CSS.)
saudor
saudor's picture
Offline
Last seen: 3 hours 4 min ago
Joined: 10/06/2007 - 12:30pm
From the looks of it, it seems to use a similar rendering engine to that of Opera 10 and since Opera 10 is supported, it should work. Maybe it's the whole capital thing. I dont know and I havent had the chance to restore the neomallers development files since upgrading to windows 7. Been using most of my available time for other stuff :P ----------------------------- [color=purple]Contrary to popular belief, the Irish and I are not married[/color]
----------------------------- [color=purple]Protect your account[/color] http://www.neopets.com/~punchback_bob CG information & more
whispering_acara
whispering_acara's picture
Offline
Last seen: 5 years 3 weeks ago
Joined: 23/01/2010 - 12:56am
Yeap. the lowercase is what is causing the error. SPecifically, its only the 'np' part that causes the error. THe item name can be lower case, the description can be missing, but after the price, np must be capitalized, or it causes an error (screenie attached). It seems the process window is centerparent aligned, as well as set to topmost, so the messagebox cannot be seen. You barely have enough room to clock what is probably an 'ok' button, which closes down the portal. (In reference to the portal program) I am not sure how the string varibles are manipulated in the portal application, nor do I remember what language it was programmed in, but if its vb.net, then this error is easily solved by utilizing ToUpper method. What I do know for sure, is that anytime a line of code is comparing something to another, as far as strings go, the case is important and must match, which user input errors are resolved via ToUpper and ToLower. (In reference to OP and their shop) THe best thing you can do, for now, is to either remove the lowercase CSS, or use a program such as Word (Use Find, and replace all 'np ' with 'NP'). I'll verify the find/replace with MS WOrd when I get home, work computers do not have it. Removing the CSS is easiest. If I needed CSS code like that, my own solution would be to make a vb.net program that would take the pasted data and convert the lowercase 'np' to 'NP', but thats me :D [font=Courier New] -------------------------------------------------------------- Nubs [b] War [/b] Supply: http://www.neopets.com/browseshop.phtml?owner=whispering_acara&misc Profits from new plot so far: 2.45m [/font]
saudor
saudor's picture
Offline
Last seen: 3 hours 4 min ago
Joined: 10/06/2007 - 12:30pm
It's coded in the old VB6, hence why it runs so slow even on modern hardware. and yep I hard coded the NP to accept it as a capital (or non caps). Didnt think about converting everything to upper case haha. Should be simple enough (i think) if i can get the platform up and running. I'll try to look into it tommorrow in between the projects/midterms ----------------------------- [color=purple]Contrary to popular belief, the Irish and I are not married[/color]
----------------------------- [color=purple]Protect your account[/color] http://www.neopets.com/~punchback_bob CG information & more
faith_starr
faith_starr's picture
Offline
Last seen: 4 years 11 months ago
Joined: 24/03/2010 - 5:28am
Thanks, you guys are very helpful. I'll change my CSS to uppercase for now till this gets fixed :-)