[jQuery] Re: Finding/selecting items identified by an attribute whose value contains quote characters

2009-07-07 Thread Nikki Locke
Conclusion - it can't be done. Workround: $(A).filter(function() { return $(this).attr(href) == href); }); On Jul 2, 12:14 pm, Nikki Locke ni...@trumphurst.com wrote: I am writing a test harness for a web app using jquery. When recording a test, I add handlers for user

[jQuery] Re: Remote control of web pages for use as a test harness - clicking A links from script

2009-07-07 Thread Nikki Locke
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 ni...@trumphurst.com wrote: I am devising a test harness for a complex web application

[jQuery] Re: getScript does not always work for me

2009-07-07 Thread Nikki Locke
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, Nikki Locke ni...@trumphurst.com wrote

[jQuery] Re: getScript does not always work for me

2009-07-02 Thread Nikki Locke
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,

[jQuery] Finding/selecting items identified by an attribute whose value contains quote characters

2009-07-02 Thread Nikki Locke
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

[jQuery] Re: getScript does not always work for me

2009-06-26 Thread Nikki Locke
, Nikki Locke ni...@trumphurst.com 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/umuwi

[jQuery] getScript does not always work for me

2009-06-25 Thread Nikki Locke
) { 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

[jQuery] Remote control of web pages for use as a test harness - clicking A links from script

2009-06-25 Thread Nikki Locke
). Is it just not possible to fire clicks on A links so that the normal browser behaviour is emulated? Nikki Locke