| Issue 91: | Next/Previous Month buttons postback the page | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Hello.
I imported fullcalendar.js and fullcalendar.css files into my code (only
that file, no ui.core.js or ui.draggable.js or jquery.js). then, i
initialize the calendar like so:
$('#calendar').fullCalendar({});
When i load the page in the browser, i see the calendar appear, with 2
buttons (next/previous month). If i click on one of those buttons, the
month changes, but then a postback event is raised and my whole page
refreshes to the initial state. Is there something i'm missing or is this
a bug?
P.S. I'm on Win XP Pro, FF 3.x, using FullCalendar v1.2.1
Sep 3, 2009
#1
luck...@gmail.com
Sep 8, 2009
vipermb9, that is certainly very strange. i can't recreate it on my end. could be some other script that you have interfering. would you mind posting your full .html file?
Sep 14, 2009
adam, i think i figured out the problem. you are using "<button>" html tag to display those buttons. "<button>" tag has an attribute, called "type". that attribute is set by default differently on different browsers. in IE, the default value is "button" (that is, "<button type='button'>"). in other browsers, including FF, the default value is "submit" (that is, "<button type='submit'>"). "type='submit'" will always submit/postback the page and "type='button'" will just display a button without any submit/postback. since your code doesn't specify the type, it submits the page in all browsers but IE. hope this helps.
Sep 21, 2009
hmmm... i never had a chance to look into this problem, sounds like you got to the bottom of it vipermb9, but the newest version of fullcalendar (1.3) doesnt use input/buttons anymore. instead it uses div/a/span tags. im assuming this wont be an issue anymore. im closing this thread but let me know if further problems. thanks.
Status:
Fixed
Oct 13, 2009
b/c of some other complaints, i have updated the 1.2.* branch. 1.2.3, which is ready for download, does not have this postback problem anymore. thanks
Aug 13, 2013
(No comment was entered for this change.)
Status:
Implemented
Aug 13, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |