B
BryanA
I am new to JS and after googling for a little while I couldn't find
an answer to my question. I have an ajax JS that auto updates a
certain element. The problem is it has to request another page for
each individual page that it sits on. I have a php get in there but
because this site is in full js, every time I pass a variable through
the url it starts back at the base page. The javascript sits at the
top of the page and then loads in other pages and acts as a template.
How should I go passing the current page url into the JS? I was
thinking about using a variable in the element that it refreshes but
am unsure of how to do that.
Any suggestions?
Thanks,
Bryan A
an answer to my question. I have an ajax JS that auto updates a
certain element. The problem is it has to request another page for
each individual page that it sits on. I have a php get in there but
because this site is in full js, every time I pass a variable through
the url it starts back at the base page. The javascript sits at the
top of the page and then loads in other pages and acts as a template.
How should I go passing the current page url into the JS? I was
thinking about using a variable in the element that it refreshes but
am unsure of how to do that.
Any suggestions?
Thanks,
Bryan A