Question for programmers

0 favourites
  • Im wondering ho can i add code in to Ebay, Allegro to display game window in item description?

    i try use iframe but iframe is blocked

    so i read about this i try make on my own

    but im not programmer so i need tips where i should fix code

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    document.write('<' + 'I' + 'FR' + 'AM' + 'E ' + 'SRC' + '="' + 'https://igamedeveloper.github.io/allegro/" style="border:0px #FFFFFF none;" name="a" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="60px" width="468px"' +'<' + '/' + 'i' +'fr'+ 'am'+ 'e'>')
    //-->
    </SCRIPT>[/code:165e4mwo]
  • It's blocked because of browser security measures. You need to change the X-Frame-Options HTTP header in order for it to work properly.

    Just understand that you are playing with security fire.

  • It's blocked because of browser security measures. You need to change the X-Frame-Options HTTP header in order for it to work properly.

    Just understand that you are playing with security fire.

    He can't change the security headers in ebay, it's not his site.

    Delgado, even if you sneak the HTML of an iframe onto a page, it won't work if Ebay doesn't allow iframes to be loaded on their page, as configured by ebay in their site's headers, like gumshoe mentioned. You need to use something else. Can you possibly use an image?

  • > It's blocked because of browser security measures. You need to change the X-Frame-Options HTTP header in order for it to work properly.

    >

    > Just understand that you are playing with security fire.

    >

    He can't change the security headers in ebay, it's not his site.

    Delgado, even if you sneak the HTML of an iframe onto a page, it won't work if Ebay doesn't allow iframes to be loaded on their page, as configured by ebay in their site's headers, like gumshoe mentioned. You need to use something else. Can you possibly use an image?

    hi, i know how use image, prabably gifs too but i need insert window with c2 project

  • I think that it is a clear case.

    http://pages.ebay.com/help/policies/lis ... cript.html

  • He can't change the security headers in ebay, it's not his site.

    Sure you can. Use an Apache proxy. You can change the headers if you proxy the Ebay site through an Apache proxy. Although, if you use an Apache proxy, then the X-Frame-Options: SAME ORIGIN will work for you, and you won't have to change the X-Frame-Options header.

  • > He can't change the security headers in ebay, it's not his site.

    >

    Sure you can. Use an Apache proxy. You can change the headers if you proxy the Ebay site through an Apache proxy. Although, if you use an Apache proxy, then the X-Frame-Options: SAME ORIGIN will work for you, and you won't have to change the X-Frame-Options header.

    interesting, can you show example?

  • > He can't change the security headers in ebay, it's not his site.

    >

    Sure you can. Use an Apache proxy. You can change the headers if you proxy the Ebay site through an Apache proxy. Although, if you use an Apache proxy, then the X-Frame-Options: SAME ORIGIN will work for you, and you won't have to change the X-Frame-Options header.

    That doesn't seem like a large-scale solution. You could get it to "work," but what if other people view the site? You can't force everyone else to also use an apache proxy... I'm sure there's some detail I'm missing here, but if you can't get the standard ebay.com to do it, how does it help?

  • dont use iframe... use <object> </object> or <embed></embed>

    see blog post about this

    however iframe will work on a personal website just fine. but is blocked by amazon or ebay... so you should look what they allow to embed on their websites.

    try this code for iframe on personal website or even on ebay see if works.

    <iframe class="someclass" src="yourlinktofolderofgame can be /game" frameborder="0" allowtransparency="true" backgroundcolor="transparent" ;="" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px; z-index:1; " height="100%" width="100%" allowfullscreen="true" msallowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>[/code:1s1tyuvv]
  • dont use iframe... use <object> </object> or <embed></embed>

    see blog post about this

    however iframe will work on a personal website just fine. but is blocked by amazon or ebay... so you should look what they allow to embed on their websites.

    try this code for iframe on personal website or even on ebay see if works.

    <iframe class="someclass" src="yourlinktofolderofgame can be /game" frameborder="0" allowtransparency="true" backgroundcolor="transparent" ;="" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px; z-index:1; " height="100%" width="100%" allowfullscreen="true" msallowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>[/code:11z5aaoe]
    

    Interesting i must say, Your proposition dont work but i use code from blog

    <div">  
      <object data="[insert resource]" type="[insert MIME type]" style="height: 840px; width: 650px;">
        <embed src="[insert resource]" type="[insert MIME type]">
      <p>It appears you don't have a the proper plugin to load this in your browser. You can <a href="[insert resource link]">click here to access the resource.</a></p>
      </object>
    </div>  [/code:11z5aaoe]
    
    and i modify to:
    [code:11z5aaoe]<div">  
      <object data="https://igamedeveloper.github.io/balon/" type="application/html" style="height: 840px; width: 650px;">
        <embed src="https://igamedeveloper.github.io/balon/" type="application/html">
      <p>It appears you don't have a the proper plugin to load this in your browser. You can <a href="[insert resource link]">click here to access the resource.</a></p>
      </object>
    </div>  [/code:11z5aaoe]
    
    finally in description i have that error
    [img="https://dl.dropboxusercontent.com/u/44710358/ebay.png"]
    
    PS
    
    i dont know what i should type in "[insert MIME type]"
  • the iframe code i posted, is working only with a specific c2 format exporting setting, which is scale outer.

    you might also want to add this script to force the right center position to center of the div u place it in :

    <script>$(window).on( 'resize', function () {
        $('.js-height-full').height( $(window).width() / 1.5 );
    }).resize();</script>[/code:10i47g9w]
    
    the script /code basically detects what is the screen ratio of the device being desktop or mobile and gives a proportional aspect ratio to position the c2 embed code dead center... or right in middle. without the outerscale to get in its way... however ... the script might not be allowed by ebay or what ever website u place it in unless u have ftp rights.
    
    you might also want for the app made in c2 to have some sort of retina 1.2 or scale layout to fit your needs. its a bit tedious... but i modified it so it fits my need ... not sure if will even help u at all.
    
    easiest way would be to use the object embed... but on embed i think instead of source you have "data:yourlink;" and then "height:;" and "width:;" separated or with a break between them something like this :
    
    [code:10i47g9w]
    <embed
    data: yourlink ;
    width:100%;
    height:auto;>
    </embed>
    [/code:10i47g9w]
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • That doesn't seem like a large-scale solution. You could get it to "work," but what if other people view the site? You can't force everyone else to also use an apache proxy... I'm sure there's some detail I'm missing here, but if you can't get the standard ebay.com to do it, how does it help?

    Proxying in general is a very large-scale solution, and it is the only secure solution to this guy's problem. Proxying it through his own site will place the remote site "in domain" under his domain and make the iFrame fall naturally under the "ORIGIN" access control which most browsers (and Scirra's export) operate on.

    You don't need to 'force' anyone to use a proxy. You set it up for yourself and it simply funnels traffic through your domain to another site and back. Think of it like a tunnel from your server to the site of interest.

    I actually use this exactly to get our blog site to run in an iFrame on our website.

    interesting, can you show example?

    Look at our website and blog. Or do you mean a Construct example?

    I do like 's solution too.

  • > That doesn't seem like a large-scale solution. You could get it to "work," but what if other people view the site? You can't force everyone else to also use an apache proxy... I'm sure there's some detail I'm missing here, but if you can't get the standard ebay.com to do it, how does it help?

    >

    Proxying in general is a very large-scale solution, and it is the only secure solution to this guy's problem. Proxying it through his own site will place the remote site "in domain" under his domain and make the iFrame fall naturally under the "ORIGIN" access control which most browsers (and Scirra's export) operate on.

    You don't need to 'force' anyone to use a proxy. You set it up for yourself and it simply funnels traffic through your domain to another site and back. Think of it like a tunnel from your server to the site of interest.

    I actually use this exactly to get our blog site to run in an iFrame on our website.

    > interesting, can you show example?

    >

    Look at our website and blog. Or do you mean a Construct example?

    I do like 's solution too.

    i mean example of fixed my code or new code example, ready to paste in my ebay description

    in code should be included this url: https://igamedeveloper.github.io/balon/

  • > That doesn't seem like a large-scale solution. You could get it to "work," but what if other people view the site? You can't force everyone else to also use an apache proxy... I'm sure there's some detail I'm missing here, but if you can't get the standard ebay.com to do it, how does it help?

    >

    Proxying in general is a very large-scale solution, and it is the only secure solution to this guy's problem. Proxying it through his own site will place the remote site "in domain" under his domain and make the iFrame fall naturally under the "ORIGIN" access control which most browsers (and Scirra's export) operate on.

    You don't need to 'force' anyone to use a proxy. You set it up for yourself and it simply funnels traffic through your domain to another site and back. Think of it like a tunnel from your server to the site of interest.

    I actually use this exactly to get our blog site to run in an iFrame on our website.

    > interesting, can you show example?

    >

    Look at our website and blog. Or do you mean a Construct example?

    I do like 's solution too.

    i mean example of fixed my code or new code example, ready to paste in my ebay description

    in code should be included this url: https://igamedeveloper.github.io/balon/

  • Wait... you are trying to post your website INTO Ebays? Just include a URL. You can't touch their webservers.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)