Mehak Darti

Greenhorn
+ Follow
since Dec 13, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mehak Darti

thanx ..... any way ..... but i don't know y it was not working 4 me...any how i have solved it now .... and i didn't know that when ppl say it's urgent u want to help them less .... i thought this was a freindly place to interact...!! Sorry for the trouble...!
This is the code that i'm actually gonna use in my program ... only that instead of D1 i will be using .. group ..
<P><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language = javascript>
function cf(its)
{
if(its.D1.value = 'Select a Group')
{
var sel = document.its.D1;
var txt = sel.options[sel.selectedIndex].text;
var opt = sel.options[sel.selectedIndex].value;
if(opt == 'group')
{

alert("Select a Group");
return false;
}
}

}
</script>
</head>
<body>
<form method="POST" name = "its" action="--WEBBOT-SELF--" onSubmit="return cf(this);">
<select size="1" name="D1">
<option value = "group">group</option>
<option value = "1">1</option>
<option value = "2">2</option>
</select><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p>
</form>
</body>
</html>
The error that i'm getting is this....Object Doesn't support this property or method..!
plz it's urgent ... help..!
and this code ... is giving a javascript error ... that group.value is null.....
<P><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language = javascript>
function cf(its)
{
if(its.group.value == 'Select a Group')
{
var sel = document.its.group;
var txt = sel.options[sel.selectedIndex].text;
var opt = sel.options[sel.selectedIndex].value;
if(opt == 'Select a Group')
{
alert("Select a Group");
return false;
}
}
}
</script>
</head>
<body>
<form method="POST" name = "its" action="--WEBBOT-SELF--" onSubmit="return cf(this);">
<select size="1" name="D1">
<option value = "group">group</option>
<option value = "1">1</option>
<option value = "2">2</option>
</select><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p>
</form>
</body>
</html>

y is it so..?
no but then still ... when i use this code .. seprately it works... but when i use it this way it doesn't ...
code:

function cf(its)
{
if(its.group.value == 'Select a Group')
{
var sel = document.its.group;
var txt = sel.options[sel.selectedIndex].text;
var opt = sel.options[sel.selectedIndex].value;
if(opt == 'Select a Group')
{
alert("Select a Group");
return false;
}
}
}

The problem is coming due to the IF loop...and i have to use ti coz there are many other feilds that are called in the function cf(its) ....
Plz help...!
noooo but the second problem is yet there .. if I select any thing else ... it still gives me an alert ... i have made a dummy code just to check ... i'm posting it here...pls tell me where am i going wrong ... coz even if i select 1 or 2 ..it gives me the error .."select a group..!"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language = javascript>
function cf(its)
{
var sel = document.its.D1;
var txt = sel.options[sel.selectedIndex].text;
var opt = sel.options[sel.selectedIndex].value;

if(sel = 'group')
{
alert("Select a Group");
return false;
}
}
</script>
</head>
<body>
<form method="POST" name = "its" action="--WEBBOT-SELF--" onSubmit="return cf(this);">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><select size="1" name="D1">
<option>group</option>
<option>1</option>
<option>2</option>
</select><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>

/******************/
I have tried with all the three varaibles.... but i don't know y ..its not reading any other value except group.....
Try selecting any other value and press on submit ... .it will still give the same alert...!!!
plz tell me where am i going wrong..!!!
thanx... and plz rely fast ...it's urgent..!
hi ...
i have this really strange problem with my combo boxes .....
i have this combo box named group ..... now when i put this javascript
if(its.group.value = "Group")
{
alert("group Selectd");
its.group.focus();
return false;
}
it empties by combo box ... the value "select a group " of the combox changes to " " (empty)....y is it so....... plz help .... as i need it on urgent basis ....!
and the other problm that i'm facing is this...
even when in the combo box i'm selecting some other value other than "group" ..still it gives me the alert "Please select a group".... y is it so..?
i'm calling this java script on submit of the form..!!! and my form name is its,group is the name of the combo box
plz help ...and fast...!
hey thannnnnkkksssssssssssss
thank u so much....Eric...it worked..!!!
Hi guys...
i have this website where i want to check the validity for the email.Have any idea for a javascript that would do the following...
1) check for @ symbol
2) check for the dot symbol
3) i want the domain to be a specfic domain name. (important)
for example... my website domain name is "xyz.com.xy".... and inorder for a user to receive an email from my website they have to be a member. When a user becomes a member to my web site, thier email would be "userid@xyz.com.xy"....the userid can be of any length.
so when they would order any thing ..they will input their email address... but for that the email address should have the domain name "xyz.com.xy". How would i check that ... and ofcourse how would i check for the "@" and "." symbol. The occurance of the dot symbol should be twice and not once.
Any ideas for the above....!!!

:roll:
yeh my problem is solved .. found the answer in the javascript section of this web site... man this web site is great..!!!
Thanxssss to all..!
18 years ago
JSP
hi...
i have this jsp page which shows rows of data based on a given condition. Now every time a new record comes, inorder to see the new record the user has to refresh the page manually. Is there any way how i can refresh the page (programmatically)..say like every 15 seconds so that the user always see's the lastest update and then need not refresh the page again and again. ??
for example .. i'm showing on problem.jsp the lastest problems that have been reported .. and problems are reported by the user very frequently ..say every 15-20 seconds a new problem is reported by the user. Now on this problem.jsp page inorder to see the lastest problem which has been reported by the user we will have to refresh the page manually. What i want to do is that the page should automatically be refreshed after every 15 seconds so that the latest problems are also displayed..!
Any suggestions...
18 years ago
JSP
yeh it's working... thanxs a lot Eric...!!!
bye 4 now..!
hi all....
i have 3 three check box in my jsp page .. now when i click on one of the check box i disable the other 2 check box .. but how so i make the other check box enabled when i click back again on that check box ..
what i mean is that when i click once it should disable all and when i click again then it must enable all...!!
how so i do this..???
:roll:
please attach code if possible..!
18 years ago
hi...
i have the current date in one string varaible ... how do i add one day to the current date so that it will show be the next day's date... !!!??
18 years ago
Ok ... thanxs any way all..... my thing is done...!!!bye
18 years ago
JSP