Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2019-11-05 00:02:43

andy.photos.bell
Member
Registered: 2014-04-14
Posts: 38

Gallery does not show if page contains a <form> tag

On this page:

https://www.andybellphotography.com/Test1/

There is a Gallery underneath the paypal button, but it does not display. The HTML is there and the HTML for the Gallery is identical if the code for the <form> is removed.

However, with the <form> in place the Gallery doesn't show. With the <form> removed, the Gallery displays as expected.

I don't understand this. Is this a bug?

Andy

Offline

#2 2019-11-05 00:07:38

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Gallery does not show if page contains a <form> tag

How are you adding the form?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2019-11-05 00:09:30

andy.photos.bell
Member
Registered: 2014-04-14
Posts: 38

Re: Gallery does not show if page contains a <form> tag

In the Page Copy of the Page Designer in Backlight 2

Offline

#4 2019-11-05 00:16:53

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Gallery does not show if page contains a <form> tag

But what are you using to implement the form?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2019-11-05 00:20:31

andy.photos.bell
Member
Registered: 2014-04-14
Posts: 38

Re: Gallery does not show if page contains a <form> tag

In this case, PayPal generates it for me...

Andy

Offline

#6 2019-11-05 00:59:43

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Gallery does not show if page contains a <form> tag

Looks like your PayPal form creates some conflicts with the Backlight JavaScript code. I can see this error in the console:

Uncaught TypeError: Cannot read property '0' of undefined
    at 32?ppf=on:339
    at 32?ppf=on:456

When you remove the PayPal code, does the gallery show?

Since you are already using the Cart module, you could use the write-in purchase buttons: http://backlight.theturninggate.net/doc … se_buttons


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#7 2019-11-05 06:05:18

andy.photos.bell
Member
Registered: 2014-04-14
Posts: 38

Re: Gallery does not show if page contains a <form> tag

Daniel

Thank you - this is helping.


Andy

Last edited by andy.photos.bell (2019-11-05 06:10:55)

Offline

#8 2019-11-05 07:25:58

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Gallery does not show if page contains a <form> tag

smile


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

Board footer

Powered by FluxBB