|
Try this:
(Note: Change the 6 in the first "for loop" with your total number of textboxes.)
function fnCheck()
{
var strTextBoxName;
for(var i=1;i<6;i++)
{
strTextBoxName = "serial" + i;
for(var j=0;j<document.f1.elements.length;j++)
{
if(document.f1.elements[j].name==strTextBoxName)
{
if(document.f1.elements[j].value=="")
{
alert("in for : " + strTextBoxName);
//Fill in your error message here
}
}
}
}
}
Written on a gravestone:
Here lies a father of 29. He could have had more but he didn't have the time!
|
|
|
|
|
Ya, that great, I get all the idea and it work.
Thanks guys.
|
|
|
|
|
Hello,
In an ASP script is there a function which when called will instruct the server to compress the page's output using gzip or some other method? I don't want to enable compression for everyone of my scripts.
Thanks,
Aaron Stubbendieck
modified 12-Jul-20 21:01pm.
|
|
|
|
|
i need help creating a html calendar for entire company to view. i just don't know where to begin. it will be posted on intranet.
|
|
|
|
|
M,
You can do something like this:
This is the top of the template | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here |
You can add some ASP Scripting for date validation and such.
You can also add some CSS to format the text, table cells, and borders.
check here for CSS stuff> Cascading Style Sheets
If you are using the Visual Studio.NET suite, you can drag and drop the calendar control into the workspace and everything is done for you.
There is also one here on CP --> Calendar Control Article
HTH
Tony
|
|
|
|
|
Massy Sumlin wrote:
i just don't know where to begin
I'd begin at the 1st January
#include <beer.h>
|
|
|
|
|
Why didn't I think of that !! D'OH !!!!!!!!!
Tony
|
|
|
|
|
I'm trying to modify a string so that any hyphens or spaces can be removed. At the moment, the code looks something like:
var strNum = document.all[document.all["MyValidator"].controltovalidate].value;
if(isNumberValid(strNum) && isCardTypeCorrect(strNum))
return true;
else
return false;
All I want to do is insert some code before the conditional so that any hyphens or spaces are removed from the strNum variable.
I've tried using the .replace method with a /-/gi regular expression but that doesn't seem to work -- I've not done any regex's in JavaScript before so I've probably missed something pretty obvious!
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Download my PGP public key
|
|
|
|
|
Ok...
you go:
strNum = parseString(strNum);<br />
<br />
function parseString(strNum){<br />
while(strNum.indexOf(" ") != -1)<br />
{<br />
strNum= strNum.replace(" ","");<br />
}<br />
while(strNum.indexOf("'") != -1)<br />
{<br />
strNum= strNum.replace("'","");<br />
}<br />
return strNum;<br />
}
Hope this helps
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Thanks for the info, as it happens, I found this nifty little regex:
strNum = strNum.replace(/-|\s/g,"");
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Download my PGP public key
|
|
|
|
|
I have a simple html document. Inside, there are some links. The question is, how do i make those links act as "goto" commands? i.e. when the link is clicked, the page is scroll down to a show a specific paragraph.
Thanks.
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
Look here
http://www.basictips.com/tips/article_89.shtml
for instance.
You specify an anchor in the target location ()
and then have the link go there (go to trg)
HTH,
Frank
|
|
|
|
|
Thanks alot. It is just what i need.
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
Does anyone know of an example to query members of groups with ADSI using C#?
I have done this with VB/COM, but never with .NET.
Any suggestions would be great.
Thanks In Advance.
Tony
|
|
|
|
|
using System;
using System.DirectoryServices;
public class MySample
{
public static void Main()
{
string myLDAPPath = "";
try
{
Console.WriteLine("Enter the path ( Ex : 'LDAP://MyServer')");
myLDAPPath = Console.ReadLine();
DirectoryEntry mySearchRoot = new DirectoryEntry(myLDAPPath);
DirectorySearcher myDirectorySearcher =
new DirectorySearcher(mySearchRoot);
SearchResult mySearchResult = myDirectorySearcher.FindOne();
if ( mySearchResult != null )
{
DirectoryEntry myDirectoryEntry =
mySearchResult.GetDirectoryEntry();
Console.WriteLine("\nThe name of the 'myDirectoryEntry' " +
"directory entry that corresponds to the " +
"'mySearchResult' search result is : {0}\n",
myDirectoryEntry.Name);
string mySearchResultPath = mySearchResult.Path;
Console.WriteLine("The path for the 'mySearchResult' search "
+ "result is : {0}\n", mySearchResultPath);
ResultPropertyCollection myResultPropColl;
myResultPropColl = mySearchResult.Properties;
Console.WriteLine("The properties of the " +
"'mySearchResult' are :");
foreach( string myKey in myResultPropColl.PropertyNames)
{
string tab = " ";
Console.WriteLine(myKey + " = ");
foreach( Object myCollection in myResultPropColl[myKey])
{
Console.WriteLine(tab + myCollection);
}
}
}
else
{
Console.WriteLine("The '" + myLDAPPath + "' path not found.");
}
}
catch(Exception e)
{
Console.WriteLine("The '" + myLDAPPath + "' path not found.");
Console.WriteLine("Exception : " + e.Message);
}
}
}
Tony
|
|
|
|
|
Let's say you are doing a query, and it returns a zillion rows. I would like to be able to process rows ad-infinitum, until I say "Stop."
With Web Services, everything is wrapped inside a SOAP envelope. That is, it is a single chunk of information. I have to pass the whole SOAP document before any of it can be translated on the client. Right? I read something about buffered and non-buffered Web Service methods, but don't you have to have the whole XML SOAP document before you can begin processing it?
What I would like to do is (A) send a request to run a query, and (B) get back maybe 50 rows at a time, each in a self contained SOAP document. The server would keep pushing out rows until I dropped the connection.
Is this sort of thing even possible with Web Services? I know you can do this with the Web Services SP2 Technology Preview using SOAP messaging over TCP. In that case, it is pretty trivial. You just pump the data out in packets over the TCP link and translate on the client. But unless I am mistaken, using SOAP over TCP is not really a bonafide Web Service.
I'd really like to know if anyone knows how to do this sort of thing with a Web Service.
Or is this like trying to raise server events from HTTP: "You can't get there from here."
Thanks.
|
|
|
|
|
Can somebody please give me a quick tortorial to set up the IIS mail server so, that I can recieve and send email?
/\ |_ E X E GG
|
|
|
|
|
how i can make the absolute page size using javascript.
i mean when it opened, the window size will be in that size.
thanx
>>teaching is also learning.<<
|
|
|
|
|
You do:
window.open("YOUR_URL.HTM","_blank","width=300,height=300");
you can replace the 300 value with whatever you want.
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
thanks
|
|
|
|
|
You can try this to always open the window in full screen.
window.open('index.html','','top=0,left=0,height=' + screen.availHeight + ',width=' + screen.availWidth);
cheers
Written on a gravestone:
Hear lies a father of 29. He could have had more but he didn't have the time!
|
|
|
|
|
I'm new to all this web stuff, so please be gentle with me
A while back, well 3 years or so, actually, I foolishly said I'd sort my Dad out with a very simple web page for his club (hey, I'm a programmer, it can't be that difficult, right ?) Anyway, I did the biz with registering his domain names (2), they are on a parking/redirection site atm (freeparking), pointing to my own isp's web space (which sucks big time in terms of access, but there you go).
I'm now looking to make it a bit more "official", and figured I'd move it to a "proper" host, but I'm a bit confused about what I really need. Not a lot, I wouldn't think...but I really need to host 4 domains now (I registered 2 for personal use to have a play with). Am I best leaving them parked at freeparking and just changing the DNS settings to point to the new host when I get it (I would guess so from what I've read elsewhere, but, hey, I trust the people on CP!) Also, do I need to have 4 invidual accounts, one for each domain, or is there a way of combining them to save money?
Can anyone recommend any uk based hosts? I'd like a uk one as I'd ideally like to ring up the support/accounts people (for obvious reasons!). Pop mail support would be nice too, and minimal web space/bandwidth. All other whistles and bells are something I have absolutely no idea about whatsoever, and don't know if they are (or could be) useful so I've been a bit boggled by the front end ads of some hosting companies.
Ta,
Debbie
|
|
|
|
|
Ok, It sounds inane and it is... but I work for a company that uses predominantly Netscape, and someone has developed an application that will run only in IE. The quesion: is there any known method for launching IE from a link in Netsape. Serious replies only please -- I've already heard or told most of the netscape jokes on the planet.
William
LSPP - Long Suffering Perl Programmer
|
|
|
|
|
either link to a file type already associated with IE and not NS, or create a new file extension type and associate it with IE and in your custom headers, return the correct mime type headers (ex: application/msword)
onwards and upwards...
|
|
|
|
|
Hello,
I am trying to develop a program based on c# and aspx systems.
I am required to write a code which must be in java script.
The code would be able to make a calculation.
The calculation is a bit complex.
I am required to do that:
There is a value of a result of an expeirence and there is a upper and lower limit of the result of the expeirence.
e.g
Upper limit : 2.4
Lower limit : 1.2
The value of result of the expeirence is 1.8
The result of the experience value could be out of limits.
(actually the limits are defined for the standart situations)
I have a record which is like shown below
UpperLimit : 2.4
LowerLimit : 1.2
Value : 1.8
-------
And I am now changing the upper and lower limits to ...
UpperLimit : 4.8
LowerLimit : 2.4
Value : ?
How can I calculate the final value?
I have already tried:
Final = Value * (UpperLimit(2) - LowerLimit(2))/(UpperLimit(1) - LowerLimit(1))
It is not just relaited with the range. It is also releated with the position of the limits.
e.g.
|------|----------|-----------|------
0______LL_________X___________UL
_______<-------difference----->
_______<---------range-------->
0 ,zero
LL, Lower Limit
X , Value
UL, Upper Limit
Both range and the position are being changed .
Thank you for your time
Regards,
Emre YAZICI
|
|
|
|