Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About shobhit.singh783

  • Rank
  1. Thanks in advance for replying and to share with me knowlenge!Actually this question is asked by interviewer to me that why we use xml then I told that by using xml we can store and send data.After that interviewer told me that, then tell me use of html. I told him html is used to focus on how data looks. But I strucked on point when he told me we can not use html for storing and sending data, html is nothing but xml so why we should xml and not to html. Either I did not satisfied him but I got the job. :)Regards,Shobhit
  2. * XML was designed to transport and store data, with focus on what data is. * HTML was designed to display data, with focus on how data looks.I think we can also use html to transport and store data as a replacement over xml.Pls put your thoughts for why we should prefer xml over html to transport and store data.My thoughts: 1) We can use xml to store and send dynamic data and for this we only have to use few lines of code. 2) We can use our own tags and not to depend on predefined tags as in html like <tr><td><br>...... etc.Your suggestions will be highly appreciated.Regards,Shobhit
  3. Thanks for your help. I think this will help me.Best RegardsShobhit
  4. I created table with html, I want to resize every columns, like windows resizing. I want to resize the columns I want the resize mouse symbol,(col-resize) then i want to drag into horizontal, these all r comes under onmousedown event then onmouseup i want to fix the width of the cell. can u please help me to complete this? <html><head><link rel="stylesheet" href="page.css"><script>function funcall(event){var x=0;var acv = document.getElementById("w");var curr_width = parseInt(acv.style.width);var change_wd = acv.style.width = (curr_width + 10) +"px";document.write("change_wd: "+change_wd);evt=event || window.event;if(evt.pageX)document.write("Mouse X: "+evt.pageX+"Mouse Y: "+evt.pageY);//FF}</script></head><body><div align="center"><table><tr><td><a id="size" href="" onmousedown="funcall(event)"><div id="w" style="width:20px">first</div></a></td><td><a id="size" href=""><div>second</div></a></td><td><a id="size" href=""><div>third</div></a></td><td><a id="size" href=""><div>fourth</div></a></td></tr></table></div></body></html> CSS file: #size {width: 4px;cursor: col-resize;} -Shobhit
  5. Hi,I am trying to get popup window without titlebar.Below is the sample code. This still gets with titlebar.Is it possible with js? If yes then pl tell me what modification is required.Thanks,Shobhit <html><head><script>function funcall(){mywindow=window.open("","","status=0,width=350,height=150,titlebar=0");mywindow.document.write("<a href='java script:self.close()'>Close window</a>");mywindow.document.write("<br><br>hello");}</script></head><body><a href="java script:funcall()">Click here</a></body></html>
  6. I want to make the header and nav menu stretch the length of a screen.Pl guys help me to do this.Post here your tips or may be some part of code.I am using html/javascript/cssSorry! I did not clear my problem.I am writing below what I want.i created table with html, i want to resize every rows and columns, like windows resizing i want to resize the rows , at every cells in the rows and columns i want the resize mouse symbol,(e-resize) then i want to drag into horizontal, these all r comes under onmousedown event then onmouseup i want to fix the width of the cell. can u please help me on this, Thanks,Shobhit
  7. Hi,When mouse cursor touch on menu then child menu appears and when mouse cursor go away from menu block then it should hide child menus.My problem is: Above task is done on FireFox but In IE 7.0 when mouse cursor go away from menu block then it does not hide child menus.Below I am posting some part of html and css code.Pl help me to fix problem in IE. CSS::...ul.navbar li > ul { /* using the > selector prevents many lesser browsers (and IE - see below) hiding child ULs */ display: none; /* hides child menu blocks - one of the most important declarations */ position: absolute; /* make child blocks hover without leaving space for them */ top: 15px; /* position slightly lower than the parent menu item */ bottom: 20px; /* this must not be more than the width of the parent block, or the mouse willhave to move off the element to move between blocks, and the menu will close */ color: purple; }... <ul class="navbar">....<td> <li><a href="" onmouseover="mouseOver()">AboutNick'sMuffins</a> <ul> <li><a href="link1.html"><span id="a"></span></a></li> <li><a href="link2.html"><span id="b"></span></a></li> <li><a href="link3.html"><span id="c"></span></a></li> <li><a href="link4.html"><span id="d"></span></a></li> <li><a href="link5.html"><span id="e"></span></a></li> </ul> </td>.. thanks
  8. I also tried this but still problem is same.Other thing you posted here I am getting little bit but If you or anyone post in detail then it will help me to solve my problem..Regards
  9. Hi,Below is code for three options and fourth one is none value and selected.I want this--> when I select any option like option Campaign Report One for value="1" and data displays on page. I want when I refresh the page then I look 4th option value="none" is selected in place of option Campaign Report One for value="1" selected. <html>...Select Campaign:<select name="campaigns" onchange='writebox(this.form);'> <option value="1">Campaign Report One</option> <option value="2">Campaign Report Two</option> <option value="3">Campaign Report Three</option> <option value="none" selected>------Select option------</option></select>...</html> Anybody please post suggestions.
  10. I think this is reason.Thanks for your reply.Regards
  11. Hi,Sorry many days passed before I read your post.According to you should I do this?Paste testAjax.htm and time.asp in location E:\apache-tomcat-5.5.26\webapps\jsp-examples and then start tomacat server and trying url: http://localhost:8080/testAjax.html but it is not working.
  12. I am trying below small ajax application from w3schools.org.According to this when I will open html file in browser then 2 text fields will appear and when We will enter name in Name text field then time wull automaticaly will apear in Time: text field.When I try this in IE 7.0 It does not work but when I try with firefox it work little bit but in place of time, all time.asp data appears in time field.As like-->Name: Shobhit Time: <% response.expires=-1 response.write(time) %>Expected Result-->Name: Shobhit Time: 7:48:22 AM testAjax.htm <html><body><script type="text/javascript">function ajaxFunction(){var xmlHttp;try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); }catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.myForm.time.value=xmlHttp.responseText; } } xmlHttp.open("GET","time.asp",true); xmlHttp.send(null); } </script> <form name="myForm">Name: <input type="text" onkeyup="ajaxFunction();" name="username" />Time: <input type="text" name="time" /></form></body></html> time.asp <%response.expires=-1response.write(time)%> Pl post here your suggestions.Thanks,Shobhit
  13. Hi,I created page using html,css,java script in which Navigation menu should have submenu and The content for all submenus should be comes from .json file.Can any body know good example by which I will get the correct way. I tried to find example but till now no luck.
  • Create New...