On Tue, 22 Mar 2005 15:58:30 +0000, Jim Higson
<jh(a)333.org> wrote:
Actually, where is the token on the edit page?
This sounds like a silly question, but I've just saved the HTML of an
edit page and greped for 'token' without any hits!
According to the DOM inspector form#editform fields are:
"wpTextbox1"
"wpSummary"
"wpSave"
"wpSection"
"wpEdittime"
Is the edit time used as the token?
I believe wpEditToken was added in 1.4. wpEdittime is easily
calculable if you know the server time. (Well, it *is* the server
time.) Perhaps you could load a page with the server time on it when
the client opens, then keep track. One second out won't hurt.
I'm pretty sure I can get server time from the http headers when I check the
raw text out. I'll just calculate the offset from that with the local
machine (a second eitherway won't hurt)
--
Jim