PDA

View Full Version : Adding script to Head Section


fishinsecrets
01-16-2008, 03:35 AM
Probably a simple question, but I have been unable to find a way to view a WE6 page in html in order to add Java or CSS code to the Head section... I would very much appreciate being shown the light.

Thanks!

supa
01-16-2008, 04:46 AM
properties inspector -> Top right press on little icon to choose : current page
Page Setting -> Head Elements :
every thing you write here will go to the head section.

Supa

fishinsecrets
01-16-2008, 04:56 AM
Thanks, Supa! I will give that a shot...

leslieadams
01-16-2008, 05:16 PM
I'm trying to do the same thing, add script in html for a password protect, but I can't seem to view the html coding. I've done it in Frontpage, but I'm not sure it's possible with WE6.

I'm actually becoming a little frustrated with WE6. I just purchased it about 2 months ago, previously I used Frontpage. I'm thinking about going back to it!

If anyone has any answers on viewing html in WE6, it would be SO MUCH appreciated!!

Thanks

Leslie

jefito
01-16-2008, 05:46 PM
I've written a "right click disabled" java script that WE will not implement with the inspector. So, I had to do it in notepad. If you have any inspector problems, you might try it in html.

1. Click on the start menu and choose "explore" to open windows explorer.
2. Find your Web Easy folder, open the "HTML" folder, find your website, then click on the desired page. Don't double-click, but single-click to select it.
3. Right click on it and choose "open with notepad". This will open your page in html view only.

4. You can then insert the code right into the head. Just save it, and then re-upload like normal. I've fixed numerous files like this.

supa
01-16-2008, 06:15 PM
You don't need to use any other editor in order to put an HTML code.

it is all depends on where you need to put that code.
is it in the HEAD area or the BODY ?

for both there is solution.

As i said before, if you need to put a code in the HEAD part of your page
(For example if it is a JAVA Script you need to put in the head then just put it like this :
properties inspector -> Top right press on little icon to choose : current page
Page Setting -> Head Elements :
every thing you write here will go to the head section.

If you need it to be in the Body section then it is just easy as insert a BOX to the page, press on it and go to : properties inspector -> Custom Script and put your code.

sometime you need to put both in order to make a script to work,
i mean in script that has 2 parts, one is the "preface" and the other is the actual object that will be shown on the page.

Supa

fishinsecrets
01-17-2008, 01:16 AM
Thanks to both of you. Supa, I tried a Java Script drop down navigation bar using your method last night, and had no luck. However, the script may have been flawed, so I am going to try a few different scripts tonight. If, for some reason it still doesn't work, I may try the pad method. Thanks again, to both of you for the advice!

supa
01-17-2008, 03:01 AM
play with some easy scripts and see how it works.
after you get the hang of it, you will know if the problem is the script or how you insert it...

Supa

jefito
01-17-2008, 05:36 PM
You'll find that WE doesn't like imported Java script too much. Even if it decides to accept the script, it starts acting up. This is why I use notepad, and bypass the program altogether. Web Easy's scripting isn't 100%. They have missing code all over the place. (of course, I only have 6. I won't upgrade any further, since I believe that 5 is the best version of all.)

If in doubt, once you publish your site, do a site verification check and you'll see how many scripting errors pop up! You can run this check using google, or Dr. Watson (which I prefer). Dr. Watson is the strictest site verifier I've seen yet.

Just run a search for "web site verification" and give it a shot. I sincerely hope that you come up with 0 errors. Your site has to be uploaded and online though.

Dave Koehler
01-19-2008, 02:20 AM
supa,
thanks for that. Solved a couple of things.

Is it just me or is everyone elses "head elements" limited to 3 lines AND you can't open it back up to revise it (shows blank)? OR is there some other obscure html thing I am supposed to know.

Support:
This is a good example of what I posted long ago. More work done on the help files would go far. For things like this we need advised of how and what this editable feature is used for along with an example. Vague programmer type explanations that assume we know as much about it as them will be of little use to your targeted group.

Dave Koehler

supa
01-22-2008, 05:19 AM
Dave Koehler said:
Is it just me or is everyone elses "head elements" limited to 3 lines AND you can't open it back up to revise it (shows blank)? OR is there some other obscure html thing I am supposed to know.

you need to choose to edit the document and not the "current page" option
in the inspector properties and then you should be able to edit those tricky fields that delete the content every time you press..
(i'm not near my pc so i maibe confused and it should be to choose the "current page" option)
but one of them will for sure let you edit the field without limit or erasing the content.
by the way..this solution works also for the different fields...

Supa

taogem
01-22-2008, 10:08 PM
Dave Koehler said:


you need to choose to edit the document and not the "current page" option
in the inspector properties and then you should be able to edit those tricky fields that delete the content every time you press..


Supa

I have been messing with this for some time, and finally got Google to verify so that I can use some of the tools and submit a site map !

For my problem of getting the Google meta verification code installed, the meta code does go in the "document" for it to work.

Thank you so much for pointing that out! :D Yes, I am a happy camper ;)

Dave Koehler
01-31-2008, 04:02 PM
Well, I can get it to show properly in the edit box now when I want to modify now. Not sure what I did differently but I will go with it.:D

However, I am still limited to 3 lines. Anyone doing more than 3 lines?

Thanks
Dave Koehler

supa
01-31-2008, 04:27 PM
strange to hear you can only insert 3 lines of code...
i don't have any limit what so ever.
do you run ver' 7 ?

when i open the Head elements field i have 7 lines space of code writing before it starts to scroll down to show the rest of coding.

Supa