EPiServer 8 - location hash in edit mode

Vote:
 

Hi,

when in my template I use a code like $("#mydiv").show(); to display an element, episerver automatically jump to the top of the page.

Is there any particular reason for that?

Thanks.

#123707
Jul 16, 2015 12:40
Vote:
 

Hi,

Do you mean that this code $("#mydiv").show(); jump to the top on the end user site view?

I used show function several time and never had this problem and I could be not related with EPiServer framework.

Could you provide more information:

- are you logged in to EPiServer when the problem appear (there is edit mode option in Top-Right corner)?

- are there any javascript console errors?

- where do you use show method - under button click or after document.ready?

#123715
Jul 16, 2015 23:41
Vote:
 

Hi,

the problem appears when in edit mode in EPiServer, I use the same page "outside" the cms and everything works fine.

There are no js errors and I use the show method after document ready.

I can reproduce the behavior even if I change manually the display attribute from none to block, or inline, with chrome dev tools.

#123730
Jul 17, 2015 11:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.