RyanStanford1
7 years agoQrew Captain
Custom HTML replace Main Body of Page
What I'm trying to do is Proof of Concept to add a html code page that I have on QB as the homepage of a table.
I've been able to replace the mainBodyDiv element with my custom element, which JavaScript then converts that element based on it's attributes to pull an XMLHTTPRequest of my linked html page... this so far works, mostly...
the issue I have is that the response.text from my request, which I anticipated to be the HTML of my custom page was the entire structure of a QB page, with my actual HTML code nowhere to be found.
If I go to the html code page itself, it shows up flawlessly... so I know the HTML itself is good.
I've been able to replace the mainBodyDiv element with my custom element, which JavaScript then converts that element based on it's attributes to pull an XMLHTTPRequest of my linked html page... this so far works, mostly...
the issue I have is that the response.text from my request, which I anticipated to be the HTML of my custom page was the entire structure of a QB page, with my actual HTML code nowhere to be found.
If I go to the html code page itself, it shows up flawlessly... so I know the HTML itself is good.