Popup code error messages when pasted...

User 2781687 Photo


Guest
2 posts

Hi everyone,

I hope you are having a great 3-day weekend. Scott suggested that I approached this forum. He had a fix of removing the spaces from my form name: I got the same error messages.

I built a popup form in Web Form Builder Lite 2.5, published the code, pasted it into my website header code and get 2 error messages:

1. Could not parse your site header code. Are you inserting invalid XML? Error: Error on line 28 of document : The entity name must immediately follow the '&' in the entity reference. Nested exception: The entity name must immediately follow the '&' in the entity reference.

2. Could not parse your site header code. Are you inserting invalid XML? Error: Error on line 28 of document : The reference to entity "navigator.userAgent.indexOf" must end with the ';' delimiter.

Here is the code that I copied from: "Successfully Exported as popup".

<!-- Start of the headers for CoffeeCup Web Form Builder -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="http://tim-magee.coffeecup.com/forms/Non%20Profit%20Newsletter%20from%20Tim%20magee/colorbox/colorbox.css" />
<script src="http://tim-magee.coffeecup.com/forms/Non%20Profit%20Newsletter%20from%20Tim%20magee/common/libs_js/jquery-1.4.4.min.js"></script>
<script src="http://tim-magee.coffeecup.com/forms/Non%20Profit%20Newsletter%20from%20Tim%20magee/colorbox/jquery.colorbox.js"></script>
<script>
var $fb_pop = jQuery.noConflict();

$fb_pop(document).ready(function(){
setTimeout( function(){ $fb_pop.colorbox({href:"http://tim-magee.coffeecup.com/forms/Non%20Profit%20Newsletter%20from%20Tim%20magee/", iframe:true, innerWidth:"670px", height:"80%", maxHeight:"1295px", fixed:true}) }, 20000 );
// Fallback for Safari browser
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1 ) {
$fb_pop('.fb_iframe').click( function(){
var temp_window = window.open('http://tim-magee.coffeecup.com/forms/Non%20Profit%20Newsletter%20from%20Tim%20magee/','Non%20Profit%20Newsletter%20from%20Tim%20magee','width=0,height=0');
window.focus();
setTimeout(function() {temp_window.close();},1000);
} );
}
$fb_pop(".fb_iframe").colorbox({iframe:true, innerWidth:"670px", height:"80%", maxHeight:"1295px", fixed:true });
});
</script>
<!-- End of the headers for CoffeeCup Web Form Builder -->

Any Thoughts? Thank you for your help in advance.

Sincerely,

Tim Magee
User 187934 Photo


Senior Advisor
20,271 posts

Remove the spaces from the name of your form. Just because it didn't solve the issue it's still best practice.
What app are you getting the error in?
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 2781687 Photo


Guest
2 posts

Good morning Eric,

Thanks for your reply.

I removed the spaces in the form name - still got same error messages.

I pasted the code into my Squarespace site in a header code injection area.

I currently have a Mailchimp popup that works - but it pops up in 5 seconds.

Coffeecup lets me lengthen that.

Thanks !

Tim
User 187934 Photo


Senior Advisor
20,271 posts

Try removing the mail chimp pop to see if it's a conflict.
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.