Show Elements not working in Firefox?...

User 2876358 Photo


Registered User
10 posts

Hi Eric,

Thanks for all your help by the way!

Yes I made sure my cache was clear but it is not working still?

However, I think I have pinpointed the problem area but I do not know how to fix it?

since I had set up a test page with nothing but the form code on it and that is working in Firefox. I started with another blank test page and started adding elements of code into the page one at a time until the form stopped working properly.

What I discovered is that the main container div with the ID of "wrapper" seems to be causing the issue? When you remove it or if I rename it to something like "wrapper2" the form works with all other code on the page. But doing this also breaks the page design and functionality of hiding the other pages.

Digging a little deeper I found that the sourced javascript file
<script src="assets/js/main.js"></script>
seems to be the culprit. I am attaching it for you to take a look at. As you will see this javascript file works in conjunction with the main div ID labeled "wrapper".

At least I know what is causing the issue now. i just don't know how to fix it still?
Attachments:
User 187934 Photo


Senior Advisor
20,188 posts

What you could try is giving JQuery an alias for that script.
Give the attachment a try.
Hopefully I edited it correctly.
Attachments:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2876358 Photo


Registered User
10 posts

Hi Eric,

Thanks, but that broke the site completely and nothing would show up?
User 187934 Photo


Senior Advisor
20,188 posts

Ok give me a bit to try a few things later. I'm sure I had it working on the mock up I did. I have some events to attend this evening.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2876358 Photo


Registered User
10 posts

No Rush Eric,

I just appreciate your help!

If it helps at all I can get you FTP access to the project so you can just tinker with it there?

I would just not know how to get that info to you privately? I don't see a PM feature in this forum?
User 2876358 Photo


Registered User
10 posts

Hi Eric,

So I have been trying the best I can to figure this out and I think I may have been barking up the wrong tree?

I took this page here that is produced by Web Form Builder and I assume is the file being iframed into my page? ( http://23.235.201.244/~ttfiresafety/twi … l-form.php ) and I placed all the code on it inside of the main div id of wrapper like this:

<!-- Wrapper -->
<div id="wrapper">

<?php

$scriptpath = substr( $_SERVER['SCRIPT_FILENAME'], 0, -4 );
$paths = explode ( DIRECTORY_SEPARATOR , $scriptpath );
$myName = end($paths);
require $scriptpath . '/fbapp/php/config.inc.php';


if( strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) {

$ctl = new FormController();
$ctl->Dispatch();

} else {

if( ! isset( $_GET['action'] ) ) $myPage->ReportStats( 'NotifyFormView' );
}

ob_start();

$myPage->Show();
ob_end_flush();

?>

</div>

<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>



Sure enough as expected when I do this the show elements stop working.

Then I removed each script source referenced at the bottom of the page one by one. I started with removing the <script src="assets/js/main.js"></script> and found that by removing it, it did nothing to fix the issue? Which is where I thought the problem was. To my surprise when I removed <script src="assets/js/jquery.min.js"></script> the form works if Firefox!

So the issue is NOT in the main.js file it is in the jquery.min.js file as far as I can tell!

Only I still have no idea how to resolve the conflicts coming from it? But I figured this information could help you help me?

Thank you again for your time!!!





User 2876358 Photo


Registered User
10 posts

Hi Eric,

So I reached out to the developer of the template I am using and he made the following suggestions and it is now working!!!!!!!

He basically suggested that the code that Web Form Builder provides to paste into my page be watered down to just the iframe.

so instead of this:
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"twin-tier-fire-final-form.php" + window.location.search + "\" width=\"100%\" height=\"2056\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"twin-tier-fire-final-form.php\" title=\"twin-tier-fire-final-form\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>

<noscript>
<iframe height="2056" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="twin-tier-fire-final-form/twin-tier-fire-final-form.html">
<a href="twin-tier-fire-final-form.php" title="twin-tier-fire-final-form">Check out my CoffeeCup Form</a>
</iframe>
</noscript>


I have just this now and it works!


<iframe height="2056" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="twin-tier-fire-final-form/twin-tier-fire-final-form.html">
<a href="twin-tier-fire-final-form.php" title="twin-tier-fire-final-form">Check out my CoffeeCup Form</a>
</iframe>


However, I am now wondering why the the script line and <noscript> tags that were removed were even necessary to begin with? And if you know of any snags or issues that may arise from altering the code like this?

from what I can tell it works and the form functions so I think its Okay?

As always thank you for your time!
User 187934 Photo


Senior Advisor
20,188 posts

Eric Rohloff wrote:
Try setting up your form iframe code like this.
<iframe height="2056" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="twin-tier-fire-final-form/twin-tier-fire-final-form.html">
</iframe>

I was just going to ask you again if you tried that as I posted it earlier. I know it worked on my mock up. Cool .:cool:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.