Cocoa (
momijizukamori) wrote in
dw_dev2014-06-29 05:15 pm
new style search - in need of Javascript help (probably)
So the new style search has been almost beta-ready on my hack for a while now (NB: you will need an account on my hack to see it), but I've been stuck on a front-end problem. The search runs, returns all the matching themes in the database - except when you click to look at the next page of themes (or any page other than the first returned) everything resets and shows none of the themes. I think this is a JS/AJAX-y thing with the inline display of new content but Javascript is basically arcane magic to me, so I'm not sure. The branch is up to date on Github.

no subject
(haven't tested because I'd need to set up themes/workers first but that looks like the right starting place)
no subject
I will try that! And yeah, while the branch is easy enough to pull down, the db changes are... not so much, haha
no subject
Hmmm adding 'adv_search_flag: Customize.adv_search_flag' and 'adv_search: Customize.adv_search' there didn't seem to do anything (though it probably doesn't help that I have zero idea what I'm doing here)
no subject
Hmm. Was it working in your other call to updateContent?
no subject
I... have no idea. Basically with Perl I can kind of follow code flow, but JS is like 'PRESS BUTTON, STUFF HAPPENS????' and there are a bunch of different scripts running on the same page.
no subject
Gotcha. And it doesn't help that this uses the old libraries so is particularly hard to work with. Hmmm.
Okay so basically when you click the link, it does a GET request to htdocs/tools/endpoints/widget.bml. Try debugging what gets posted/where that gets passed into; hopefully that helps!