SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I´ve got the following issue:

I want to change the Language of a .aspx Page, the NewForm.aspx. Therefor I created a WebPart which was added to the NewForm.

<a href="" onclick="OnSelectionChange(1033);">
    <img alt="" src="..." />

<a href="" onclick="OnSelectionChange(1031);">
    <img alt="" src="..." />

Problem of all is, that the a-tag points to the List where the NewForm belongs to so that the dialog after click shows the list not the NewForm view. What I want is that the NewForm ModalDialog just "refresh" or "reload" and the language is set. Do I have to set the lijnk to the NewForm manually or is there another way?

Thanks for all effort!

share|improve this question
I didn't really get your question... Why can't you point the a-tag directly to the New Form? And what you mean by "NewForm ModalDialog just "refresh" or "reload" and the language is set"? – Arsalan Adam Khatri Dec 7 '12 at 20:37
Cause I have two diffrent content types with diffrent IDs and I cant take the standard everytime. I want to reload the actual URL without point to another site. – Felix Zeidler Dec 7 '12 at 20:48

My Solution ;-)

<div align="center">
<a id="linkGB" href="" onclick="OnSelectionChange(1033);">
    <img alt="English" src="..." />

<a id="linkGER" href="" onclick="OnSelectionChange(1031);">
    <img alt="Deutsch" src="..." />

<script language="javascript" type="text/javascript">
    $(function () {
        $('#linkGB').attr("href", $(location).attr('href'));
        $('#linkGER').attr("href", $(location).attr('href'));
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.