# Mysterious Javascript showing up & trashing page

**URL:** <https://www.ruby-forum.com/t/mysterious-javascript-showing-up-trashing-page/106031>\
**Category:** Rails\
**Created:** [June 5, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/mysterious-javascript-showing-up-trashing-page/106031 "2007-06-05T20:34:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrivero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrivero](https://www.ruby-forum.com/u/jrivero)\
**Post date:** [June 5, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/mysterious-javascript-showing-up-trashing-page/106031/1 "2007-06-05T20:34:06Z")

</div>

Every time I edit a particular page, a bit of javascript myseteriously  
shows up when I save it. After that, the page does not lie correctly,  
and the items at the end of the list are covered over by elements from  
the stylesheet. The script is as follows:

&nbsp;

**Lectures, Workshops & Activities** &nbsp;

![Activities Page Photo Banner](https://www.ruby-forum.com/userFiles/Image/Activities_Banner(1).jpg)_Heritage offers a full schedule of programming for everyone !_   
   
 Below is a list of workshops and activities for non-children.&nbsp; Click on any of the topics to get the full description.

Garden Activities  
[The Walking Club](http://www.heritagemuseumsandgardens.org/walking_club) - _for Members only_  
[Yoga in the Gardens](http://www.heritagemuseumsandgardens.org/yoga), with Catherine Paulson  
[Mornings in the Gardens](http://www.heritagemuseumsandgardens.org/mornings_in_the_garden)  
[Hypertufa Trough Workshop](http://www.heritagemuseumsandgardens.org/hypertufa)   
[Ikenbana Flower Arranging Workshop](http://www.heritagemuseumsandgardens.org/ikebana), with Kaye Vosburgh  
 [Heritage Croquet Club](http://www.heritagemuseumsandgardens.org/croquet)  
[Enchanted Garden Tour](http://www.heritagemuseumsandgardens.org/garden_tour) - the private gardens of Chatham

Workshops  
[Ikebana Flower Arranging](http://www.heritagemuseumsandgardens.org/ikebana), with Kaye Vosburgh  
[Digital Photography](http://www.heritagemuseumsandgardens.org/digital_photo_workshop), with Michael Dallaire. **SOLD OUT!** _Due to the popularity of this workshop, we will be holding another on this Fall. Please call 508.888.3300, x-134 for more details._   
 [Hypertufa Trough Workshop](http://www.heritagemuseumsandgardens.org/hypertufa)  
[Yoga in the Gardens](http://www.heritagemuseumsandgardens.org/yoga), &nbsp;with Cathering Paulson  
[Croquet Workshop, with Bob Kroeger](http://www.heritagemuseumsandgardens.org/croquet)

Lectures  
[Mornings in the Gardens](http://www.heritagemuseumsandgardens.org/mornings_in_the_garden)

**Concerts**  
 [The American Echos Concert Series](http://www.heritagemuseumsandgardens.org/concert_series)  
[Mode4Music Music Studios  
Score Music Studios](http://www.heritagemuseumsandgardens.org/music_schools)

Events  
[Enchanted Gardens Tour - the Enchanted Gardens of Chatham](http://www.heritagemuseumsandgardens.org/garden_tour)  
[Circus Smirkus](https://www.ruby-forum.com/circus_smirkus)  
[10th Annual Heritage Cup Golf Tournament](http://www.heritagemuseumsandgardens.org/2007_golf_signup)  
[Auto Shows](https://www.ruby-forum.com/2007_auto_shows)

I am not an html/css coder. I am confined to the editor provided by our  
web provider. After this page is trashed, I can never edit it again.  
I’ve copied the page and even re-written it from scratch, and the same  
thing happens. I figured there has to be something in the last few  
lines. Any help would be greatly appreciated. The web provider just  
tells me to “stop putting java script into my pages.” Since I wouldn’t  
know javascript if I fell over it, I take this message to mean that I am  
on my own with this one. Any help would be greatly appreciated. Thanks  
in advance.

---

<div class="post-metadata">

**Author:** ![jrivero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrivero](https://www.ruby-forum.com/u/jrivero)\
**Post date:** [June 5, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/mysterious-javascript-showing-up-trashing-page/106031/2 "2007-06-05T21:25:55Z")

</div>

Well I don’t see anything wrong with that bit of HTML, so the problem  
could  
stem from a lot of places. It sounds like cross site scripting of some  
sort,  
but it’s hard to tell just from the description. It could be a bug with  
the  
web app. Tell the developers to look into it, as there’s nothing wrong  
with  
what you’re inputting.

Jason
