Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

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

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

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

1 Answer 1

My Solution ;-)

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

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

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

Your Answer

 
discard

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.