What code can I and can't I paste into an html widget?

  • 1
  • Question
  • Updated 10 years ago
  • Answered
What code can I and can't I paste into an html widget?
Some code out there says "paste this in head section"
and paste this into the "body section"

As far as I know we don't have access to the head section.
Can I paste this code "inline" in one html widget?

I've tried pasting it inline and it seems to work when you update
and view your site, but when you go back into the site editor it
just says "loading page" - forever.

Tried this numerous times - In the end you have to delete the page.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes

Posted 10 years ago

  • 1
Photo of Monique

Monique, VP of Customer Support

  • 6294 Posts
  • 446 Reply Likes
Hi Boomer

You are correct. You do not have access to the section of the page. Any HTML that should be pasted in the section is fine. If it needs to go in the section, it is best to exercise caution. Try it out on a test page first to avoid losing your work. If the page fails to load this means that the code is invalid or has been added incorrectly. Any HTML that you source via a link in SynthaSite (like widget code, form code, Genbook code etc) can be safely pasted. Also, always be careful to copy all the code. If you accidentally miss a portion this could also cause trouble.

Thanks for asking this question. I am sure it will save many people a good deal of trouble.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Trying to get my head (excuse the pun) around this?
Is there a difference between javascript and html?
Can I copy either one into an html widget? (if there's a difference)
I don't just want to stick with the stuff provided by Synthasite.
I have been using caution and created a test page - just in case.
Photo of Monique

Monique, VP of Customer Support

  • 6294 Posts
  • 446 Reply Likes
Perhaps you have already looked at the Wikipedia article on Javascript. If not, it is worth a look: http://en.wikipedia.org/wiki/JavaScript

You can paste Javascript in the HTML widget in SynthaSite.

I understand your desire to innovate and develop your site beyond the features that SynthaSite currently offers. I keep a test site for experimenting on so that the consequences are not too dire if something goes wrong. I am glad to hear that you also do this! If you find something that works well, by all means share it. As you have noticed there are other advanced users who participate in this forum who have good advice to share ;-)
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Thanks Monique,

I knew there wasn't really a short answer to my question, but I did
learn something new though. New to site building and all these new
languages. I'm old school - BASIC "hello world" stuff.

I do however program (every day) in assembler -embedded micro code.
If your code isn't heavilly commented you battle to understand it yourself.
Done some html tutorials online - battling to grasp it.

Anyway I'm not expecting an answer here - just wanted to put you in
the picture. Thanks for all you do here.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Thanks Monique

Photo of Monique

Monique, VP of Customer Support

  • 6294 Posts
  • 446 Reply Likes
Aw - cute puppy!
Photo of Monique

Monique, VP of Customer Support

  • 6294 Posts
  • 446 Reply Likes
Thanks again for a very interesting discussion. This really goes to the heart of what SynthaSite is all about! When people sign up for an account we tell them that they do not have to be able to write code to build a website. And that really is what we provide in our site builder. We want to do this more and more as we develop. SynthaSite tries to remove every barrier to entry that we can (both in terms of cost and technical knowledge). However, we also want to give you the ability to create a professional, highly customized website. We tackle this challenge in two ways:
1) By continuing to develop more features that will allow you to create a dynamic website that is a true expression of your own creativity.
2) Providing an HTML editor to allow advanced users to customize their site to some extent (either by writing their own code, or by copying and pasting)

Ultimately we would like to turn anything you need to add now by copying and pasting or writing HTML into a fully integrated feature that you can simply drag and drop (like our Widgetbox Gallery, or Meebo room widget) But while we are developing we hope that the HTML editor at least increases your options in the meantime.

Tip: You can google for just about any code you might need for your site. You can also make use of handy HTML generators like: http://www.htmlbasix.com/ that will generate code for you. And of course, keep up with those tutorials!