Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Dec 2006
    Location
    Park City, Utah
    Posts
    318

    Default Script code not inserting in body

    I have a script that I pasted into a placeholder (body), but i do not see it when I look at the source file after publishing. If I use the website option (all pages) it will insert in the body tag. Anyone else have this issue? Using WD7.

    Tom
    Last edited by camelot217; 29 March 2011 at 04:17 PM.

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: Script code not inserting in body

    What is the script supposed to do, Tom?

  3. #3
    Join Date
    Dec 2006
    Location
    Park City, Utah
    Posts
    318

    Default Re: Script code not inserting in body

    Gary,
    It is a jotform feedback script. This creates a tab on the edge of the browser. I have it working now, but I had to go through the "website tab" and create it on all pages for it to display. I actually only want it on some page not all, but I can't get it to work using a place holder and it's body tag option.

    This is the actual script:

    <script src="http://www.jotform.com/min/g=feedback" type="text/javascript">
    new JotformFeedback({
    formId: "10110424918",
    buttonText: "Feedback ",
    base: "http://www.jotform.com/",
    background:'#F59202',
    fontColor:'#FFFFFF',
    buttonSide: "right",
    buttonAlign: "center",
    type:false,
    width: 700,height: 500});
    </script>

    Here is the website: http://www.parkcitypetinfo.com/

  4. #4
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: Script code not inserting in body

    Are you pressing 'Apply' on the web properties dialogue box after pressing 'Ok' to close the code editor? It's tripping up a number of people apparently
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  5. #5
    Join Date
    Dec 2006
    Location
    Park City, Utah
    Posts
    318

    Default Re: Script code not inserting in body

    Quote Originally Posted by neodeist View Post
    Are you pressing 'Apply' on the web properties dialogue box after pressing 'Ok' to close the code editor? It's tripping up a number of people apparently
    Yep.... finally getting good at remembering that :-). I go back and I open the place holder and it's there. The strange thing is if I move it to the header tag where it should not be it will show as text on the top of the page.... so it takes it using the header tag.

  6. #6
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: Script code not inserting in body

    See attached .web - code inserted
    Attached Files Attached Files
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  7. #7
    Join Date
    Dec 2006
    Location
    Park City, Utah
    Posts
    318

    Default Re: Script code not inserting in body

    Thanks....

    OK... I see that works. I'm doing the same thing.

  8. #8
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: Script code not inserting in body

    Would you like to attach your .web so we can have a look?
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  9. #9
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: Script code not inserting in body

    Works fine without the placeholder in Website > HTML Code Body . Especially if you want it to appear on each page.

  10. #10
    Join Date
    Dec 2006
    Location
    Park City, Utah
    Posts
    318

    Default Re: Script code not inserting in body

    Yes, Gary I can get it to work on all pages, but not using a placeholder.

    Neo, I can get your page to display the tab. If I create a blank page and create a place holder with the code it will not display. If I copy your place holder with the code to a blank new page it will not display either. I don't see the code when looking at the htlm code. This is strange. So what happens or is not happening is that the code is not inserted when I use place holders, makes no sense.

    I will upload a blank page with the code that does not show for me.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •