|
Is it possible to build a web application that will allow the the use of short cut keys (hotkeys), function keys etc. as they are used in traditional windows forms applications?
Thanks,
Niels
|
|
|
|
|
You can on buttons
Include accesskey="s" title="Press alt+s to submit"
in your button tag
ie
Alt-S will now submit the form. You could put other letters on other buttons (calling javascript functions etc)
HTH
I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'.....
- Christian Graus on Code Project outages
|
|
|
|
|
Hi All,
I am trying to retrived data from SQL server in my asp page via ODBC connection. I have done the ODBC connection via administration tool.
MY Code is:
<%
dim oConn, strSQL, rstMovie, Records
set rstMovie = Server.CreateObject("ADODB.RECORDSET")
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=MSDASQL; Driver={SQL SERVER}; SERVER=localhost; database=Movie2002; UID=test; PWD=test;"
strSQL = "Select * From tbl_movie"
rstMovie.Open strSQL,oConn,adOpenForwardOnly,adLockReadOnly
%>
when I am trying to view the page on the browser the error message is 'page cannot be displayed'. The error message relates to ODBC connection I think. Can anybody help?!!
Many Thanks.
Bravo Two Zero
A pen is mighter then a sword.
|
|
|
|
|
Try this:
"DSN=MyDSN;UID=user;PWD=password;DATABASE=mydatabase"
Pyt.
|
|
|
|
|
Sorry about the smiley,
"DSN=MyDSN;UID=user;PWD=password;DATABASE=mydatabase"
Pyt
|
|
|
|
|
Many Thanks
Bravo Two Zero
A pen is mighter then a sword.
|
|
|
|
|
Hi all,
I want to display some table (contain data in them) in one screen with some conditions:
1. when page is loaded in the first time. Only display one table name a
2. when u click a button in table a. The next table will display bellow table a.
Thanks alot
|
|
|
|
|
caonguyen wrote:
1. when page is loaded in the first time. Only display one table name a
2. when u click a button in table a. The next table will display bellow table a.
k here goes. You code your two TABLEs and set one to have a style of display: none which effectively hides it. Then on click of the button, you tell that hidden table to display by setting this display: block
e.g.
<table id="table1">
<tr>
<td>Data here or wherever, not in Kansas anymore Toto</td>
</tr>
</table>
<input type="button" onclick="document.all.table2.style.display = 'block'" value="Display Table 2" />
<table id="table2" style="display: none">
<tr>
<td>Take her shoes, she does not need them anymore, welcome to Harlem</td>
</tr>
</table>
NOTE: I used non W3C DOM techniques for my lazy assed nature. So please if this goes live, change it to the proper way using getElementByID.
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|
|
Paul Watson wrote:
Take her shoes, she does not need them anymore, welcome to Harlem
Regards,
Brian Dela
Níl aon tintéan mar do thintéan féin.
Is fear rith maith ná droch sheasamh.
Irish Sayings
|
|
|
|
|
Brian Delahunty wrote:
I am trying to make The Wizard of Oz more accessible to todays youth by setting it in Harlem and using ghetto gangsetr-beeetch language.
I am having problems the phrase "yellow brick road" though as everyone keeps thinking I am talking about some new drug!
*sigh* The kids of today... come Toto, lets go back to Kansas...
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|
|
Paul Watson wrote:
I am trying to make The Wizard of Oz more accessible to todays youth by setting it in Harlem and using ghetto gangsetr-beeetch language.
Oh, ok Paul... [Hey Toto.. I think he's taking some of those new "Yello Brick" bangers.. lets get outta here... ]
Regards,
Brian Dela
Níl aon tintéan mar do thintéan féin.
Is fear rith maith ná droch sheasamh.
Irish Sayings
|
|
|
|
|
Hello,
I'm trying to do the following,
I need to exchange some data from a database stored on a IIS server.
I thought I would use XML for the data format.
Note: ASP.NET is not available on this server.
Note: .NET framework is not availble on the client
The client app is in C++ and the server is ASP.
The client has made a tcp connection to the server and I can send HTTP headers
and get a response.
My question is how can I send the XML data to the server on a HTTP connection and have the ASP code read this data?
Not sure what the HTTP headers or method is to send large chunks of data to a webserver.
Receiving is fine, request a page and use ASP Response.Write to output the XML Data.
Cheers
John
|
|
|
|
|
johnb wrote:
My question is how can I send the XML data to the server on a HTTP connection and have the ASP code read this data?
Just an idea, but could you not use the upload features of HTML? Not sure how you do it in C++, but maybe have a look at how it is done with HTML and ASP and then watch the header files (where I assume the uploaded file is stored.) Then you could mimmick it. AFAIK it MIME encodes files for uploading.
You could also just use FTP to FTP up the XML file and then alert the ASP code to get the file.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Hello Paul,
I found a way by using POST on the client side and BinaryRead on the ASP side.
Thanks for info
Cheers
John
|
|
|
|
|
I'm using ActiveXObject function of JavaScript in order to instantiate a COM in the head section of a HTML. Unfortunately, the browser shows up a message box every time i load the page, saying
An ActiveX control on this page might be unsafe to interact with other part of the page.
Do you want to allow this interaction? (Yes, No) Do you know how could i disable it?
rechi
|
|
|
|
|
Try adding the site to the trusted zone in IE.
|
|
|
|
|
You'll be able to turn it off for yourself (put the site in the trusted zone, as Ray said), but you won't be able to prevent the warning appearing for everyone else who visits the page
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Hi all
What is the best font size? I like 10pt, but I have a 17" running 1024x768. It seems also to be the default size font for ASP.NET controls. Just wondering...
Any suggestions?
"I dont have a life, I have a program."
|
|
|
|
|
leppie wrote:
Any suggestions?
Yes, don't use absolute font-sizes, use relative font-sizing. Everyone has differnet monitor sizes, resolutions and eye sight, so 10pt may be nice to you but it will be unreadable for Joe Schmoe in Timbuktu with his 50foot screen.
Absolute font-sizes are pt and px . Rather use % (percentage) or em .
I have a simple article on it here: http://codeproject.com/html/relativefontsize.asp[^]
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Hi All:
I have a peculiar Challenge and need a work around.There is a form that my application uses which has a drop down list being populated at run time.And there can be a case when there is no data to populate it.
Apart from the data being populated i want the dropdownlist to have the option "Select one by clicking" as the default selected option in this listbox.I have managed to do it by the commands txt_listbox.items.add and then selected It using txt_listbox.items.findbytext("---").selected=true
but then the challenge is this option though gets selected is the last item on my dropdown listbox after all the data from the datatbase..But i want it to be the first..How do i do that.
If i try adding this entry and then populating from the database the database entries wipe out this entry or i get some nasty errors.
Any help is greatly appreciated..
Regards
Pradhip.S
If a Building is Completed then why do they call it BUILDING ??
|
|
|
|
|
Pradhip wrote:
If i try adding this entry and then populating from the database the database entries wipe out this entry or i get some nasty errors.
(I assume you are doing this in ASP because you are in the web dev forum, not the ASP.NET forum. I also assume this is not a Windows app you are talking about...)
Ok I do not have access to your code so I am just going to give you a sample of how we do it:
<select name="selSample" id="selSample">
<option value="na" selected="true">Select one by clicking</option>
<%
Do Until rs.EOF
Response.Write("<option value=""" & rs("id") & """>" & rs("Title") & "</option>")
rs.MoveNext
Loop
%>
</select>
As you can see first the <select> is created, then the default/selected item created. Then it loops through all the items in the recordset outputting the neccesary <option> elements.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Hi,
I'd like to host two intranet sites on one IIS server, without using subdirectories. They don't necessarily need meaningful names, but it would be nice anyway.
I know it's possible - but how?? :puzzled:
TIA
Peter
skulls don't kiss for an explanation - wait for the vacation photos! [sighist]
|
|
|
|
|
peterchen wrote:
without using subdirectories
Do you mean you want it so that you will have two intranets where the URLs contain no sub-directiors? e.g. http://intranet1 and http://intranet2 as opposed to http://intranet/1 and http://intranet/2 .
Either way, this article seems quite helpful: How to Create Multiple Websites with one IP address [^]
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
This one leaves me a bit puzzled (although it seems to do what I want to).
Where do I specify the location of the second sites's files?
(The "different port" solution would be ok with me )
skulls don't kiss for an explanation - wait for the vacation photos! [sighist]
|
|
|
|
|
If I remember correct from NT4 days, you will need to setup host headers, quite easy via the IIS manager, but only works on the server versions of IIS, else you can use some cheap scripts that doesnt really qualify as virtual hosting.
Hope this helps
"I dont have a life, I have a program."
|
|
|
|