Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacDonaldsd

macrumors 65816
Original poster
Sep 8, 2005
1,005
0
London , UK
document.open()
Pos= document.cookie.indexOf("Order")
totalString = document.cookie.substring(Pos+16,Pos+0)
Pos= document.cookie.indexOf("Credit")
OrderedString = document.cookie.substring(Pos+36,Pos+0) document.writeln(totalString)

document.writeln(OrderedString)

document.close()


This bit of code works but the "Order" part is of variable length, is there anyway I can stop it printing when it reaches a blank space to overcome this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.