Results 1 to 4 of 4

Thread: display webpage within webpage?

  1. #1
    Mad Overclocker m4a2t0t's Avatar
    Join Date
    Apr 2001
    Location
    Phoenix AZ
    Posts
    3,965

    display webpage within webpage?

    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...9145&rd=1&rd=1
    Will Work For FSB

  2. #2
    Ft. Couch! morbidpete's Avatar
    Join Date
    Mar 2002
    Location
    W. Warwick RI
    Posts
    7,185
    can you use php?

    Code:
    <? php include('yourfile.htm') ?>

  3. #3
    Ft. Couch! morbidpete's Avatar
    Join Date
    Mar 2002
    Location
    W. Warwick RI
    Posts
    7,185
    also found this

    Code:
    <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

  4. #4
    Forum Techie Amro's Avatar
    Join Date
    Jan 2000
    Location
    Atlanta
    Posts
    10,695
    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.
    amro.co, github.com/amro

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •