Current status of the Ning Platform is always available on the Ning Status Blog.

NC for Hire

If you have been running your community for some time you probably have a lot of resources to share.  You may be looking for a compact way to showcase many tools in the same place, such as a getting started page or a resources page.  I am going to quickly show you how to build a simple way to switch between several iframes without leaving the page.  You can see it live inside a text box on this group inside a Ning 2.0 (but it will certainly work inside 3.0)...and alternatively I have it hosted standalone in my github here (so i can iframe in my iframe switcher).

 

Let's begin.

HTML (You can shorten the URLs if you like)

<select class="switcher">
<option value="https://somelink.com/">Something</option>
<option value="https://goo.gl/BPVk7m">Else</option>
<option value="https://goo.gl/fnvCqW">Workflows</option>
<option value="https://goo.gl/0A86G1">Another Resource</option>
<option value="https://goo.gl/mYLons">Another</option>
<option value="https://goo.gl/EjW6fI">Yep, another</option>
<option value="https://goo.gl/DFTv72">And this one</option>
<option value="https://goo.gl/MK5rOa">yes and again</option>
<option value="https://goo.gl/YXdIWs">next to last resource</option>
<option value="https://www.justinfarrow.com/ning">JFarrow helps with Ning sites</option>
</select>


<iframe class="switch-target" width="100%" height="600" src=""></iframe>

 

 

CSS  (style the select box however you like)

<style>    select { display: block; }         </style>

 

JS (must add small x in front of all jquery $ signs inside Ning)

<script>

var switcher$ = x$('.switcher'), // select element
switchTarget$ = x$('.switch-target'); // iframe

switcher$.on('change', switchIframeSrc); // event binding

// our functiono to switch the iframe src
function switchIframeSrc() {
// set the 'src' attribute of the iframe
// to the value of the selected option
switchTarget$.attr('src', switcher$.val());
}

// call the method on load
switchIframeSrc();

 

</script>

 

Here is all the HTML, CSS and JS inside my codepen for you to fork and try with your own links and resources...  your links inside the iframe MUST be https:// to work.

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  •  Isent messaged you mylinks I added but they wont work lol still dont know aht I am not doing

  • Love to know how your box also does that with   the red white drop down and bacground image 

    • NC for Hire

      that is an awesome table FAQ accordian with a custom CSS style sheet attached..

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

LEO Mobile App Builder updated their profile
Tuesday
Aase Lillian replied to Aase Lillian's discussion
Community - activity page
"Ok, thank you. Please send me details as I have no idea on how to do it. "
Mar 19
Aase Lillian and ⚡JFarrow⌁ are now friends
NC for Hire
Mar 19
⚡JFarrow⌁ updated their profile photo
Mar 18
⚡JFarrow⌁ replied to Aase Lillian's discussion
Community - activity page
"Yes you can add emojis to your community pretty much anywhere you like.
If you need some help…"
Mar 18
Aase Lillian updated their profile
Mar 18
Aase Lillian posted a discussion
Hi all. Is it possible to add emojis to the community? I also wish the activity page to include…
Mar 18
Donna MacShoe updated their profile photo
Mar 6
Adul Rodri is now friends with ANGE.L LUAR and Margarida Maria Madruga
Feb 14
Shweta Sharma updated their profile
Jan 26
catherine martin updated their profile
Jan 16
Donna MacShoe updated their profile photo
Jan 15
More…

Meanwhile, you can check our social media channels