DangerDev 107 Posting Pro in Training

this one is nice. try it
or this
or the best

DangerDev 107 Posting Pro in Training

use <br><br> between 2 QA block or another way is using one blank <div></div> with some style between two QA block.

DangerDev 107 Posting Pro in Training

first read this, this will give some information about ajax.

DangerDev 107 Posting Pro in Training

ok
getElementById works fine in IE and FF. just check your js code.
see one example:

<html>
<head>
<script type='text/javascript'>
	function clickMe()
	{
		document.getElementById('txt_id').value="hi how are you";
	}
</script>
</head>
<body>
<input type='text' id='txt_id'/>
<input type='button' value='click me!' onclick='clickMe()'/>

</body>
</html>
DangerDev 107 Posting Pro in Training

wner\Desktop\VundoFix.exe

er\Desktop\bunny.exe

what are these files?

check the properties of explorer.exe.
when it was modified? if time is after installation then its probably corrupt.

DangerDev 107 Posting Pro in Training

i think .jar will be good option

DangerDev 107 Posting Pro in Training

dont nest forms

(i must do it this way)

what actually you want to do ?

DangerDev 107 Posting Pro in Training

use array to store the result, and at last show the result.

DangerDev 107 Posting Pro in Training

flippin

what does it mean ? document.write("<H2>The information on the computers you requested: </H2>"); use dom to add this in to document.

DangerDev 107 Posting Pro in Training

use onkeydown event in text box,
in this event write a function which will take value of textbox check the length of string and then print the no. in the box......

DangerDev 107 Posting Pro in Training

hi you can not do directly like this, the way you have tried is wrong.
getElementById() takes only id.

use elem.getElementsByTagName('tag name');
this will return array of element('tag name') inside elem.
using loop you can...........
i think this much is enough.

DangerDev 107 Posting Pro in Training

dont use loop for it,
you can do the same job with pattern
or regular expression

DangerDev 107 Posting Pro in Training

if(DeleteFile(pFileToDelete ));

remove ;(semi colon)

DangerDev 107 Posting Pro in Training

use header #include <windows.h> [edit]
and syntax example:
DeleteFile(TEXT("datafile.txt"));

its for vc++;

DangerDev 107 Posting Pro in Training

see following example it may help you:

char chStr[10][10];
		
//populate array with strings
		for(int i=0;i<10;i++)
		{
			strcpy(chStr[i],"hi");
		}
//print the strings 
		for(int i=0;i<10;i++)
		{
			printf("\n %s",chStr[i]);
		}
DangerDev 107 Posting Pro in Training
DangerDev 107 Posting Pro in Training

left vertical menu is there for that i want use like >>switch type buttons can any one tell me how to do that.
what do you mean by switch type buttons.
>>And i know switch type menu but not like vertical menu bar.
can you give example

so that i can understand what actually you want.

[edit] you are talking about vertical or horizontal menu ????

DangerDev 107 Posting Pro in Training

run server socket in separate thread.

DangerDev 107 Posting Pro in Training

u zip the files and give as attachment coz without image not able to understand.

DangerDev 107 Posting Pro in Training

for 2nd:

for(int j=0; j< 2*triangleSize+1; j++)
	{
		int i=j;
		if(j>triangleSize)
			i=2*triangleSize-(j+1);
		for (int k=0; k<i; k++)
		{
			System.out.print("*");
		}
		System.out.println();
	}
DangerDev 107 Posting Pro in Training

for 1st:
use quitYesNo.compareToIgnoreCase("q");
see the doc

DangerDev 107 Posting Pro in Training

after getting all the filename along with path u need to use String object's (search pattern to get) subString method to get file name.

DangerDev 107 Posting Pro in Training

can u just give code so that i can understand what u want

DangerDev 107 Posting Pro in Training

use:

boolean b;
int iSomeValue;

b=true;
if(iSomeValue==0)b=false;

or use function

boolean intToBool(int iVal)
{
 boolean b=true;
 if(iVal==0)b=false;
 return b;
}
DangerDev 107 Posting Pro in Training

there might be problem in other lines u can check that by putting alert boxes between codes. if all are working then its fine.

