|
I guess you should have said that then...
In that case, why not make it a popup ? Or, a floating div.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you. I will try making it a floating div.
|
|
|
|
|
Can anyone give me way to enter date in dd-mm-yyyy format with complete verification?
Thanks and regards,
Vikas
|
|
|
|
|
Yes, use javascript to validate as the user enters text.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I think he wanted code, have someone else do it for him...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
my question is that
Q :
how can create and remove the session in asp.net ?pls posste the code in c# languge not in HTML lang ?
|
|
|
|
|
Please
1 - read a book or two on ASP.NET and HTML. The session cannot be accessed from the client. It sure can't be accessed via HTML
2 - try posting ASP.NET questions in the ASP.NET forum. That is what it's for.
3 - try making sense. The session object is always there, it cannot be created or removed. If you mean to add and remove values, see point one. You should own at least one ASP.NET book, and any one will tell you how to do that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am getting error while entry in userid field. When user enter his user id, an event is fired immediately and user id is verified using AJAX method. But I am getting error 'Object doesn't support this property or method'.
I am using ajax technique to verify userid from database just after entry in userid field and moving to next item.
<script type="text/javascript">
var xmlHttp
function userid1(str){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null) {
alert ("Your browser does not support AJAX!");
return;
}
var url="checkuser.asp?q="+str+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged() {
if (xmlHttp.readyState==4) {
document.getElementByClass("login1").innerHTML=xmlHttp.responseText;}
}
function GetXmlHttpObject(){
var xmlHttp=null;
try { xmlHttp=new XMLHttpRequest(); }
catch (e){
try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
}
return xmlHttp;
}
</script>
</head>
<body onload="document.myform.userid1.focus();">
<form name="myform" action="main.asp" method="post">
<div id="content">
<h2 id="pageName">Main Page</h2>
<div class="feature">
<h1>Surfing the intranet </h1>
<p>
This is a comprehensive information website on XXXXXXX
</p>
</div>
<div class="login1" style="position:relative; left:50px">
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td><h3>Employee Login</h3></td>
</tr>
<tr>
<td>
<table>
<tr>
<td align="right">Login :</td>
<td><input type="text" name="userid1" id="userid1" style="width:100px " onchange="userid1(this.value);"/></td>
</tr>
<tr>
<td align="right">Password :</td>
<td><input type="password" name="passwd" style="width:100px "/></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td><a href="#">Forgot Password?</a></td>
<td><input type="button" style="width:65px " value="Go" onclick="login1();"/></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div class="ForumSig">Thanks and regards,
Vikas</div>
modified on Monday, June 23, 2008 12:08 AM
|
|
|
|
|
which line thows the error ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have posted question first time in this forum.
I have a form with name <div id="content">
And there are two inside a as follows
<div class="feature">
<div class="login1">
There are two input parameter in
<table>
<tr>
<td align="right">Login :</td>
<td><input type="text" name="userid1" id="userid1" style="width:100px " onchange="userid1(this.value);"/></td>
</tr>
<tr>
<td align="right">Password :</td>
<td><input type="password" name="passwd" style="width:100px "/></td>
</tr>
</table>
Now a function is called userid1(this.value) and AJAX method has been used to verify the the userid from database. But I am getting error 'Object does not support this property or method'.
I don't understand where is the problem. But I think problem may be in line
document.getElementByClass("login1").innerHTML=xmlHttp.responseText;}
Thanks and regards,
Vikas
modified on Monday, June 23, 2008 2:28 AM
|
|
|
|
|
I wonder if having a function and a control with the same names is an issue ? Do you have firefox/firebug ? That's the best way to debug this sort of problem.
And I got a 1 vote, because ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sorry vote was wrong because I replied first time in this forum and I considered the footer notice as a part of answer which I thought a meaningless answer.
Sorry again, Now I knew that footer notice come along with every answer.
Thanks and regards,
Vikas
Thanks and regards,
Vikas
|
|
|
|
|
Yes you are right sir, function name and control name can not same. Thats why I was getting error. Now I am moving to next step.
Thanks and regards,
Vikas
Thanks and regards,
Vikas
|
|
|
|
|
Hi,
I would like to have an ifram to reload every 5 seconds and auto scroll down to the bottom of the iframe.
Here is my problem:
I build many applications for my 100+ developers. They come into my website and request for a build. At the time of the build they want to see build log. I save the build log to a file, say, app.release.build.log. I want to show this log file to the developer in real time. I can load the file int an iframe but due to my limited knowledge, I don't know how to reload the page every 5 seconds and scroll down to the bottom of the page. It's sort of tail -f concept.
Any help is appreciated. Thanks much.
-Eric
|
|
|
|
|
<script language="javascript">
function test(){ window.scroll(0,document.body.scrollHeight)}
</script>
<meta http-equiv=refresh content="5">
<body onload="test()">
</body>
It's my life
|
|
|
|
|
What are the options for composing an email that contains graphics and hyperlinks without being too large? My thoughts are to use Word and the Save as Web Page option and then set the email to be of type HTML. I tried creating a Word Document and cutting and pasting it into an email - for a 1 page rather simple flyer it was 8MB. I used Print Screen and MSPaint and that made it much smaller, but doesn't allow for links. I want the content to be visible as soon as you open the email, without having to open an attachment. Is there an easier way? How does The Code Project do it?
|
|
|
|
|
nofacts wrote: My thoughts are to use Word and the Save as Web Page option and then set the email to be of type HTML
This will create bloated HTML
Create your HTML using a HTML editor. Host any images in the email on your server and have the HTML in your email link to those images. When the recipient gets the email the images will most likely be blocked until they choose 'download images'. This is just the way of the world these days so take it into account.
You can also embed images in the email itself but
1. This can be a hassle
2. This will increase the email payload size
3. Will potentially make your email more likely to be marked as spam
4. Is unecessary if you are sensible about your use (and dis-use) of images
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Thanks for answering, Chris.
There's some piece to the puzzle I am missing.
I created some very simple HTML just using Notepad:
<html>
<title> Title </title>
<body> Body </body>
</html>
I started a new message in Outlook of type HTML.
If I said 'Include - File' it placed the file as an attachment.
If I cut and pasted the code, or typed it in directly, and sent it to myself, it came back with the tags still showing - not interpreting it as HTML. I receive other HTML emails as HTML, so I don't think it is the receive setting in Outlook.
My thought of using Word to create a web page didn't work either - similar problems.
|
|
|
|
|
This question is now about Outlook, not about sending newsletters through code.
Sending newsletters via code requires you create a HTML document and send it as an HTML email (whatever email component you use will allow you to specify the format - Text or HTML - that the email is to be sent as).
In Outlook compose an email, go to Options and set the format as HTML and then just start typing. The email is in HTML so don't include actual HTML tags - just type and format as if it were a Word document. The tags are taken care of for you.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Hi
I would like to know "how to stop vertical scrolling text in javascript after one iteration". What i have is the text that scrolls continuously, and i want it to make it stop at the top of the box.
How can i acheive this effect??
This is the javascript i have;
<script language="JavaScript">
function getObject( obj ) {
var strObj
if ( document.all ) {
strObj = document.all.item( obj );
} else if ( document.getElementById ) {
strObj = document.getElementById( obj );
}
return strObj;
}
var theTop = 200;
var theHeight = 100;
var theWidth = 150;
var theLeft = 350;
var toClip = 200;
function scrollNews( newsDiv, toMove )
{
theDiv = getObject( newsDiv.toString() );
if ( theDiv == null )
{
return;
}
if ( document.layers )
{
theDiv.clip.top = toMove;
theDiv.clip.bottom = toMove + toClip;
theDiv.top = theTop - toMove;
}
else
{
theDiv = theDiv.style;
theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
theDiv.top = theTop - toMove + 'px';
}
if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) )
{
toMove = 0;
if ( document.layers )
{
theDiv.clip.top = theTop;
theDiv.clip.bottom = toClip;
theDiv.top = theTop
}
else
{
theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
theDiv.top = theTop + 'px';
}
}
toMove = (toMove + 2); //speed of scroll
setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100);
}
</script>
Any help is much appreciated
|
|
|
|
|
hi,
i am in need to access a remote IIS from my local IIS. i have tried to connect the remote IIS from local IIS but it throws an error in authentication. i tried with domain authentication and remote server authentication, but in vein. can any one help me with this issue.
thanks & regards
karthi
|
|
|
|
|
Hi,
i implemented a custom OWA webpart. Its successfully retreives the mail and other contents. The problem is that it resizes to the entire web page size instead of the webpart size.i have given the width for the webpart. Even then it loads for the entire page width.
Thanks in advance.
Cheers,
Mani
First have the WILL then u WILL
|
|
|
|
|
to be frank enough, i would say that, iam new to web technologies.
so i would be pleased to know how to put my dot net application in a web server,
i tried to create a domain(from my free 3 domains package) but iam unable view it.
while creation, it says that, domain created successfully.
please tell me is this sufficient, or do i need to do any thing more here.
thanks in advance.
|
|
|
|
|
You need to ftp your web site up to the root of yur domain - your host should be able to provide ftp details.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
chandu004 wrote: how to put my dot net application
Well, i guess you could start by reading the documentation provided by your web host. Or emailing them. I mean, they'd know, right?
Failing that, you might want to try the forum created specifically for that dot net thing you mentioned you're using[^].
But seriously, try your web host first. I don't know why you think anyone here would know how this unnamed entity operates.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|