nolo, here is my actual code without the stuff in the middle. My missing
single quote was just a typo.
<Script Language='Javascript'>
//Gets a count
function getcount(form)
{
for ( var i = 0; i < 16; i++)
{
(stuff to do)
}
}
</Script>
Like I said, I'm a newbie and trying to piece javascript out using web
tutors.
Here's the error message from Blogger:
Your template could not be parsed as it is not well-formed. Please make sure
all XML elements are closed properly.
XML error message: The content of elements must consist of well-formed
character data or markup.
All elements are closed. I've checked and double checked. Without the
above code Blogger saves my template.
How would you write this loop.
Thanks,
Jim
"nolo contendere" <si********@fmr.comwrote in message
news:11*********************@o38g2000hse.googlegro ups.com...
On Nov 14, 4:43 pm, "Jim" <jc...@NOJUNKMAILsbcglobal.netwrote:
>I'm a newbie so I'm probably doing something simple and dumb but I just
can't get Blogger to accept a JavaScript for/next loop.
Here's what I've tried
<Script Language='JavaScript>
{
for (var i = 0; i < 16; i++)
{
Code to do stuff here with checkboxes. But, no matter what I put
here, including nothing, Blogger says this for/loop code is not formed
correctly.
}}
</Script>
Is there something wrong with my syntax here or is it just a Blogger
thing?
Why are there curly braces surrounding your 'for' loop?