A HTML related question

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Right now I am entering code into a terxt editor and then copying/pasting the code into a HTML widget. The code is in a xspf file on my hosting server. Rather than go through all of this copy/pasting stuff, Is there code that I can put into a nHTML widget that will link back to the xspf file I have on my hosting server, and display the contents of that file in my HTML widget?

This would save me a ton of time because all I would have to do is modify the code from the server end and it will automagically update the contents in my HTML widget.
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
  • hopeful I can do this!

Posted 9 years ago

  • 1
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
Sorry the code is in a text file. My mistake :)

<!-- <a href="http://sd.mcran.com/assets/bennett/b/... Rudy - This Is Jazz part 1</a></br>
-->
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
Hi Randy,

I am not sure if this is possible. Is it possible to have the URL to the code that you have on your sever?
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
Thanks Kershnee!

I'm just brainstorming for solutions to simplify the thousands of entries I need to make on my web site. It would be cool if there was a way to link to a text file that I already have on my hosting server and have it display the contents of that file. This way if I make any changes to the file, the content would be automagically updated on my web page.

Just a thought. I tend to always think of better more efficient ways to accomplish a task (think I take after my Mom :)). So I just thought I would throw this out to anyone who might have a solution to this if there is any.
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
You can possibly use iFrames to accomplish something similar.

Follow these steps to add an iFrame to your page:

<iframe src ="http://www.google.com" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>

Replace "http://www.google.com" with the URL you want to use.