Conclusion: It can't be done.
Only workround is to look for "javascript" at the beginning of the
url, and either eval it, or use window.location, depending on the
result.
On Jun 25, 8:07 pm, Nikki Locke wrote:
> I am devising a test harness for a complex web application.
Conclusion - it can't be done.
Workround:
$("A").filter(function() {
return $(this).attr("href") == href);
});
On Jul 2, 12:14 pm, Nikki Locke wrote:
> I am writing a test harness for a web app using jquery. When recording
> a test, I add handl
Just to bring you up to date, turns out the problem wasn't the ajax
call not returning, it was in the code that processed the call, which
hung the browser!
The offending call was somthing like:
$("a[href='javascript:Submit('text')']")
On Jun 26, 11:45 am, Ni
I am writing a test harness for a web app using jquery. When recording
a test, I add handlers for user interaction events (e.g. click on an A
tag), and record details of the tag clicked. When playing back, I need
to find the tag (so I can emulate a click on it).
The A tags do not have id elements
Thanks for the help.
Turns out my problem is completely unrelated - some of the code I was
executing in response to the request was hanging the browser! So I
wasn't seeing any of my log output.
I'm starting a new thread on it, as it is to do with quoting inside
jquery selectors.
On 29 June, 04:
20:57, Nikki Locke wrote:
> I am building a web app that is controlled from a server. I want the
> server to send objects to the app, which the app then processes. I am
> using getScript for this, but it doesn't seem to be working for me.
> I have example code at //jsbin.com/umu
app :-(
Sorry for wasting bandwidth.
On 25 June, 20:57, Nikki Locke wrote:
> I am building a web app that is controlled from a server. I want the
> server to send objects to the app, which the app then processes. I am
> using getScript for this, but it doesn't seem to be working for
window.location=obj.attr("href").
Is it just not possible to fire clicks on A links so that the normal
browser behaviour is emulated?
Nikki Locke
quot;);
} else {
_jq_log("no action");
}
} catch(e) {
alert(e);
}
}
_jq_log is a function which merely outputs messages to the screen, so
I can see what is going on.
The request gets sent, but _jq_action is always null.
Nikki Locke
9 matches
Mail list logo