Code

Discussion on Site Switcher (jQuery)

Discussion on Site Switcher (jQuery)

Cart 203 sales

designcise supports this item

Supported

49 comments found.

I run a wordpress web design company and I want to create a multiple sub-domain based wordpress demo websites for different niches. I am looking for a site switcher to be incorporated into my wordpress sites which will help the visitors to switch between all the different demo sites (all of these will be on different sub-domains under the same domain)

Do you have a wordpress plugin for this JQuery Site Switcher? If not, can I use your JQuery product in my wordpress sites and achieve what I wish to achieve as mentioned above?

Please advise.

Thanks

Raj

Sorry, but I never got around to making a wordpress plugin out of it. If you’re up for extending the plugin yourself to suit your needs, and have the appropriate license, by all means you can use it to achieve what you described. Let me know if you have further questions and good luck :)!

This is one of the best plugins I’ve ever bought on Code Canyon and the support is amazing. 5 Stars!!!

Hi,

I’m not sure to understand if your solution can help me with my needs :

I want to build a website that will display many logos, brand logos. For example cars logo : Ford, Bmw, Alfa Romeo… My goal is that visitors clicking on those links visit the brand’s websites, but they should come back to the website…A frame could give access to all the brands websistes but some websites use a trick so you can’t display them with an iframe. Your solution can help me to do what i want ?

Sorry if my english is not perfect!

Another question: i saw that one year ago your gave an answer to a user that there is no wordpress plugin. It would be difficult to use it with wordpress?

Thanks

Recently there have been new properties and security measures added to the iframe spec, so if a website wanted to prevent itself from loading within another website’s (i)frame it can choose not to be loaded based on the “same origin policy”. Additionally, a website can detect via javascript if it were being loaded in a frame/iframe and accordingly break out of it by for example redirecting the user. While the plugin would do what you want, you can’t control a third party website (one that you don’t own).

As an alternative, you could use curl in PHP to load an entire website in a variable and output it as needed, but this requires additional work to make sure all scripts, css, and images are linked and loaded properly.

As for your other question; this can be made into a wordpress plugin.

Hi! thanks for your answer !!! I’ll see what i can do! bye

Fantastic unique script, but I have one question. Currently if you click the image of the page your on it will take you to that page without the iFrame. Is there anyway to make it so instead of taking you to the full page without the iFrame, it will simply open the dropdown?

Yes it’s possible. Simple replace this line:

jQuery('#switcher .toggleControl').assign('click', ['shift+s'], function() {

With:

jQuery('#switcher .toggleControl, #switcher .selected').assign('click', ['shift+s'], function() {

And after this code block ends (i.e. after “});“), add this line of code:

jQuery('#switcher .selected').click(function(e) {
    e.preventDefault();
});

If you have difficulty following this or understanding, email me and I’ll send you an example.

Thank You so much :). Worked Perfectly

No problem. Please rate the script/support if you find it useful :)! Thanks!

X-Frame-Options must not be SAMEORIGIN for this to work Cross Domain, no? Please let me know the unminified/uncompressed size of the javascript file, thank you.

Sorry, my bad, it came out wrong, switcher script is the core, the optional ones are 9.34 kb in total (which includes assign and dashboard scripts). Been a while since I worked on this, sorry. So you’re looking at 6.10 kb compressed for the core.

Thank you again for your promptitude. Your scripts are timeless, and I have bought and used several! Let me mull over the size of this one and decide. Meanwhile, all the best.

is there a way you can stop it from refreshing the page after you have switched websites. e.g you are on website one and then switch to website two, you then go back to website one and it has to load the site again. thanks

It uses iframe to load website urls, so every time you go back and forth it’s actually loading the website url. You could implement a caching mechanism on the websites you’re loading (if you have ownership of them) to speed things up.

i wish use such functionality with wordpress. would that be possible for you? best wishes, markus

It would require making an entire plug-in for wordpress which I haven’t begun work on yet. The other option would be to hard code it into wordpress and use it wherever need be.

Does this use named iframes to switch between sites or something else to show the web pages?

yes it uses an iframe to load the pages.

Hi, I have created a site switcher here. http://missionwebs.org/missionwebs-switcher/

It works well but the select drop down doesn’t scrolls.

How to Fix this?

Thanks

Hi, at the moment, the site switcher doesn’t support scrolling sorry. And for future references, kindly email me via the contact form on my profile page :).

