|
Although we have an ASP.NET forum, this is probably the right place, b/c you want to do soething wity javasdcript. Have you looked for existing jscript menus that work as you want ?
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 )
|
|
|
|
|
Start here[^].
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Dear All,
I am working in asp classic in my project,I need when in submit for to other page
to get the form object and pass it to com object or DLL...I have done search but i didnt found any thing..I heard that it very good way.
Regards
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
Amr M. K. wrote: I am working in asp classic in my project,I need when in submit for to other page
to get the form object and pass it to com object or DLL
It's not really clear what it is that you mean. The form object only exists in the browsers, so there is nothing that your ASP code can do with it. On the server side where the ASP code runs, the form data only exists as a collection of values. Is it the Request.Form collection that you mean?
Amr M. K. wrote: I heard that it very good way.
Where have you heard that?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi
Ican use Request.Form to get values,
But There is way to pass the form object to com object develop in vb 6 and get the values from it..
I have tried to done alot of search but i didnt found any thing,I heard that is very porffesinal way,
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
Hi,
I have created an advertisement box and I want that to stay on the screen even if people go to other webpages.How can it be possible?
|
|
|
|
|
Use frames, so the box is in one frame, and the user navigates in the other.
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 for your reply but I want the ad box to be movable to different corners of their screen.Then by using frames it will be stable in one place is it?
|
|
|
|
|
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
|
|
|
|