Need help? Check out our Support site, then


Text Widget - HTML code for library search box

  1. Hi. I'm a newbie to WordPress (and blogging in general).

    I'm working on a blogg for my public library and want to have a small search box in the right sidebar where people can enter the search term, press the search button, and continue to the 'hitlist' in the library websearch/OPAC.

    Have tried with the Text Widget (Arbitrary text or HTML), but upon saving the widget
    strips out most of the code.

    This is the code from our supplier of the library "household"-program:

    > <form method='POST' action='http://bibliotek.sarpsborg.com/mikromarc/wsHitList.Asp?Unitid=0&setDocgrp=1'>
    > <input type='hidden' name='searchUnitId' value='0'>
    > <input type='hidden' name='searchDocGrp' value='1'>
    > <input type='hidden' name='SCode1' value='FT'>
    > <b>Søk i katalogen:</b><br />
    > <input type='text' size='20' class=input_200' name="SearchStr1" id="SearchStr1">
    > <br /><input type='submit' name='submit' value='Start søk'>
    > </form>

    This is how the widget saves it:

    > <form method='POST' action='http://bibliotek.sarpsborg.com/mikromarc/wsHitList.Asp?Unitid=0&setDocgrp=1'>
    > <b>Søk i katalogen:</b><br />
    > <br />
    > </form>
    > <br />
    > <br />

    I hope there is a simple solution... :-)

    I have made drafts to our blog in both blogspot and wordpress. The search box works in blogspot, but wordpress' features are superior and I would very much like to have this search box...

    http://sarpsborgbibliotek.wordpress.com/
    http://sarpsborgbibliotek.blogspot.com/

    You can see the search box 'in action' in the right sidebar of the blogspot version: "Søk i katalogen". The blog is in Norwegian, so don't expect to understand what is written... :-)

    I have been reading a bit here now (made a mistake and posted in the .org forums first).
    "...plain old HTML/XHTML only" someone said and no java/javascript. I don't think "my" code is javascript?

    Online, Theme: Andreas09

    Thanks in advance! :-)

  2. Forms, along with iframes, javascript and flash, are all stripped out at wordpress.com for security reasons.

  3. Hi ellaella! Thanks. I got what I wanted: a quick and simple answer... :-)

    The fact that I did not like the answer is not your fault... :-)

    kind regards from vegard

Topic Closed

This topic has been closed to new replies.

About this Topic