|
How about a data driven page? Unless you specifically need to create an HTML page just post the data from the database onto a standard page.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
How to get data from database on a html page??
|
|
|
|
|
Hi People,
I have an ACE placed on a user control.
If no matching results are found for the criteria supplied I display --> No match found. Please select the item that matches your field of expertise.
This is a bit late and maybe less intuitive.
What I would like is to place a non selectable item in the result list at the very bottom. It would say --> Please select the item that matches your field of expertise.
The result list would then look like this below.
Finance
Clerk
Developer
Trader
Retail
etc
--------------------
Please select the item that matches your field of expertise
Is this possible at all?
Many thanks
|
|
|
|
|
Hi,
I am new to classic ASP.
can anybody plaese send me the code how do we count the number of selected items in a listbox using vbscript/classic ASP and how to retrieve the selected items into an array. I am supposed to do this task using VBScript only.
please help me.
Thanks in advance
|
|
|
|
|
Hi Guys,
I have a problem for more than 3 days already. I would like to download top 5 emails from gmail. How to work it out?
I need your help guys.
Thanks
hifiger2004
|
|
|
|
|
If you go to gmail there are a load of faq's which tell you how to read your gmail from otehr apps.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi, I wrote this script which is basically a timer, but I get the error: txtTime has no properties in the line:
var colonIndex = txtTime.indexOf(':',0);
The code listing is here:
function HandleTimer()<br />
{<br />
var CurTime;<br />
var PM = 0;<br />
var currentTime = new Date()<br />
var hours = currentTime.getHours()<br />
var minutes = currentTime.getMinutes()<br />
if (minutes < 10)<br />
minutes = "0" + minutes<br />
<br />
if(hours > 11)<br />
{<br />
PM = 1; <br />
}<br />
<br />
if(hours > 12)<br />
{ <br />
hours = hours - 12; <br />
}<br />
CurTime = hours + ":" + minutes + " "<br />
if( PM == 1 )<br />
CurTime += "PM"<br />
else<br />
CurTime += "AM"<br />
<br />
var lblCurrentTime = document.getElementById('lblCurrentTime');<br />
var ctl00_ContentPlaceHolder1_RemainingTime = document.getElementById('ctl00_ContentPlaceHolder1_RemainingTime');<br />
<br />
lblCurrentTime.innerText = CurTime;<br />
<br />
var seconds = 0;<br />
var mins = 0;<br />
var txtTime = ctl00_ContentPlaceHolder1_RemainingTime.innerText;<br />
if(txtTime == 'Time Up!' || txtTime == '')<br />
return;<br />
var colonIndex = txtTime.indexOf(':',0); <br />
var strMin = txtTime.substr(0, colonIndex);<br />
var strSec = txtTime.substr(colonIndex + 1, 2);<br />
if(strSec.charAt(0) == '0')<br />
seconds = parseInt(strSec.charAt(1));<br />
else<br />
seconds = parseInt(strSec);<br />
mins = parseInt(strMin);<br />
<br />
<br />
if(seconds == 0 && mins == 0)<br />
{<br />
__doPostBack('ctl00_ContentPlaceHolder1_btnNext','')<br />
}<br />
else if(strSec == "00" && mins > 0)<br />
{<br />
seconds = 59;<br />
mins--;<br />
}<br />
else<br />
{<br />
seconds--;<br />
}<br />
if(seconds < 10)<br />
ctl00_ContentPlaceHolder1_RemainingTime.innerText = mins +':' + '0' + seconds;<br />
else<br />
ctl00_ContentPlaceHolder1_RemainingTime.innerText = mins +':' + seconds;<br />
<br />
setTimeout("HandleTimer();",1000);<br />
<br />
}
Any ideas?
Thanks,
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Store the id of your text control in a variable in your code behind. Then use a better variable name in javascript. Install firefox and firebug to debug your code and see where it's failing.
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 )
|
|
|
|
|
Hi,
I already use Firebug to debug my code, its failing when I use the indexOf method of the string variable "txtTime".. despite the fact that I defined the variable txtTime but the script still fails. Firebug says that the object has no properties. I searched much about this error but I couldn't find the solution.
Thanks for the answer.
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Hi all,
Can somebody point me in the right direction please?
I want to write a browser based application that will run on any/all the machines on my network. I want to be able to see a list of all the machines on the network and run media files on those machines. For example, if I have machines in my office, bedroom, kitchen and lounge. I want to be able to see a list of those computers. As I click on one I want to be able to specify that certain music tracks, stored centrally, are played on that computer.
That's the basic concept of what I'm trying to do. Technically, I'm fine with VB/ASP and so I'd prefer to write this in classic rather than .net. The primary things for me to do at this stage are scan the network for the machines that are connected and make either Windows Media Player (or a browser plug-in) play a file on one of those remote machines.
Can anyone point me in the direction of doing these two things please?
|
|
|
|
|
This seems like a fantasy to me. Your browser cannot scan your network or play mp3. You need a client app for that.
Tim Foster wrote: d so I'd prefer to write this in classic rather than .net
Wow - I recommend you learn some ASP.NET, you'll never want to touch asp again, that stuff is nasty.
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 )
|
|
|
|
|
Hi all...
I think my subject line not dat much clear...
Here is My Requirement:
*I hav windows project ..it displays ads in the masterform.. and also
*I hav webproject in dat user is going to add their adds(i mean de can register their ads in dis webproject)
Actually Client uses the Windows project.. when client is connected to internet and opens our website(our webproject) den we have to upload our ads which r registered in our webproject into ClientSystem(Window project) in place of ads(In masterform we r providing place for Displaying ads..AdRotator )..
How can i achieve this.. how can i solve dis by WebServices/WinodwsServices...
Plz..Help me in dis issue...I need ur suggestions....
Thanks&Regards,
kvsekhar
|
|
|
|
|
Please, do not spam the entire site. It only annoys the people you're hoping will help you.
And again, please learn to speak English. You've come across as an idiot with your txt speak.
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 )
|
|
|
|
|
|
Hi all,
I did a page with drag and drop image option. Drag event is fired on mousedown event, onmousemove the image is dragged and onmouseup event it's placed in the new coordinate.
Now i was asked to a add new feature click event on that image. So that they can double click on that image and view it's full size in another window.
How to do this. Because when i click that image then mousedown event is fired and and calling my mousemove event, ondoubleclick event is not firing at all.
How to solve this issue
I searched for a sample, but there is no solution.
Please help me
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
i have successfully setup PEAR in my machine and have download the BBCode Parser. But i dont know how to configure this with PEAR. What are the necessary settings required to make the BBCode Parser work? Any help would be appreciated.
raamay
|
|
|
|
|
my proplems due to frame i am using some frame at top,left ceter and right in right frame image disply in fadein so when the mouseover on image, image is expanded in thats frame but not more space to display it in that frame so my need is open a new winodw
i try to these two code
<script language="javascript">
function new_window(){
new_window = open('fader.asp','new','width=500,height=450,left= 10,top=10');
}
function close_window()
{
new_window.close();
}
</script>
<div style="position:absolute; top:0; left:0 ">
<!--
Link for opne popup wondow
<a onmouseover="window.open('fader.asp','Popup_Window','toolbar=no ,location=no,directories=no,status=no,menubar=no,s crollbars=no,resizable=no,copyhistory=no,width=475 px,height=420px,top=30,left=20')" >
-->
<img src="images/1.jpg" id="new" onMouseOver="new_window()" onMouseOut="close_window()" name='SlideShow' border="5px" style="border-color:#B812A7 " width="170PX" height="140PX" title="Click to Magnifying Image">
<!--</a>-->
</div>
But when first time mouse over on image popup window is opend and onmouseout closed but not more without page refresh means it works only one time when mouse over on image after first time error is at line 21 where <img src.............>
line:-21
char:-1
error:-the callee[server[not server application]]is not available and disappeared; all connection are invalid. the call did not execute.
I am creating link onmouseover image window is open but it not close on mouseout
I try with these two to open new window onmouseover and close on mouseout
thanks
sanjeev
|
|
|
|
|
Hi
I wants use open image in new winow mouseover on which but can't success
[CODE]<scripts laguage="javascrpts">
function new_window(ImageURL) {
my_window = window.open(ImageURL, 'new', 'width=500,height=450,left=10,top=10');
}
function close_window() {
my_window.close();
}
</script>
<div id="new" style="position:absolute; top ; left ">
<img src="images/1.jpg" onMouseOver="new_window('images1/1.jpg')" onMouseOut="close_window()" name='SlideShow' border="5px" style="border-color:#B812A7 " width="170PX" height="140PX" title="Magnifying Image">
</div>[/CODE]
it open only one image images/1.jpg but my needs to open thats image mouse overon which from slide
thanks
sanjeev
|
|
|
|
|
We are facing a problem in retrieving the fully-qualified domain name (for example IN.<domain>.com) from ISS server.
I have tried using "<%= Request.ServerVariables("LOGON_USER") %>" server variable but this returns only a part of domain name(for eg:”IN”).
Could you please suggest us a method to retrieve the complete domain name in ASP?
With Regards,
Abraham Chethuvelil
modified on Thursday, May 29, 2008 7:09 AM
|
|
|
|
|
Doesn't Request.ServerVariables("HTTP_HOST") return that?
|
|
|
|
|
Hi Guys,
Do you know how to retrieve email content from a specific email account? For example I want to retrieve the content(body) of my personal email in my gmail, so what I need to do is to supply the DNS, username, password in order to download the email content.
Is this possible?
Thanks
hifiger2004
|
|
|
|
|
You need to configure you GMail account so that it supports POP. POP is a way to retrieve mail from a mailserver to your machine (using a mail client). That mail client is the application you are about to develop.
Agus Kurniawan wrote this great article[^] about retrieving mail.
|
|
|
|
|
Hi Eduard,
I tried downloading your demo application but there's an error in my end.
But I actually made a simple application which I can now retrieve some email content. But after changing the host to pop.gmail.com and port 995 it will display an error on the page.
I am not sure if you are familiar with this - System.Net.Sockets.TcpClient()
I think the only thing to get rid of the error is to enable the SSL, but the problem is I don't know if the System.Net.Sockets.TcpClient() has a property for enabling the SSL. I tried checking it but I don't think there's a way to change it on System.Net.Sockets.TcpClient().
Any idea?
Thanks
hifiger2004
|
|
|
|
|
If it is practical,I was looking to adding a navigation bar for my website through a javascript or php or some other technique.
I was hoping i could just at this to the beginning of an html file (with whatever related changes). I make the document in wordprocessor and just want to add standard links for my website to the page, and maybe have those links in a shared file. Basically this is just to avoid using frames.
This may be a simple and basic website design feature. I just wasn't finding this type of code.
|
|
|
|
|
A lot of menus are javascript driven, no reason you could not put that in a common file and include it
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 )
|
|
|
|