display webpage within webpage?

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
User avatar
m4a2t0t
Posts: 3962
Joined: Tue Apr 03, 2001 12:00 am
Location: Phoenix AZ

display webpage within webpage?

Post by m4a2t0t »

Is there any other way besides an IFRAME to display a webpage within a webpage? I cannot use IFRAMES on ebay.

I am selling some fishing lures and they come in various colors, I add new colors every week and its becoming a real pain in the butt to modify 25 html files and add the new colors. An IFRAME works perfectly but ebay wont allow it in an auction.

example auction

http://cgi.ebay.com/ws/eBayISAPI.dll?Vi ... &rd=1&rd=1
Will Work For FSB
User avatar
morbidpete
Posts: 7282
Joined: Sat Mar 30, 2002 12:00 pm
Location: W. Warwick RI

Post by morbidpete »

can you use php?

Code: Select all

<? php include('yourfile.htm') ?>
User avatar
morbidpete
Posts: 7282
Joined: Sat Mar 30, 2002 12:00 pm
Location: W. Warwick RI

Post by morbidpete »

also found this

Code: Select all

<script>
function clientSideInclude(id, url) {
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) {
  alert("Bad id " + id +
   "passed to clientSideInclude." +
   "You need a div or span element " +
   "with this id in your page.");
  return;
 }
  if (req) {
    // Synchronous request, wait till we have it all
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML =
   "Sorry, your browser does not support " +
      "XMLHTTPRequest objects. This page requires " +
      "Internet Explorer 5 or better for Windows, " +
      "or Firefox for any system, or Safari. Other " +
      "compatible browsers may also exist.";
  }
}
</script>
founde it here

http://www.boutell.com/newfaq/creating/include.html

discusses server side and client side. thinking you can only use clent side. and i think java is your only option
User avatar
A_old
Posts: 10663
Joined: Sun Jan 30, 2000 12:00 am
Location: Atlanta

Post by A_old »

it would be stupid of ebay to let you use javascript ajax stuff to fetch data and spit it into an auction page or let you use an iframe because you could change the terms of an auction after someone placed a bid or purchased it. i seriously doubt they're dumb enough to allow javascript on their auction pages - if they are, i'll be amazed.
Post Reply