On 14/06/2012 18:59 PM, Kuhns, John wrote:
Yes, 2.3 and click-jquery using taconite to update multiple targets. Unless I'm
mistaken, you're the owner of that code, although it may be abandoned.
Yeah, initially I wanted an API that hid the Javascript. Over time I've changed my mind and decided
I quite like JavaScript (especially using jQuery), for enhancing a web page functionality. Hence I
ended up with this project:
http://code.google.com/a/apache-extras.org/p/ajax4click/
Kind regards
Bob
I have a series of drill-down select boxes that are all related to each other
in one way or another and a table that I want to replace when some of the
selects are changed. Originally I had everything setup using full page
refreshes, couldn't figure out a good way around it without writing tons of
code until I stumbled on http://code.google.com/p/click-jquery/. I had
everything working great in Chrome, went to test in IE and it blew up.
Otherwise it seems to work fine, now that I have a workaround for this issue
I'll continue developing/testing.
-----Original Message-----
From: Bob Schellink [mailto:[email protected]]
Sent: Thursday, June 14, 2012 12:36 PM
To: [email protected]
Subject: Re: jQuery-Click IE9 Parsing request failed
I think the example you refer to is using an older version of Click, perhaps
2.2.0? I somehow recall that issue was fixed in Click 2.3.0 but I could be
wrong.
Are you seeing the issue with 2.3.0?
regards
Bob
On 14/06/2012 17:56 PM, Kuhns, John wrote:
Figured it out. The& in the column headers was causing msxml to choke. I
wrapped the table HTML in CDATA tags and all seems to be working. Below is the
essence of the steps I took:
...
someSelect.addBehavior(new JQBehavior(JQEvent.CHANGE) {
@Override
public ActionResult onAction(Control source, JQEvent event) {
return updateSomeSelect();
}
});
...
private ActionResult updateSomeSelect() {
JQTaconite actionResult = new JQTaconite();
table.onProcess();
StringBuilder sb = new StringBuilder();
sb.append("<![CDATA[");
sb.append(table.toString());
sb.append("]]>");
// get rid of the pagebanner and links, if there
actionResult.remove(".pagebanner");
actionResult.remove(".pagelinks");
// replace the table, the pagebanner and links will be included if
configured
actionResult.replace(table, sb.toString());
return actionResult;
}
Thanks,
John
-----Original Message-----
From: Kuhns, John [mailto:[email protected]]
Sent: Thursday, June 14, 2012 11:30 AM
To: [email protected]
Subject: RE: jQuery-Click IE9 Parsing request failed
Actually, no, this is the example:
http://click-jquery.appspot.com/ajax/table-demo.htm
I need the jQuery-Click, I want to populate the table via Ajax on a select
change, then be able to sort and page with Ajax, too. I've tried a few things
with no luck so far, I'll keep trying.
Thanks,
John
-----Original Message-----
From: Kuhns, John [mailto:[email protected]]
Sent: Thursday, June 14, 2012 10:58 AM
To: [email protected]
Subject: RE: jQuery-Click IE9 Parsing request failed
Hmmm, it works for me too. As I paged through the table yesterday it was
throwing up the same parseerror message and then paging. I'll research it more
and see if I can find the real problem.
-----Original Message-----
From: Bob Schellink [mailto:[email protected]]
Sent: Thursday, June 14, 2012 10:39 AM
To: [email protected]
Subject: Re: jQuery-Click IE9 Parsing request failed
You mean this example?
http://click.avoka.com/click-examples/ajax/table/table-ajax.htm
Works for me in IE9 though?
regards
Bob
On 14/06/2012 15:51 PM, Kuhns, John wrote:
Right, a click table, and I'm in standards mode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Quirks mode isn't an option. Interestingly enough, the same error occurs on the
example page in IE9, but the action completes afterwards.
Thanks,
John
-----Original Message-----
From: Bob Schellink [mailto:[email protected]]
Sent: Thursday, June 14, 2012 8:37 AM
To: [email protected]
Subject: Re: jQuery-Click IE9 Parsing request failed
Hi John,
Attachments are stripped from these lists. Is it a Click table you are
returning and rendering or your own HTML table?
I recall tables has to have a tbody element. Also check if you are rendering in
standards mode or quirks mode.
regards
Bob
On Thu, Jun 14, 2012 at 1:43 PM, Kuhns, John<[email protected]> wrote:
I'm attempting to use the jQuery-Click add in and am getting this error on
rendering a table in IE9, everything works fine in other browsers.
I've found a few references around the web, mostly dealing with Content-Type
and special characters, but I'm banging my head against the wall and hope
someone out there has a work around....
Thanks,
John