Code Causing Exhibit Configuration Page To Go Screwy...

1957Goldtop / 2013-01-10 01:26:09   

So here is a bug that is pretty frustrating. It's hard to explain exactly but I hope I'm clear.. I have some "form" code that I added to an exhibit that is causing the exhibit configuration page (not sure what else to call it) to go all wonky (sorry for the technical jargon).

First, I put in all the code and get the page looking how I want it. I leave the configuration page and all is well. Then, if I go back into the Exhibit configuration page everything is all messed up.

Here is a screen shot of the configuration page when it's all messed up. You can see that the code I placed in the exhibit text/code box effected the configuration page itself.
sanfranciscoheadshots.com/files/temp/…

Weird things happen on the page itself as well. First, what the page should look like:
sanfranciscoheadshots.com/files/temp/…

Here is what the pages looks like when things go wrong:
sanfranciscoheadshots.com/files/temp/…

If I then leave the exhibit configuration page to go back to the Index list and come back the bottom part of the code that was causing the problem is completely gone and the configuration page is "back to normal" But now I have to rebuild the page to get it back to the way it should be. Once I rebuild the page and save it, it works fine. But, the next time I come into the page to edit it, it gets all wonky and I have to start over again.

Here's the exhibit's code as it should be (and the code that causes the problem when I come back into the configuration page):

CONTACT
  • Name:
  • Email:*
  • Type of Headshots:* Acting Corporate
  • Comments:
  • Submit
  • Should be Empty:
  • document.getElementById("si" + "mple" + "_spc").value = "30077354021140-30077354021140";


    Studio:
    610 22nd Street #308
    San Francisco, CA 94107 And Here's the code after that is left when it's all messed up:

    CONTACT

  • Name:
  • Email:*
  • Type of Headshots:* Acting Corporate
  • Comments:
  • 1957Goldtop / 2013-01-10 01:32:27   

    Sorry, screwed up on the code insertion... the insert links on the right aren't working.

    Heres the code as I want it to be:
    sanfranciscoheadshots.com/files/temp/…

    Here's the code after the bottom portion gets cut off:
    sanfranciscoheadshots.com/files/temp/…

    Vaska A / 2013-01-10 02:00:02   

    Yes, that is a bit of a problem. I would need to look more closely if that is a bug or not (probably is). But, inserting 'inputs' into textareas is always a tricky thing. This is a case where a plugin is a better way to go (and more simple once you get the hang of it).

    Do you know how to do that?

    Vaska A / 2013-01-10 02:06:37   

    Another thing you might try - a trick - take your code and do a quick regex (regular expression) find/change of all single quotes to double quotes. It might work in this case...

    1957Goldtop / 2013-01-10 02:27:17   

    This is a JotForm form code. They have an iframe option where I could just insert some iframe code but it wouldn't work with my custom webfonts so I had to insert the actual code. I'm not sure what you mean by "plug in". JotForm has custom code options for a ton of 3rd party website builders... maybe you can get on their list.

    I tried removing the single quotes to double quotes but there was only one at the very end in my little addition to the code (my address portion). It didn't fix anything.

    This thread has been closed, thank you.