Javascript can’t fit on one line when it needs to be

  • Author
    Posts
  • #501286

    happehchaos
    Member

    I’m using a javascript code that needs to be on one line for it to work, but the wordpress editor isn’t wide enough for it to fit on one line. I’ve tried moving the panels on the right, and making the panel on the left thinner, but neither made a big enough difference in the width of the posting box. This is the line of code i’m using:

    document.getElementById(‘search’).innerHTML=”<form action=’/item-database’ method=’POST’>Item Name:<input type=’text’name=’name’><input type=’submit’value=’search’></form>”

    If you guys could give me any way of making this fit on one line, that would be great.

    Thanks,
    happehchaos

    #501413

    timethief
    Member

    Hello there,
    Here at wordpress.COM all JavaScript is stripped out by the software to preserve security on this multiuser blogging platform. http://en.support.wordpress.com/code/ However, you failed to post the URL for the blog in question so maybe you are in the wrong forum. Please read this https://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1 and then head over to http://wordpress.ORG/support/ if you have a wordprespress.ORG install. If that not the case, then post again and provide the URL for the blog in question starting with http://

The topic ‘Javascript can’t fit on one line when it needs to be’ is closed to new replies.