Jump to content

rizwansyed

Members
  • Posts

    72
  • Joined

  • Last visited

Recent Profile Visitors

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

rizwansyed's Achievements

Newbie

Newbie (1/7)

1

Reputation

  1. Hi Guys Am having a huge html code and it is not aligned properly. Am using Notepad++ to edit the code. How can i make it properly aligned using online tools or with in notepad++? Is there a way to do it? Thanks and Regards Rizwan Syed
  2. Hi Guys, I came across the below code for sending a request for downloading a file from server. <a href="file link" download target="_blank">Click here to download</a> But on server side am handling many requests with GET and POST along with resource name. How can i change above line of code so that i can submit it to server with resource and GET/POST request. Please help Thanks and Regards Rizwan Syed
  3. Hi How can i solve it? Please suggest
  4. 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
  5. 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).
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
×
×
  • Create New...