Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 13, 2007, 04:06 PM   #1
MacDonaldsd
macrumors 65816
 
MacDonaldsd's Avatar
 
Join Date: Sep 2005
Location: London , UK
Javascript help

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.
MacDonaldsd is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Quick JavaScript help? AWShuttleworth Web Design and Development 1 Nov 3, 2010 12:58 PM
More javascript help needed. Mike Teezie Web Design and Development 0 Feb 27, 2006 05:54 PM
CSS/Javascript help greatly needed Mike Teezie Web Design and Development (archive) 4 Jan 25, 2005 05:54 PM
JavaScript Help... TENBLUE7™ Mac Applications and Mac App Store 0 Jul 29, 2004 08:51 AM
javascript help needed mnkeybsness Web Design and Development (archive) 0 Mar 28, 2004 12:16 AM


All times are GMT -5. The time now is 07:01 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC