2
I’m trying to insert some scripts
of my WHMCS
on a page HTML
on my website, which returns a document.write(' Texto que irá aparecer ');
, and the text contained within document.write
is displayed on the HTML page.
Tutorial Link: http://www.whmcs.blog.br/personalizacao/capturando-informacoes-do-produto/
To work, I have to insert several <script></script>
which generates many requests.
I’d like to make it appear only:
<h1>
Text that will appear </h1>
Instead of:
<h1><script language="javascript" src=" ">
Text that will appear </script><h1>
Example in Jsfiddle
(used for example the Hostgator whmcs)
Is there any way to make only the text appear ?
Only with Javascript, or with jQuery as well?
– Kazzkiq
Yes! It is worth working! D
– Alexandre Lopes
You could implement a PHP script to serve as a proxy for the request, it is not very common but it can work. Avoiding doing multiple checks, asking the data only for a single URL and can still handle the result.
– Pedro Henrique
@Pedrohenrique Could you create an answer? Thank you!
– Alexandre Lopes
The @Pedrohenrique comment really makes sense. How often do these data change? You could implement a script and call it via cronjob to update the data from time to time according to your need.
– Kazzkiq
They never change, I think Cronjob is not a good alternative. @Kazzkiq you don’t know whmcs?
– Alexandre Lopes