Jump to content

rizwansyed

Members
  • Content Count

    70
  • Joined

  • Last visited

Community Reputation

1 Neutral

About rizwansyed

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. rizwansyed

    onsubmit for multiple functions

    Hi How can i solve it? Please suggest
  2. rizwansyed

    static data fill on webpage load

    Hi I need to get some data whenever page loads (as it is static data not dynamic). I used onload event but it works only for first text box and i have many text boxes in other tabs also where i need to get data only once. I tried with addeventlistener but it has some dependency like , button click or clicking anywhere in document. I want is, load all the static data when ever webpage opens first time without clciking anything. I have 6 to 7 tabs where many textboxes are there and where the value should be dispalyed on webpage load Any suggestions how to proceed
  3. rizwansyed

    onsubmit for multiple functions

    Hi I am using onsubmit button for user login onsubmit="return vald1();myFunctiona010(event)" It has two functions to be called. One is to prevent default (preventing from going to next page) and other one to get signout option. Problem is , i need to click 2 times to get signout button. Is it possible to do it in one click(prevent default and getting signout option).
  4. rizwansyed

    text not submitting

    Hi I have a code where am using a select drop down and for 5th variable a text box will be opened and need to enter the value. But the entered value is not submitting at the server . <form action="/COHARToutputsimulation" id="chout" method="post" target="formDestination"> <font size="5"> <strong>Output Simulation-HART: </font></strong> <select name="selected" onchange="cooutsim(this.value)"> <option value="0"> Simulate - 4 mA</option> <option value="1">Simulate - 8 mA</option> <option value="2">Simulate - 12 mA</option> <option value="3">Simulate - 16 mA</option> <option value="4">Simulate - 20 mA</option> <option value="5">Simulate value </option> </select> <input type="text" id="ousi" size="10px" style="display:none;"> &emsp; <input type="submit" style="font-size:10pt;" onclick="chrtout(event)"> </form> <script> function cooutsim(val) { if(val == 5) { document.getElementById("ousi").style.display="inline"; } else { document.getElementById("ousi").style.display="none"; } } function chrtout(event) { var myForm = document.getElementById('chout'); event.preventDefault(); formData = new FormData(myForm); var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("chout").innerHTML =this.responseText; } }; xhttp.open("POST", "COHARToutputsimulation",true); xhttp.send(formData); return true; } </script> What is the issue am not getting. Please suggest Thanks and Regards Rizwan Syed
  5. Hi Guys, I am using ajax form data to send a data to server. In that i have 1 textbox and 2 buttons which uses event.preventdefault(); On my server , only text box value is received , button values are not received. Instead of <input name="subject" type="submit" id="pingfromws1" value="Start" onclick="pingg3(event)"> <input name="subject" type="submit" id="pingfromws2" value="Stop" onclick="pingg3(event)"> i gave button also..still the value of pressed button is not submitted to server. <form action="/pingfromws.txt" method="post" id="pingfromws" > <label><strong>Ping:</label></strong><input name="ip" id="ip" type="text" min="0" max="255"> <input name="subject" type="submit" id="pingfromws1" value="Start" onclick="pingg3(event)"> <input name="subject" type="submit" id="pingfromws2" value="Stop" onclick="pingg3(event)">   <p id="pin1" style="display:inline;font-size:17px;"></p> </form> <script> function pingg3(event) { var myForm = document.getElementById('pingfromws'); event.preventDefault(); formData = new FormData(myForm); var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("pingfromws").innerHTML = this.responseText; } }; xhttp.open("POST", "pingfromws.txt",true); xhttp.send(formData); return true; } </script> am using a formdata, so only form data is getting submitted and not button data. If so, Then how can i send a button data along with above code....i need text value and button value to be submitted at once without submit redirection to other page. How can i do that Please provide the suggestions Thanks and Regards Rizwan Syed
  6. rizwansyed

    Web page changes on other monitors

    Hi Thanks for the suggestions. Actually tried with width 40% directly.It was fine when compared with before code. So i just wanted to use direct screen size to avoid confusion on browser window size or other monitor size. Thanks and Regards Rizwan Syed
  7. rizwansyed

    Web page changes on other monitors

    Hi If browser window is full, then it will be similar to Monitor size. I want to give 40% of screen width like screen.width*0.4 instead of width: 800px; How can i do it? Thanks and Regards Rizwan Syed
  8. rizwansyed

    Web page changes on other monitors

    Hi i have seen a property of screen.width; If i use this property , it will be helpful.I thought to use like screen.width* 0.4 How to define it in style <style> div.check { background-color: lightgrey; width: 800px; border-style: solid; border-color: #92a8d1; display: inline-block; } </style> Instead of 800px in above style content, i think i can try with width: 40% Whether the 40% will be taken form total width of screen? Thanks and Regards Rizwan Syed
  9. rizwansyed

    Web page changes on other monitors

    Hi I have attached two images. My web page should look similar to capture 1 image (monitor size is 1920*1080 ) but when monitor changes (monitor size is 1366*768) it changes similar to capture 3 (box comes under other not side by side as in capture1 image). div.check am using to create a box of width 800px. Is it possible to make its size in percentage of moinitor instead of 800px. I mean based on monitor, its size should be changed? <style> div.check { background-color: lightgrey; width: 800px; border-style: solid; border-color: #92a8d1; display: inline-block; } </style> <div class="check"> //code for BOX 1 </div> <div class="check"> //code for BOX 2 </div> <div class="check"> //code for BOX 3 </div> <div class="check"> //code for BOX 4 </div> Thanks and Regards Rizwan Syed
  10. rizwansyed

    Web page changes on other monitors

    Hi My Web page changes when i try to open in different resolutions monitor. Whole content is getting changed .It is not as expected. I want my web page to be same irrespective of monitors. Is there any settings to do or any sample web page which has help to do this Please suggest Thanks and Regards Rizwan Syed
  11. rizwansyed

    date format change

    Hi I need to manually select 12 and 24 hr time format How to get a 12 hr and 24 hr time picker .? Is there any code or link available
  12. rizwansyed

    login with tabs

    Hi user names and their verification are authorized on server side.But tabs are purely in html. We need to restrict the tabs on based on users. The code suggested by JMRKER was helpful but it has radio button instead of dropdown and i need tabs exactly as shown in image above. so that i can add my data which is already implemented. Thanks and Regards Rizwan Syed
  13. rizwansyed

    login with tabs

    Hi I need a login option as shown below from dropdown and entering password. Actually i require a tabs as shown below with user restrictions .Because under each tab , i have nested tabs and more data included already. So i f get like above, it will be easy for me to proceed.please help on this Thanks and Regards Rizwan Syed
  14. rizwansyed

    login with tabs

    Hi Actually i need to use the tabs menu and dropdown option instead of radio button for my requirement. So i was trying that way. Can you suggest me, how to get tabs and dropdown for same requirement Thanks and Regards Rizwan syed
  15. rizwansyed

    login with tabs

    Hi I tried the below code with my requirement. https://www.w3schools.com/code/tryit.asp?filename=FW7UUNK298CD Only the boxes are getting hidden but when i click user radio button nothing appears. Please help what is wrong here. Thanks and Regards Rizwan Syed
×