I believed I had successfully integrated the phpformgen form into my website. This forum has been a life saver for most of the issues I have encountered but I am still stuck on something and can't find a solution!
My date field does not display the calendar button (and so it cannot be clicked or used). I have made quite a few changes to the original generated form but the calendar button still appeared and worked. It was only when I integrated that code into my site that the button disappeared.
I cannot see any obvious mistakes, or know of any reason why it would not work but I am sure there are more learned people here who can perhaps enlighten me?
I'm not sure what the problem is but you have allot of stuff crammed into the header. Maybe there is conflicting code, maybe there is some basic syntax error in the html. I will take a copy of your html to see if I can find anything but without copies of all of your code I may not be able to find the answer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I copied your html and tested it with similar success, it failed. I then began stripping out non-form related stuff without much luck. I then compared an old form against yours and I found one difference which made your form work when I copied the missing line.
You will have to resolve the differences between your styles, and those required to make the form calendar work.
The missing line:
<link href="style.css" rel="stylesheet" type="text/css">
If you put this line above the first calendar line "<link rel="stylesheet" type="text/css" href="calendar/calendar-blue2.css" />", your form calendar should work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your efforts (as always!). I'm glad the admins have recognised your input to the forum over the years - it has been invaluable to me and many others.
I followed your advice - I had actually included all the styles from 'style.css' in my main stylesheet 'styles/style1.css' (which was already referenced in the head) so I wasn't sure how referencing the stylesheet separately was going to make any difference (I'm still fairly new to css aswell as php/mySql and js) - but it did work!!
Unfortunately, as happens quite a lot to me - one solution creates another problem! My calendar now appears about 400px up and to the right of where it should when the calendar button is clicked.
I recall seeing a post with a similar problem (came across it when searching for a solution to the calendar button not appearing), where I think the guy created a new div for the calendar. I shall try and find the post again and see if that helps me, although I assume it has something to do with the 'position' aspects of my main stylesheet.
Anyway, in the meantime, thanks again for your help and if you have any further light to shed on this calendar position issue I would be very grateful!
Thanks,
Matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
However, having tried this on my site, it didn't work. The calendar did appear slightly closer than it had been but it was still hundreds of pixels to the right of where it should be.
I do not understand js enough to comprehend where things are going wrong and I am starting to think I may have to abandon this type of date input (although I really don't want to!).
Can anyone help with this issue and if so, what would you need me to provide? (presumably my stylesheets?).
Thanks,
Matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not saying your issue is a bug but you do have some choices for more accurate information regarding the calendar.
1.) Upgrade
2.) Post to the Calendar developer's help forum
3.) Available API documentation from the calendar developer
I believe your issue is related to the resulting style applied to your page. The calendar references a class or style name to identify where the calendar should be located. Without debugging the clendar code I would compare a working form to yours to see where the style ID's may be different and try to make the necessary corrections to your html page.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys,
I believed I had successfully integrated the phpformgen form into my website. This forum has been a life saver for most of the issues I have encountered but I am still stuck on something and can't find a solution!
My date field does not display the calendar button (and so it cannot be clicked or used). I have made quite a few changes to the original generated form but the calendar button still appeared and worked. It was only when I integrated that code into my site that the button disappeared.
I cannot see any obvious mistakes, or know of any reason why it would not work but I am sure there are more learned people here who can perhaps enlighten me?
My form can be found at :
http://www.dannyvalentino.com/contact/contact_male_female_strippers_entertainers.html
Any help would be greatly appreciated!
Many thanks,
Matt
I'm not sure what the problem is but you have allot of stuff crammed into the header. Maybe there is conflicting code, maybe there is some basic syntax error in the html. I will take a copy of your html to see if I can find anything but without copies of all of your code I may not be able to find the answer.
I copied your html and tested it with similar success, it failed. I then began stripping out non-form related stuff without much luck. I then compared an old form against yours and I found one difference which made your form work when I copied the missing line.
You will have to resolve the differences between your styles, and those required to make the form calendar work.
The missing line:
<link href="style.css" rel="stylesheet" type="text/css">
If you put this line above the first calendar line "<link rel="stylesheet" type="text/css" href="calendar/calendar-blue2.css" />", your form calendar should work.
Hi tnt,
Thanks for your efforts (as always!). I'm glad the admins have recognised your input to the forum over the years - it has been invaluable to me and many others.
I followed your advice - I had actually included all the styles from 'style.css' in my main stylesheet 'styles/style1.css' (which was already referenced in the head) so I wasn't sure how referencing the stylesheet separately was going to make any difference (I'm still fairly new to css aswell as php/mySql and js) - but it did work!!
Unfortunately, as happens quite a lot to me - one solution creates another problem! My calendar now appears about 400px up and to the right of where it should when the calendar button is clicked.
I recall seeing a post with a similar problem (came across it when searching for a solution to the calendar button not appearing), where I think the guy created a new div for the calendar. I shall try and find the post again and see if that helps me, although I assume it has something to do with the 'position' aspects of my main stylesheet.
Anyway, in the meantime, thanks again for your help and if you have any further light to shed on this calendar position issue I would be very grateful!
Thanks,
Matt
I found the post which I was referring to above here:
https://sourceforge.net/projects/phpformgen/forums/forum/149299/topic/3268232
However, having tried this on my site, it didn't work. The calendar did appear slightly closer than it had been but it was still hundreds of pixels to the right of where it should be.
I do not understand js enough to comprehend where things are going wrong and I am starting to think I may have to abandon this type of date input (although I really don't want to!).
Can anyone help with this issue and if so, what would you need me to provide? (presumably my stylesheets?).
Thanks,
Matt
Calendar code was not developed as part of phpFormgen. It was open source taken from
http://www.dynarch.com/projects/calendar/download/1.0/
The latest code is now version 1.8
http://www.dynarch.com/projects/calendar/download/1.8/
I'm not saying your issue is a bug but you do have some choices for more accurate information regarding the calendar.
1.) Upgrade
2.) Post to the Calendar developer's help forum
3.) Available API documentation from the calendar developer
I believe your issue is related to the resulting style applied to your page. The calendar references a class or style name to identify where the calendar should be located. Without debugging the clendar code I would compare a working form to yours to see where the style ID's may be different and try to make the necessary corrections to your html page.