u'r using () that could be problem use[], or better use getElementById()
coz setTimeOut() is compatible u can check my previous post.

DangerDev 107 Posting Pro in Training

hi
try this simple code it is working fine in both IE & FF:

<html>
<head>
<title> simple count down</title>

<script language='javascript'>
var i=0;
var tid=0;
	function ut()
	{
		i++;
		document.frmT.txtB.value=i;
		tid=setTimeout("ut()",1000);
	}
</script>
</head>
<body>
	<form name='frmT'>
	 count down start now : 
		<input type=text name='txtB'/>
	</form>
	<script>
		ut();
	</script>
</body>
</html>
DangerDev 107 Posting Pro in Training

make some changes...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
      <html>

      <head>
 
      <title> Test </title>
  
      <script language='javascript'>
   
      redirTime = "5000";
  
      redirURL = "b.html";
  
      function redirTimer() {
  
      self.setTimeout("self.location.href=redirURL;",redirTime);
	  //navigator.location.href="b.html";
  
      }
  
      </script>
  
      </head>
  
      <body>
  
      <script language='javascript'>
  
      redirTimer();  
      </script>
 
      </body>
  
      </html>
DangerDev 107 Posting Pro in Training

i noticed that something has happened,

How will u come to know that some thing has happened? through some event right...
on that event call a function there u cancel the previous timeout using
clearTimeout()

DangerDev 107 Posting Pro in Training

I have important pictures I need from that laptop, how would I be able to get those pictures because I don't mind doing a recovery format but i don't want to lose those pictures.

connect harddisk to another computer from there u can get all important data.

DangerDev 107 Posting Pro in Training

hi
dont use innerHTML property with text box. its property of tag element like div.
use
document.getElementById('txtSMS').value="hiiiii";

or see an example;

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
  <script type="text/javascript" >
    function clickMe()
    {
        alert(document.getElementById('id_TB1').value);
        document.getElementById('id_TB1').value="hiiiii";
    }
  </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="id_TB1" runat="server"></asp:TextBox>
    </form>
    <input type='Button' ID="Button1" OnClick="javascript:clickMe();" Text="Click Me" /></div>

</body>
</html>
peter_budo commented: Nice example +7
DangerDev 107 Posting Pro in Training

you inspect the code at client side, there u check the property of text box and then try to put id over text box, using this id access the textbox and use it for ajax,
probably it should work.

DangerDev 107 Posting Pro in Training

no it didnot return any dom object taking id. if u want to do that u should use getElementById('idname') method of document object.

DangerDev 107 Posting Pro in Training

Hi
use document.location.href property to achieve this.
suppose u want to navigate to page example.html then u can do like this
document.location.href="example.html";

DangerDev 107 Posting Pro in Training

can u post u'r code.

DangerDev 107 Posting Pro in Training

it will not work on onload event as dom tree has not been yet formed.

try this:
---------
suppose function name is myFun(); then call it inside script block just after body tag , like this

<body>
 <script>
    myFun();
 </script>
</body>
DangerDev 107 Posting Pro in Training

hi u dont want loop then try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Example</title>
</head>
<body>
<script type="text/javascript">
var count=0;
    (function recTest() 
    {
            var ans = prompt("Enter either 1 or 2.");
            if(!ans || (ans != '1' && ans != '2')) 
           {
                alert("You entered an invalid choice !");
                count++;				
            }
			else
			{
				alert("You entered " + ans);
				count=0;
			}
			if(count<=1)
				recTest();
	})();
</script>
</body>
</html>
DangerDev 107 Posting Pro in Training

Hi,
I hope following is solution for u'r trouble,
(i have modify ~s.o.s~ code)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Example</title>
</head>
<body>
<script type="text/javascript">
 var loopTime=0;
    (function doSomething() 
    {
        while(true) {
            var ans = prompt("Enter either 1 or 2.");
            if(!ans || (ans != '1' && ans != '2')) {
                alert("You entered an invalid choice. Exitting...");
                if(loopTime>0)
                break;
                loopTime=1;
            }
            else
            {
                loopTime=0;
                alert("You entered " + ans);
            }

        }
    })();
</script>
</body>
</html>