Embedding Client

For discussion of the Poker Mavens server module and other administration topics

Re: Embedding Client

Postby Shadez69 » Mon Jul 11, 2016 11:19 pm

Ok so I tried pasting the new code

<!DOCTYPE html>
<html>
<head>
<title>My Poker Site</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<style type="text/css">
div { position: absolute; top: 0px; right: 0px; left: 0px; bottom: 0px; }
iframe { width: 100%; height: 100%; border: none; }
body, html { margin: 0; padding: 0; overflow: hidden; }
</style>
</head>
<body>
<div>
<iframe src="71.224.42.17:8087" width="100%" height="100%"></iframe>
</div>
</body>
</html>

Then I tried it with what I thought you were the lines you said to remove, removed:

<!DOCTYPE html>
<html>
<head>
<title>My Poker Site</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<style type="text/css">
div { position: absolute; top: 0px; right: 0px; left: 0px; bottom: 0px; }
iframe { width: 100%; height: 100%; border: none; }
body, html { margin: 0; padding: 0; overflow: hidden; }
</style>
</head>
<body>
<div>
<iframe src="71.224.42.17:8087" width="100%" height="100%"></iframe>
</div>
</body>
</html>

Then I tried just pasting this"

<iframe src="71.224.42.17:8087" width="100%" height="100%"></iframe>

I am sure I did something wrong but each try gave me a variation of it trying to display the main page again:

https://t.gyazo.com/teams/thedrunkendon ... c82ae5.jpg
Shadez69
 
Posts: 13
Joined: Tue Jun 14, 2016 5:17 am

Re: Embedding Client

Postby Shadez69 » Mon Jul 11, 2016 11:20 pm

Sorry ignore 2nd example, should be this:


<title>My Poker Site</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<style type="text/css">
div { position: absolute; top: 0px; right: 0px; left: 0px; bottom: 0px; }
iframe { width: 100%; height: 100%; border: none; }
body, html { margin: 0; padding: 0; overflow: hidden; }
</style>
</head>
<body>
<div>
<iframe src="71.224.42.17:8087" width="100%" height="100%"></iframe>
</div>
Shadez69
 
Posts: 13
Joined: Tue Jun 14, 2016 5:17 am

Re: Embedding Client

Postby Kent Briggs » Mon Jul 11, 2016 11:46 pm

What is the URL to that web page?
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3826
Joined: Wed Mar 19, 2008 8:47 pm

Re: Embedding Client

Postby Kent Briggs » Mon Jul 11, 2016 11:53 pm

Also, you might need to include the "http://" prefix in the src parameter like this:

Code: Select all
<iframe src="http://71.224.42.17:8087" width="100%" height="100%"></iframe>
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3826
Joined: Wed Mar 19, 2008 8:47 pm

Re: Embedding Client

Postby Shadez69 » Tue Jul 12, 2016 12:26 am

http://thedrunkendonk.com/test

I'll try that now with the '//' but there is another place on the site I am trying to link to the game and its giving me an error for the same thing but when I insert the link (Ip addy) in a picture as a link it works fine...
Shadez69
 
Posts: 13
Joined: Tue Jun 14, 2016 5:17 am

Re: Embedding Client

Postby Shadez69 » Tue Jul 12, 2016 12:39 am

Ok tried this and am getting closer...


<title>My Poker Site</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<style type="text/css">
div { position: absolute; top: 0px; right: 0px; left: 0px; bottom: 0px; }
iframe { width: 100%; height: 100%; border: none; }
body, html { margin: 0; padding: 0; overflow: hidden; }
</style>
</head>
<body>
<div>
<iframe src="http://71.224.42.17:8087" width="100%" height="100%"></iframe>
</div>
Shadez69
 
Posts: 13
Joined: Tue Jun 14, 2016 5:17 am

Re: Embedding Client

Postby Kent Briggs » Tue Jul 12, 2016 10:10 am

Get rid of everything except the iframe tag if that code is getting embedded in an already existing page. You cannot have title, meta, style, and body tags in the middle of a page like that.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3826
Joined: Wed Mar 19, 2008 8:47 pm

Re: Embedding Client

Postby Shadez69 » Tue Jul 12, 2016 12:15 pm

Added this, first time you click it it refreshes the page, second time you get one is shown below:

https://t.gyazo.com/teams/thedrunkendon ... 1a31fd.png

Results:

https://t.gyazo.com/teams/thedrunkendon ... 616075.jpg

Link:

http://thedrunkendonk.com/tdd-poker1
Shadez69
 
Posts: 13
Joined: Tue Jun 14, 2016 5:17 am

Re: Embedding Client

Postby Kent Briggs » Tue Jul 12, 2016 12:42 pm

You're missing the "http:" prefix on the src parameter. You just have "//".
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3826
Joined: Wed Mar 19, 2008 8:47 pm

Re: Embedding Client

Postby Kent Briggs » Tue Jul 12, 2016 12:43 pm

And you have that section sized to a very small area that the client will not fit into.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3826
Joined: Wed Mar 19, 2008 8:47 pm

Previous

Return to Site Administration

Who is online

Users browsing this forum: No registered users and 6 guests

cron