User Profile

Collapse

Profile Sidebar

Collapse
rigaconnect
rigaconnect
Last Activity: Dec 30 '12, 10:05 AM
Joined: Dec 26 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sorry, get solution by myself. May be for someone else would be useful.
    file __02.php

    Code:
    <?php
    
    if ($granted_pension==1) {echo '
    Salary book (pension variable)
    <select name="salary_book_not_submitted" onChange="salary_book(this.value);" style="margin-bottom:3px; width:115px">
    <option value="1">submitted</option>
    <option value="2">not
    ...
    See more | Go to post

    Leave a comment:


  • rigaconnect
    started a topic php ajax nested div: no change after ajax call
    in PHP

    php ajax nested div: no change after ajax call

    If I click on "not submitted" at Salary book get text "hide depending on salary book option". Then click on "submitted" at Salary book and get text "show depending on salary book option". That is ok.

    Next
    Click on "Yes" at Pension. Then click "No" at Pension. So far is ok.

    But here is problem. If I click again on "not submitted" at Salary book...
    See more | Go to post

  • By default (when open page) I get displayed this
    <div id="showData2"> Use the select box to change page content</div>

    If from drop down menu I choose for example <option value="1">Page Content 1</option>, I get displayed this
    if ($q2==1) {echo "Page Content 1q2 would be shown";}

    So far everything is ok.

    But if I press button Submit, page reloads....
    See more | Go to post
    Last edited by acoder; Dec 31 '12, 12:41 AM. Reason: Some inline code tags

    Leave a comment:


  • Question is
    How to get the aim is that after page reload <div id="showData2" > remembers chosen value (text)? At the moment it displays default value...
    See more | Go to post

    Leave a comment:


  • Now the aim is that after page reload <div id="showData2" > remembers chosen value (text). At the moment it displays default value...

    file.php
    Code:
    <head>
    <script type="text/javascript">
    function showData2(str)
    {
    if (str=="")
      {
      document.getElementById("showData2").innerHTML="";
      return;
      }
    ...
    See more | Go to post

    Leave a comment:


  • remember selection of drop down menu using ajax with php

    I have drop down menu.
    If visitor selects certain option from drop down menu I need to show certain content (without page reload; so I need to use Ajax).

    At the same time I need save selection of drop down menu after visitor click on Submit button and page reloads.

    Below is code.
    The first menu remembers selection but does not display content (Ajax does not work).

    The second menu only Ajax...
    See more | Go to post
No activity results to display
Show More
Working...