My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 91: Next/Previous Month buttons postback the page
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by viper...@gmail.com, Sep 3, 2009
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
weird, Did you try to put some option to the calendar, and then try again?
Sep 8, 2009
Project Member #2 adamrs...@gmail.com
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
#3 viper...@gmail.com
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
Project Member #4 adamrs...@gmail.com
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
Project Member #5 adamrs...@gmail.com
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
Project Member #6 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #7 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting