User Profile
Collapse
-
Yep. Been like that since day one. I kinda need to get it to work every time not every second, hehe. But my lack of JS skills doesn't help at all. :) -
I mean, I created a function with what you wrote in it.
And then I included it into this.Code:<script type="Javascript"> function reset() { document.forms.IdM.value = 0; } </script>
...Code:<select class="Polje" name="IdR" onchange="if(this.options[this.selectedIndex].value != -1){ reset() forms['Spremeni'].submit() }">Leave a comment:
-
Were should I put that? I've tried adding it into select onchange"" but then I can't change region. Nothing happens when I click it.Leave a comment:
-
I have no knowledge of JS. I've been googling for hours now and I didn't find anything useful.
Am I going into the right direction?
I have tried adding this reset() to select fields and to option fields.....Code:<script type="Javascript"> function reset() { document.forms["Spremeni"].elements["IdM"].selectedIndex = 0; } </script>Leave a comment:
-
If I add a hidden input with name IdM then I get this: IdR=1&IdM=0&IdM =whatever it was before.
I think I don't understand exactly what you mean.
About ajax, I need to refresh page each time because that way all links get new paths. Sort of like categories / subcategories on a webstore page.Leave a comment:
-
Form querystring manipulation.
Hi all,
I'm trying to create a simple navigation script. It allows you to select a region. Once region is selected another list opens up and you can select a city within that region. It all works fine, you can change cities freely and url updates correctly. BUT if you have a city selected and want to re-select the region, the city id stays in the url which messes up my page.
Some examples:
http://192.168.2.16/Seznam.php?IdR= 1...
No activity results to display
Show More
Leave a comment: