Can I embed an interactive game within a fan page? - facebook-page

Is it possible to embed a game app within an i-frame on a fan page so that the user remains on the fan page for the entire game play period and is not taken outside to a different game app page?

Yes, you can embed almost anything you want as long as it adheres to the Facebook TOS/Policies.

Related

Finding click-counter for NFP website, written in iframe

I am a non-programmer working for a church. We have no tech staff. Our website is based upon a template that doesn't provide a widget for counting clicks. We'd like to add one (or preferably two) jpg image(s) with a counter(s) to track the number of times clicked, and display the cumulative total next to the jpg(s). Church members will go to the page and click each time they participate in one or both of two different church objectives.
Our web host says to do this I must find, write, or purchase 3rd party code written in iframe, to embed into one of our pages.
I googled the issue and am only finding hit counters which track visitors to a page, rather than clicks of an image. We'd prefer two different jpgs to track two different objectives, but if necessary I can change from two jpgs to one, if having two counters on the same page is a problem.
Can anyone point me to where I could get code like this either for free, or for pay, and what it would cost?
There is a lot of good information here. They talk about an issue with iframe receiving the click vs. you recording it. If you keep reading there is a possibility to work it. Hope this helps!
Look here: Detect Click into Iframe using JavaScript

Attempting to implement share action intent on webpage

As stated in title. MDL cards/templates etc come with fancy looking share buttons. How exactly do we make them work how we see they do on phones apps? I want a user to be able to press the share button and have the list of apps to share via to show up.
Is this possible?
This is not possible with current web technology. The only API that was in progress to allow it was Web Intents but this has since been abandoned.
The share button could open up a dialog or something that has a Reddit share, Digg button, Facebook share, Google Plus shares, etc within them. That way they are only initialized when called. But you need to specifically program what you want to share out to.

Possible to destroy a running game and then rerun it or run a different game

I noticed that the PlayN doc says that you can only call Playn.run once. Here is my scenario and I'm looking for advice on how to tackle it.
Let's say I have a list of games to choose from in a menu on my web page. Upon clicking a game, I call PlayN.run on that game and it runs on my web page inside the playn-root div. Now lets say I want the user to be able to stop and load a new game by selecting a different one in the game list and load that into the div and play that.
How would I go about tackling that? Do I need to re-register the HtmlPlatform all over again and the play the new game? Or is there a way to destroy the current game and then play the new game using the existing platform which is already registered in PlayN?
The easiest route would be to just use normal HTML links and have each PlayN game be on its own web page (which could be in an iframe if you don't want the URL to change at the top of the browser).
Trying to clear out and reinitialize everything internally is just a big waste of effort when the web browser will take care of all of that for you when you reload the web page.

adding google map in asp.net application

i am develope web application for factory i need to add google map with location of factory
in contact us web page.any help i am just beginging with web development
Easy way here does all the work for you.
Embedding a map into a website or blog
You can embed a simple map, a set of
driving directions, a local search, or
maps created by other users. Here's
how:
Ensure that the map you'd like to embed appears in the current map
display.
Click Link to this page in the top-right corner of the map.
In the box that pops up, copy the HTML under 'Paste HTML to embed in
website,' and paste it into the source
code of your website or blog.
If you'd like to adjust the size of the map before you embed it, just click
Customize and preview embedded map, select your preferred size, and take a
look at the preview map. Once you're happy with what you see, copy the HTML
that appears in the box at the bottom of the window.
Keep in mind that you won't be able to embed Traffic maps, Mapplets, and some
other Maps features.
Google Map API is just javascript. Which can be used in any web technology
follow this link you will get what you are looking for
http://code.google.com/apis/maps/documentation/javascript/
If your beginning, maybe you should try to learn web development first. Javascript, post/get mechanics, HTML/CSS validation. Tackling Google Maps integration right at the beginning of your learning process might slow down your project evolution. It's my opinion.
To learn google maps api, try to start at this address :
http://code.google.com/intl/en/apis/maps/documentation/javascript/introduction.html

Forcing Wordpress Header to not refresh on page load

I developed a band website using wordpress, and I placed a flash MP3 player that autoplays in the header. Whenever you click on a link, the entire page refreshes and the mp3 player starts playing the first song all over again. I wish to have the entire header including the mp3 player) stay constant while the content/sidebar/footer reloads when you click a link. That way the music will continue playing while the rest of the page loads, and the user can have a real listening experience.
To all of your knowledge, is there any way to do this without making the rest of the site completely dynamic?
Thanks in advance
There are acutally only two ways to do this without Ajax:
Use a frameset (which is a very bad idea nowadays)
Use a pop-up which holds the player
I know that pop-ups might be blocked, but this is the only way that users will accept. many large sites with audio players use pop-ups for such a functionality.

Resources