Skip to content
Advertisement

Passing an Ajax-generated URL to a JQuery tab in web page

I am encountering an issue in processing Ajax-encoded URLs.

I am querying a database (Solr) via an Ajax script, sending the output to a web page (served locally only on a localhost webserver on my home computer).

When I click Ajax-generated links (URLs), they open in another browser tab, not the source web page.

For prototyping, hard-coded URLs manually added to my web page display properly, opening in the same web page in a JQuery “Documents” tab:

JavaScript

Advertisement

Answer

I managed to engineer a solution. For those interested, here are the salient portions of the code.

Ajax

JavaScript

HTML

JavaScript

CSS

JavaScript

Here is a video of that implementation (note: dummy data; raw, development code):

https://www.youtube.com/watch?v=sLL9ooqi_xU

Relevant background here (mine), re: JQuery tabs, …:

Advertisement