Jump to content

rizwansyed

Members
  • Posts

    72
  • Joined

  • Last visited

Posts posted by rizwansyed

  1. Hi Dsonesuk

    Now it works fine.Now only issue here am facing is that using two divs     "option1" and "select option1" appears top and bottom (as shown in attached image)

    Instead I require it side by side with a small gap.

    I tried using <br> <div>, it does not work

    submit_image.PNG

  2. Hi 

    I have two options  like option1 and option2 from a drop down list.

    When i select option1,it shows option1A  and option1B

    When i select option2,it shows option2A  and option2B.

    Its like either of one selection.After selecting, how can i submit the form.

    where to call the submit button , so that both my selected values gets submitted.

    Attached is the file

     

    Thanks and Regards

    Rizwan Syed

    submit form.txt

  3. Hi

    I need to get a selected data from drop down list and then use it in other tab.

    For example , If i have 2 tabs and in tab 1 if i select "SI units" then in other tab only "A" should be visible and "B" should be hidden or disabled

    if i select "US units" then in other tab only "B" should be visible and "A" should be hidden or disabled.

    I have attached a text file for this

    Please suggest 

     

    Thanks In advance

    accessing different tab content.txt

  4. Hi Dsonesuk

    Am trying to do it in HTML.Am not getting it.

    How to use localstorage in html.I tried like below code .

    https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_tabs

    <script>
    function openCity(evt, cityName) {
        var i, tabcontent, tablinks,temp;
        tabcontent = document.getElementsByClassName("tabcontent");
        for (i = 0; i < tabcontent.length; i++) {
            tabcontent.style.display = "none";
        }
        tablinks = document.getElementsByClassName("tablinks");
        for (i = 0; i < tablinks.length; i++) {
            tablinks.className = tablinks.className.replace(" active", "");
             if (tablinks === cityName) {
                            tablinks.className = "active";
                             localStorage.activeLI = i;
        }
        document.getElementById(cityName).style.display = "block";
        evt.currentTarget.className += " active";
    }
    </script>

     

    Please suggest with this, how to proceed.

     

    Thanks and Regards

    Rizwan Syed

  5. Hi Funce 

    Thanks for the reply.

    I have a dynamic data which keeps on updating.So i need a refresh.

    Do you have any java script for this implementation.

     

    Thanks and Regards

    Rizwan Syed

    • Like 1
  6. Hi

    Am using <meta http-equiv="refresh" content="5"> for page refresh for every 5 seconds in HTML.

    I have 6 to 7 tabs in my page.

    If am in 5th tab , after refresh it goes to default page.

    How can i stay in 5th tab only even after refresh in HTML.

     

    Thanks and Regards

    Rizwan Syed

  7. Hi

    I have a board reneses synergy s7g2 board.

    Please find the attached Submit button file in html which has  a html snippet.

    I have a list of languages which can be selected from drop down list and then i press submit button so that i can receive the selected language on my board.

    I have a code in my c file in renesas baord  with    else if ((NX_HTTP_SERVER_POST_REQUEST == request_type) && (0 == strcmp(resource, "/language")))

    It compares with my Html file code like <form action="/language" method="post">

    So whenever i press submit button, it goes to other page like 192.100.5.45/language.So i want to avoid going to next page .

     

    My requirement is, when ever i submit, it should be in same page or if it goes to other page , i need a workaround like automatically coming back to default page with in a second.

    Please suggest

    Thanks and Regards

    Rizwan Syed

    submit buttton code.txt

  8. Hi

    Whenever i click on submit button,It goes to other page as shown in attached figure.

    Is there any option to automatically press back button of browser or the back option after 1 second as shown in the attached image.

    Please suggest

     

    Thanks and Regards

    Rizwan Syed

    back_button.PNG

  9. Thanks Dsonesuk.

    One more clarification, As shown in the below figure.

    Just by selecting a radio button (without using a submit button)  , Is it possible to send a value to my board saying that particular radio button is selected

    Please select your favorite season:

     Spring  Summer  Fall  Winter
     
    Please suggest
     
    Thanks and Regards
    Rizwan Syed
  10. Hi

    I am working on radio buttons.How can i get a selected radio button value to be displayed in text box.

    1.I have a following snippet code. When ever i try to write radVal value in text box,it writes radVal and not the value.

    <form id="mainForm" name="mainForm">
        <input type="radio" name="rads" value="1" />
        <input type="radio" name="rads" value="2" />
        <input type="radio" name="rads" value="3" />
        <input type="radio" name="rads" value="4" />
    </form>
    <span id="result"></span>

    <script>
    document.mainForm.onclick = function(){
        var radVal = document.mainForm.rads.value;
        result.innerHTML = 'You selected: '+radVal;
    }
    </script>


      <input type="text" name="firstname" value=radVal>
      <br>
      
      <br><br>
      <input type="submit" value="Submit">

     

     

    Thanks and Regards

    Rizwan Syed

     

     

    Please suggest how to proceed

  11. Hi 

    Am working on nested tabs, but level 1 tabs work fine but all the level 2 tabs displays data at once.

    I have attached a source code .

    For example, with attached code when i click on London->open Collapsible

    That time internal 3 tabs data in "open collapsible" are visible at once.

    How can i hide it?

    Please suggest

    Thanks and Regards

    Rizwan Syed

    test.txt

×
×
  • Create New...