Jump to content

Filtovanie z hlavnej stranky


b253

Recommended Posts

Zdravim, potrebujem na uvodnu stranku dostat filter jednej kategorie, layered block ide zobrazit len na strankach kategorii,  takze to chcem cez javascript  urobil som formular,  potrebujem aby mi to co sa vo formulari vyberie odoslalo do url adresy kategorie, problem je ale ten ze mi do url adresy neodosle znaky ake chcem ,  neda tam lomitko ale nieco ine a tak mi to nic nevyfiltruje.

Tu je ten script:

 

<script type="text/javascript">// <![CDATA[

  function odosli(){

    var retazec=";

    retazec=document.forms["formular]["prvy"].value+" "+document.forms["formular"]["druhy"].value;

    document.forms["odosielaci"]["#"].value=retazec;

    document.forms["odosielaci"].submit();

  }

// ]]></script>

<form action="http://domenaobchodu.sk/kategoria" id="odosielaci" method="get">

<input name="#" type="hidden" /></form>

<form id="formular">

 

 

 

pricom odosielane data z formula by boli v tvare: /nieco

Edited by b253 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...