Hmm I have never seen such an issue - an you're 100% positive that you remembered to save the file? Or that it was not overwritten by someone else somehow? And does this problem still persist?
The first time it happened (Friday) I made the changes in VS2010, and the Body tag would revert back to normal. But when I look at the template in Umbraco it would show the change correctly. You could see VS2010 was saving the change <Body onload="displayTime('fr')"> but after the change the tag changed back to <Body> (very very weird)
Yesterday (Monday) the javascript disappeared again but I cannot reproduce the same problem - Maybe it was a glitch and it is not a problem now but I thought I'd just see if anyone else has had the same issue or similar.
onload call disappearing from <body> tag
Has anyone come across a problem where they lose the attributes within the body tag?
It has happened on several occasions where the following entry in my master template:
<body onload="displayTime('fr')">
resets back to:
<body>
I thought it might be something to do with me editing the template using VS2010 but I'm unable to reproduce the problem.
TIA
David
Hi David
Hmm I have never seen such an issue - an you're 100% positive that you remembered to save the file? Or that it was not overwritten by someone else somehow? And does this problem still persist?
/Jan
Hello Jan,
The first time it happened (Friday) I made the changes in VS2010, and the Body tag would revert back to normal. But when I look at the template in Umbraco it would show the change correctly. You could see VS2010 was saving the change <Body onload="displayTime('fr')"> but after the change the tag changed back to <Body> (very very weird)
Yesterday (Monday) the javascript disappeared again but I cannot reproduce the same problem - Maybe it was a glitch and it is not a problem now but I thought I'd just see if anyone else has had the same issue or similar.
Regards
David
Hi David,
Could it be that you have a pre-build or post-build action in your VS2010 project that would overwrite your change with an old file at compile time?
Cheers,
Michael.
Thanks Michael for the reply.
Its definately nothing to do with pre or post-build actions.
Regards
David
I am experiencing a similar problem. I have posted that item here: Still waiting for resolution
is working on a reply...