edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Kevin Carhart <kevin@carhart.net>
Cc: Edbrowse Development <Edbrowse-dev@lists.the-brannons.com>
Subject: Re: [Edbrowse-dev] Login failure with 3.5.1
Date: Sun, 22 Jun 2014 17:30:59 +0100	[thread overview]
Message-ID: <20140622163059.GQ5577@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <alpine.LRH.2.03.1406201155360.16273@carhart.net>

[-- Attachment #1: Type: text/plain, Size: 2121 bytes --]

On Fri, Jun 20, 2014 at 12:49:24PM -0700, Kevin Carhart wrote:
> 
> hi Chuck,
> 
> I think this syntax:
> >javascript:__doPostBack('ctl00$ctl13$LoginButton','')
> 
> is a microsoft aspx trying to do ajax.  I don't know what to do, but I'm
> interested in figuring it out and am (still) working on it.

Yeah, I've run into it a few times.

> I had an idea for how to support pages with ajax.  I wonder what Karl, Chris
> & Adam think of this?   I'm interested in bringing in information from the
> javascript debugger that is available as part of spidermonkey.  jsdbgapi.c
> is like the JSAPI only with ways of addressing stack frames - I think?
> 
> So I think if you are running Chuck's site and stepping through moments in
> time, you would eventually hit a stack frame that contained all the
> parameters to doPostback, all assembled and ready to go (hopefully).  A
> 'step' command would work neatly with the CLI. If a full URL is sitting
> there in memory just for one step's worth of time before being sent to an
> ajax routine as a parameter, we could grab it, browse it and work with the
> output.  So we don't have to "support ajax" if we can deconstruct ajax and
> do what the ajax would do, but turn-based and CLI rather than constant,
> chatty network activity for little bits, and with a graphical bias.  What do
> you think?

I suspect if you're a js expert it'd be possible,
however it'd be difficult at best due to the way ajax js is usually constructed.
In addition, I've never seen the debugger in the new js version (that's not to
say it's not there), and my general instinct is not to rely on things like this.
At the end of the day if someone told me I had to debug all the js to get the
ajax parameters, then enter them manually and then hope it works,
I'd probably tell them no thanks.

However, I like the idea of finding a CLI-friendly way to do ajax.
I think something like the edbrowse timer behavior may be a possible approach.
First of all we need code to allow js to do http, and then we can construct the ajax machinary around this.

Cheers,
Adam.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-06-22 16:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20 11:25 Charles Hallenbeck
2014-06-20 19:49 ` Kevin Carhart
2014-06-22 16:30   ` Adam Thompson [this message]
2014-06-22 23:42 ` Kevin Carhart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140622163059.GQ5577@toaster.adamthompson.me.uk \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=kevin@carhart.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).