Hi there, this site switcher function looks fantastic. I’m having issues getting it installed on the Ning platform however. They have a header custom code section, an end of page custom code section and the ability to add iframes content. Can I get some direction on where to put each piece? I also can upload files onto the server easily and get a custom link for custom css. Thanks in advance!

replied to your email.

Hi, I want to display a site switcher on a TV display of three active sites, so is there’s a autoplay feature?

Thanks,

Rs

No there’s no autoplay feature but you can use the JavaScript setTimeout or setInterval feature to cycle between different sites after any given number of seconds.

really like ur script, but as a none coder or none coding experience with close to zero experience on javascript, with little knowledge on creating html page (base on google), edit skill is ok (i think almost everyone can) what i want is a simple tool like this : http://themes.themepunch.com/?theme=revolution_wp (top iframe).

1. Is full document to make it run ? 2. Create a html file, paste the code, call html files and it run ? 3. Edit/Add url to make dropdown ?

I done simple html iframe (page by page) but it way to messy and very difficult to maintain (remove or add dropdown, means i have to edit every page) .......

thanks sorry for my noob question :)

email me via my profile page if you have further questions and i’ll try to work with you there.

perfect support …. one of the greatest support i ever meet in envanto ….. 5 star is minimum :)

Thank you :)!

I really like that switcher. But i have a little bit problems with put it in with iframe. Its change my used url in browser what not really works for me.

Example: I put the iframe in my theme (drupal) and load the frontpage. The switcher comes, but it changes the url in my browser to http://www.example.com/switcher/switcher.html#load=http://www.example.com/mainpage/

Why that happens?

Because using hash in the url makes an entry in to the browser history. This is essential so that we can revert back to the pages that were open previously. Since modern browsers are still implementing this feature, this is the best workaround available right now.

This is one of the best scripts I’ve seen, but I wish there was an easier solution for WordPress and am struggling integrating it into my current theme: www.livechatmediabridge.com

thank you for the feedback.

as for integrating it into wordpress, though it’s not supported, still i can have a look and suggest how you can go about implementing it according to your needs. email me via the contact form on my profile page.

Hello designcise,

When I link out to another 3rd party website from the body of my website (not from the switcher), is it possible to keep the iframe switcher in place? Would I have to add anything special to outbound links to make it work?

LMK at your earliest, thanks!

In the head section of the web page; you must also wrap it inside:

jQuery(document).ready(function() {

// put the code in here…

});

Which is pretty standard, so I assumed you would know. Let me know if it does the job for you.

If there’s any further help you require, I suggest you email me via my profile page so it’s easier to send/receive files and much faster that way :)!

Designcise,

Thanks for all your help! You went way out of your way to help me, and I really appreciate it! – THANK YOU.

Thank you for the review :)!

Is this like a single sign on system? meaning i have multiple parts of my website setup, but each site area is modularized, some from parts purchased here, can this software be the glue to all my modules?

if you tell me what modules you want integrated with the site switcher, i may be able to answer better ..

but generally speaking the components in the site switcher are modular too so you might not have any problem replacing them or incorporating more of your own modules .. though it may require some customization and knowledge of html/css/js on your part

How do I setup and change the website list?

Open the example file included in the package in your favorite HTML editor and easily change the dropdown options. For instructions on how to do so, or more information, refer to the documentation or contact me via my profile page. But please make sure you’ve gone through the documentation before you contact me, thanks :)!

Does this thing have an admin area which would allow easy changes to the list of websites to be switched between?

This is javascript-only script, therefore, does not have an admin area. It comes with detailed documentation which explains how to setup the entire thing and customize it. If you still have any problems, you’re always welcome to email me via my profile page. Make sure though that you email me with detailed description of your problem along with all files (zipped) you’re working with.

I’m having an issue with the switcher bar automatically hiding and it being redirected when selecting the page through the dropdown. Is there a way to stop this or to force it to load in the iframe properly?

can you email me via my profile page with a detailed explanation of your problem (preferably also send me all the files you’re working with concerning the switcher as a zip file) and i’ll see how your problem can be resolved.

hi there!

Is it possible to add timer or something similar for auto switching? If it is, may you help me out?

yes it may be possible to do that but i’m traveling these days so might not be available till first week of june unfortunately. email me via the contact form on my profile page and zip everything up and send it over to me, i’ll try to look into it whenever i get time. i’ll try my best to do it sooner.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey