Home › Forums › Quform PHP › Ajaxify and two forms
- This topic has 27 replies, 2 voices, and was last updated 8 years, 7 months ago by
transam.
- AuthorPosts
- February 20, 2016 at 11:09 am #18247
transam
ParticipantHi A & A,
According to the documentation I have implemented two forms on two different pages.
The problem I encounter, because of the use of jQuery Ajaxify is that when I go to on page it work but
when I go to the second page it doesn’t.The two pages are:
http://finalbuiten.yourweblab.nl/reserveren.php
http://finalbuiten.yourweblab.nl/contact.php
Any suggestion to solve this is more then welcome!
Regards and thanks,
David
February 21, 2016 at 11:17 am #18252transam
ParticipantSolved by duplicating the scripts folder and rename one.
Regards and thanks,
David
- This reply was modified 9 years, 3 months ago by
transam.
February 22, 2016 at 5:48 pm #18261Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 23, 2016 at 10:02 am #18266transam
ParticipantHi Ally,
Thanks for the code, that works almost perfect. I placed the code in my head.js file
The problem I have now is on other pages besides the forms pages without qform js and css links on it I get:
Uncaught TypeError: $(…).Quform is not a functionDo you advice to place the qform js and css links on every page to prevent this error.
Or put your code in a script tag only in the form pages head.
Or I was thinking add it somewhere to the qform.js script ?
The two pages are:
http://finalbuiten.yourweblab.nl/reserveren.php
http://finalbuiten.yourweblab.nl/contact.php
Regards and many thanks,
David
- This reply was modified 9 years, 2 months ago by
transam.
February 24, 2016 at 8:03 pm #18272Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 26, 2016 at 9:48 am #18281transam
ParticipantHi Ally,
Thanks for the snippet!
When I place that in the script I get a error in the console.
There must be missing a little thing, but I’m not so good in JavaScript.
Can you please check what the error is!?
Regards and thanks!
David
February 26, 2016 at 8:18 pm #18283transam
ParticipantAnd how do I describe this form element in the process.php?
<div class=”quform-element quform-element-multi-select quform-large”>
<div class=”quform-spacer”>
<label for=”multi_select”>Kamperen met<span class=”quform-required”>*</span></label>
<div class=”quform-input”>
<select class=”quform-tooltip” title=”Houd Ctrl ingedrukt + klik om één of meerdere items te selecteren” id=”multi_select” name=”multi_select[]” multiple=”multiple”><option value=”Multi option 1″>Tent</option>
<option value=”Multi option 2″>Vouwwagen</option>
<option value=”Multi option 3″>Caravan</option>
<option value=”Multi option 4″>Camper</option>
</select>
</div>
</div>
</div>February 27, 2016 at 4:32 pm #18290Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 27, 2016 at 5:46 pm #18304transam
ParticipantThanks Ally, I will test it!
I have two multiselect inputs:
<!– Multi Select element –>
<div class=”quform-element quform-element-multi-select quform-large”>
<div class=”quform-spacer”>
<label for=”multi_select”>Kamperen met<span class=”quform-required”>*</span></label>
<div class=”quform-input”>
<select class=”quform-tooltip” title=”Houd Ctrl ingedrukt + klik om één of meerdere items te selecteren” id=”multi_select” name=”multi_select[]” multiple=”multiple”><option value=”Multi option 1″>Tent</option>
<option value=”Multi option 2″>Vouwwagen</option>
<option value=”Multi option 3″>Caravan</option>
<option value=”Multi option 4″>Camper</option>
</select>
</div>
</div>
</div>
<!– End Multi Select element –><!– Multi Select element –>
<div class=”quform-element quform-element-multi-select quform-large”>
<div class=”quform-spacer”>
<label for=”multi_select”>Appartement<span class=”quform-required”>*</span></label>
<div class=”quform-input”>
<select class=”quform-tooltip” title=”Houd Ctrl ingedrukt + klik om één of meerdere items te selecteren” id=”multi_select” name=”multi_select[]” multiple=”multiple”>
<option value=”Multi option 1″>Appelzicht (2-4 pers.)</option>
<option value=”Multi option 2″>Heuvelzicht (2-8 pers.)</option></select>
</div>
</div>
</div>
</div>
<!– End Multi Select element –>
Can you please give me the code I need in the process.php for both form inputs? I can’t get it working.Regards and thanks a lot!
David
February 27, 2016 at 6:40 pm #18306Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 27, 2016 at 6:50 pm #18307transam
ParticipantFebruary 28, 2016 at 11:37 am #18312transam
ParticipantHi Ally,
I have put your code in the head.js and it works, but the tool tips on the “RESERVEREN” page
don’t initialize.They only work when refreshing the page it self.
The two pages are:
http://libeek-1.yourweblab.nl/reserveren.php
http://libeek-1.yourweblab.nl/contact.phpRegards and many thanks,
David
February 28, 2016 at 12:52 pm #18317transam
ParticipantWhen I put this code in the head.js script the tool tips work!
Can you please explain what part I don’t need to make the code snippet smaller?Regards and thanks,
David
if ($.isFunction($.fn.qtip)) {
$(‘.quform-tooltip’).qtip({
content: {
text: false
},
style: {
classes: ‘qtip-default qtip-shadow quform-tt’,
width: ‘180px’
},
position: {
my: ‘left center’,
at: ‘right center’
}
});
}February 29, 2016 at 5:20 pm #18323Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 15, 2016 at 8:54 pm #18410transam
ParticipantHi Ally,
Have a problem with a guest book that disturbs the functioning of the 2 other forms.
The two forms are:
http://libeek-1.yourweblab.nl/reserveren.php
http://libeek-1.yourweblab.nl/contact.phpThe guest book is here:
http://libeek-1.yourweblab.nl/gastenboek.php
The problem occurs when I load the guest book page click SUBMIT and after that go to the “CONTACT” or “RESERVEREN” page.
Hope it’s a simple fix!
Thanks and regards,
David
- This reply was modified 9 years, 3 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.