Results 1 to 4 of 4

Thread: IFrame Help!!!

  1. #1
    Junior Member
    Join Date
    Oct 2010
    Posts
    3

    Exclamation IFrame Help!!!

    We are trying to use an iframe to pull content from an external site. In this case we are trying to pull content from the Publisher section of the Miniclip.com website. I used to have it working when the target had a .php extension but now they changed to a .js extension and I can't get it to work. Below is the original iframe text I used and below that is the Miniclip game address and code. Thank you in advance for your assistance!

    Original working iframe code:
    <iframe src="http://www.miniclip.com/games/red-code-3/en/webgame.php" frameborder="0" style="border:none;" width="640" height="480" scrolling="no"></iframe>

    Miniclip Publisher Website:
    http://webmasters.miniclip.com/

    Example Game Code Page:
    http://webmasters.miniclip.com/game/...olf-champions/

    Example Game Code provided:
    <!-- Place this code where you'd like the game to appear -->
    <div id="miniclip-game-embed" data-game-name="golf-champions" data-theme="1" data-width="680" data-height="510"></div>

    <!-- Insert this code before your <script type="text/javascript">if(!NREUMQ.f){NREUMQ.f=function(){NREU MQ.push(["load",new Date().getTime()]);var e=document.createElement("script");e.type="text/javascript";e.src=(("http:"===document.location.pr otocol)?"http:":"https:")+"//"+"js-agent.newrelic.com/nr-100.js";document.body.appendChild(e);if(NREUMQ.a)N REUMQ.a();};NREUMQ.a=window.onload;window.onload=N REUMQ.f;};NREUMQ.push(["nrfj","beacon-6.newrelic.com","f246896502","2632998","MVFRZktRWh JVAkVYVwgbcEdKRFsMGwZQXF1JXV1WXEg=",0,8,new Date().getTime(),"","","","",""]);</script></body> tag -->
    <script src="http://www.miniclip.com/js/game-embed.js"></script>

    Iframe code found online - website address:
    http://alt-web.com/Tutorials/iframes.html

    Iframe code found online:
    <iframe name="Frame1" id="Frame1" src="http://yoursite.com/PhotoGallery/index.html" width="100%" height="375" align="left" frameborder="0" scrolling="auto">Your broswer doesn't support inline frames, please upgrade to a modern browser that does.</iframe>

    This code works when we inserted www.nbcnews.com instead of the provided sample domain but we can't seem to translate it to work with the Miniclip code provided.

  2. #2
    Senior Member chuckj's Avatar
    Join Date
    Jan 2010
    Location
    www.beyondfusion.com - Florida
    Posts
    1,302

    Default

    The code they provide is intended to be embedded in a page on your site. It's a Javascript, not a web page that can be displayed via an iframe.
    Chuck Joslin
    www.BeyondFusion.com
    PHP & MySQL development with Fusion
    Fusion support for AllWebMenus (Likno) Contact me for custom AWM menus for your sites.
    Tutorials and Forums

  3. #3
    Junior Member
    Join Date
    Oct 2010
    Posts
    3

    Default

    Chuck

    Thank you for your timely reply.
    Use of the iframe has allowed me to place the game in a specific place on the webpage and have Netobjects deal with the coding - I'm not proficient with any coding. What is the most straight forward way to still use the iframe to make this work OR use the code they provided an place the miniclip game precisely where I'd like without any coding knowledge. As I mentioned initially, the iframe worked fine until miniclip changed the game from a .php extension to javascript.

    Thank you for your time and expertise.

  4. #4
    Senior Member chuckj's Avatar
    Join Date
    Jan 2010
    Location
    www.beyondfusion.com - Florida
    Posts
    1,302

    Default

    If you place a text box on your page that's the size of whatever the script outputs and use Ctrl+t to insert the embed code into the text box, you have control over where the game appears on your page. No need to use an inline frame.
    Chuck Joslin
    www.BeyondFusion.com
    PHP & MySQL development with Fusion
    Fusion support for AllWebMenus (Likno) Contact me for custom AWM menus for your sites.
    Tutorials and Forums

Tags for this Thread

Posting Permissions

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