Developer Forum »
Postback on field change/update
15 posts

I'm just wondering if there's a reason why there's a postback every time i change the values of an input field, and change focus to something else. 

I'm using the prebuilt blog controller WAFBlogPost____, and it happens in both http://www.futurebuilt.no/blogg and http://www.econa.no/blogg

181 posts

Hi!

I'm not sure what you mean exactly. Could you try to explain in more detail?

 

15 posts

If you go to http://www.econa.no/valg-av-studieretning-og-veien-mot-arbeidslivet , and type in anything in the "Tittel" field, then click on the "Kommentar" field, the page does a postback and jumps to the top of the page. 

The values stay the same, so it works correctly, it's just a bit weird when you get thrown to the top all the time

181 posts

Hi!

The comment form is specified in a template in the control, so you have full control over what happens there. I guess you have added an event to the title textbox that causes the postback. There is nothing in the blog module itself that causes this.

If you have a problem fixing this issue, post the markup from the commentform template, and we can pinpoint the problem.

15 posts

Right you are, was a script that added a postback event for some reason. Removed it and it works fine :) 

 

Thanks

1