Jump to content

language switch and iframes


damianjames

Recommended Posts

Hi all -

 

I am building a site that needs to support multi-language with an iframe for content.  The design has the language selector at the top outside of the iframe, and a music player at the bottom outside the iframe.  The language files reside in includes that are accessed by checking $_COOKIE and/or $_GET switch statements.  What I'm trying to figure out is if someone has chosen a language, navigated to a different content page than what loads by default in the iframe, then switches the language again, how can I reload the the index and the chosen content page in the new language?  I'd hate to have them need to re-navigate to where they were in they switch languages.  Maybe edge case and I'm worried over 1% of people who would select another language after clicking into a page, but it does need to be kind of newbie/oldie-proof.

 

I'm also conflicted on where to post this - I'm working the language switch out in php, wondering about an html target and page reload, and guessing that maybe this might be accomplished with ajax.  Apologies if I'm posting in the incorrect spot.

 

Attached screenshot gives a better idea of my conundrum (I hope!)

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.