Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Call AJAX Function based on URL

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268782
    Dennisade
    Participant

    Hello All,

    Had someone already fetched content with AJAX from another page into an overlay?
    I am running in a lot of issues here.

    To load the content in the overlay with its own URL is running pretty good. But I have the problem that when I enter the URL in the browserbar, it links directly to the page of the url, but I want to stay (on the homepage) and the overlay with the project should fade in.

    What would be the best way to achieve this behaviour, or in what should i look into?

    Here is my AJAX set up:
    https://jsfiddle.net/ykqx42c7/1/

    #268869
    JeroenR
    Participant

    Maybe this example can help you out: https://codepen.io/jeroenreijs/pen/PRJOre

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.