User Profile

Collapse

Profile Sidebar

Collapse
AnonG
AnonG
Last Activity: Dec 13 '09, 03:17 AM
Joined: Sep 25 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AnonG
    replied to Form querystring manipulation.
    in PHP
    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. :)
    See more | Go to post

    Leave a comment:


  • AnonG
    replied to Form querystring manipulation.
    in PHP
    I mean, I created a function with what you wrote in it.

    Code:
    <script type="Javascript">
    function reset()
    {
    document.forms.IdM.value = 0;
    }
    </script>
    And then I included it into this.

    Code:
     <select class="Polje" name="IdR" onchange="if(this.options[this.selectedIndex].value != -1){ reset() forms['Spremeni'].submit() }">
    ...
    See more | Go to post

    Leave a comment:


  • AnonG
    replied to Form querystring manipulation.
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • AnonG
    replied to Form querystring manipulation.
    in PHP
    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?

    Code:
    <script type="Javascript">
    function reset()
    {
    document.forms["Spremeni"].elements["IdM"].selectedIndex = 0;
    }
    </script>
    I have tried adding this reset() to select fields and to option fields.....
    See more | Go to post

    Leave a comment:


  • AnonG
    replied to Form querystring manipulation.
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • AnonG
    started a topic Form querystring manipulation.
    in PHP

    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...
    See more | Go to post
No activity results to display
Show More
Working...