DangerDev 107 Posting Pro in Training

thats not my code ;)

DangerDev 107 Posting Pro in Training

i am not getting any problem in IE or Firefox

DangerDev 107 Posting Pro in Training
DangerDev 107 Posting Pro in Training
DangerDev 107 Posting Pro in Training

Is there a possibilty to say have one real template and a database and depending on what you click on on the main page it will load the details from the database to website?

you can do this thing using any server side scripting language.
-take main template
-put variables in place where content will vary
-according to requirement take value from database
-assign those values to variables as needed
-you will gate the required page.

DangerDev 107 Posting Pro in Training

try this

apart from this i have some advice for you:

1. Test your website in all popular browser and in different screen resolution. This will give you an insight of how your site looks in different browser in different resolution.
2. Check the response time of each click or functionality, on different browser, it should not be more.

DangerDev 107 Posting Pro in Training

(\Code)

use (/code)

can you give complete code along with html code, so that i could understand whats going on ?

DangerDev 107 Posting Pro in Training

javaScript is not from .net.

creating tables 1 to 100 using javascript

do you want to create 100 table ???

-just loop through 1 to 100
- select parent element for tables
- create table element using dom api documet.createElement("table");
-add table element using dom api appendChild()

i hope this will help

DangerDev 107 Posting Pro in Training

click() function will not work, but onclick() function will work, for that you have to set onclick='function_name' for <a> element.

see example:

<html>
<head>
<script>

function ClickURL()
{
document.getElementById('xyz').onclick();
}
</script>
</head>

<body onLoad="ClickURL()">

<a href="javascript:alert('hi')" id="xyz" onclick='javascript:alert("click")'>Link </a>

</body>
</html>

here difference is also given.

DangerDev 107 Posting Pro in Training

try this
hope it helps

DangerDev 107 Posting Pro in Training

as VernonDozier suggested make a structure of rational no. and then in another structure if needed make array of rational structure.

DangerDev 107 Posting Pro in Training

type in url-
javascript:(alert('hi'));

DangerDev 107 Posting Pro in Training
DangerDev 107 Posting Pro in Training
DangerDev 107 Posting Pro in Training

instead of everything writing in to main use function to write every thing then call those function from main.
their could be only one main method, hence in another file just have functions and include that in to the file having main() function. then call function of that file from main();

DangerDev 107 Posting Pro in Training

how to write program with void as data type

void pointer can point any type of data.

Example:

void* voidPtr; //void pointer
int iVal=10;
char cVal='a';
voidPtr=&iVal; //void pointer pointing to int type
printf("num=%d",*(int*)voidPtr); //casting (void* to int*)

voidPtr=&cVal; //void pointer pointing to char type
printf("\nchar=%c",*(char*)voidPtr); //casting(void* to char*)

you can cast void* to any other pointer type.

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

define a array of type double, store sorted value in it and the return the array. it will work.

DangerDev 107 Posting Pro in Training

what's ur problem????

DangerDev 107 Posting Pro in Training

what's your project bro ????

DangerDev 107 Posting Pro in Training

nop its simply impossible.
you can make your code complex in a way that any body who see your code find it hard to understand but you cant prevent user to see it.

see gmail code how they have done.

DangerDev 107 Posting Pro in Training

along with findfrst and findnext method suggested by Niek use recursion to get list of all files from harddisk

DangerDev 107 Posting Pro in Training
DangerDev 107 Posting Pro in Training

run server socket in separate thread.

DangerDev 107 Posting Pro in Training

Also need help to find the total and the average of the array.

loop through the array and get sum after that get average.

DangerDev 107 Posting Pro in Training

yes any kind of return statement will end the function.

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

you can upload the file and also can retrieve the whole file from database.
but if you want to retrieve some content or field then save the content of file in multiple fields

DangerDev 107 Posting Pro in Training

which server side scripting you are using?

you can do this by button, like this
<input type='button' value='some value' onclick='retVal(this);' />

and function retVal will be like this
function retVal(button)
{
return button.value;
}

hope this helps

DangerDev 107 Posting Pro in Training

u can save file in data base as binary data type.

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

Why do people insist on making bad suggestions, especially after a good suggestion has been made?

And if you read the Rules, they request you use the word you, not the letter u, so people that don't speak English well can understand your post.

thanx for suggestion

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

see the orkut code using firebug.

DangerDev 107 Posting Pro in Training

use:

for (int myHeight =1;myHeight <width; myHeight++)
	{
		for (int myBase=1;myBase<length;myBase++)
		{
			if(myBase==1 || myBase==length-1 )
				printf(c);
			else if(myHeight==1 || myHeight==width-1)
				printf(c);
			else
				printf(" ");
		}
		printf("\n");
	}
WaltP commented: Help the write their own program! They learn nothing if you write it for them! -2
DangerDev 107 Posting Pro in Training

if u do that using mouse move event.

on document mouse move event start a timer, if timer is running for 10 or 20 second i.e. page is idle for that much second then call another function which will change the image.
i hope this will help.

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

height, width and min-height is supported by IE6 other things are not supported by it

DangerDev 107 Posting Pro in Training

try:

int sum(int num1,int num2)
{
	for(int i=0;i<num2;i++)
		num1++;
	return num1;
}
DangerDev 107 Posting Pro in Training

Those parts of the system that you can hit with a hammer (not advised) are called hardware; those program instructions that you can only curse at are called software. ~Author Unknown

DangerDev 107 Posting Pro in Training

can u explain u'r problem. i think:

for changing parameters u can provide a config class which will take parameter from a config file, hence upon changing on parameter u can make change only on file not in the code.


i hope it helped.

DangerDev 107 Posting Pro in Training

try to put id element for each button but take care that id should be unique for each one.then using getElementById('id of button').onclick='funciton_name';
u can assign function to each button in java script

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

is it java code ?????

DangerDev 107 Posting Pro in Training

u can also getch() but it doesnot work in some compiler.

iamthwee commented: So why recommend it? -2
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 window.onload='function_name'

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>