|
am trying to set the focus to a particular text entry box on a web page using javascript ... works in a function but i need it to work after the page has loaded too ... i have a test page that works but on the one i want it to work on it doesn't!!!
put me out of my misery pulease!!
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
make sure you put the code which sets the focus, at the end of the page, so that the browser runs it after it has already parsed the control you want to affect.
|
|
|
|
|
...or you can use the <script language=javascript defer> so that the script will run after the page is loaded, or fire the script on the onreadystatechange event
cheers,
Chris Maunder
|
|
|
|
|
aren't those two only for IE?
|
|
|
|
|
Andy Smith wrote:
aren't those two only for IE?
You mean there are other browsers besides IE?
cheers,
Chris Maunder
|
|
|
|
|
I went into IIS and set the directory security (IP address and domain name restrictions) to Denied Access and then added a group of computers using our ip and subnetmask. I also added my own ip as a single computer. When I did this I can no longer open up my project in .NET properly. It says Web Access Failed. Any suggestions?
Todd Smith
|
|
|
|
|
I figured it out. Apparently IIS is using inverse subnet masking? All the documentation seems to show the other way around. I had to use
IP Subnet Mask
24.24.32.0 0.0.0.255
instead of
IP Subnet Mask
24.24.32.0 255.255.255.0
which is what all the docs seem to use. Did they change this?
Todd Smith
|
|
|
|
|
I as the title suggests I am new to asp and asp.net programming, can anybody suggest a good starting point. I am talking really "Hello world" stuff. I hava good idea as to what I want to achieve with my first web application but really don't know where to start as there is so much stuff out there.
I appreciate your help.;)
Andy
|
|
|
|
|
|
I have a datagrid in an ASPNET App, and I need a column to have an image and be clickable.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Use a template column and insert you image, if all the images are the same that is. Otherwise you may have to handle the OnDataBind or OnItemCreate and insert the images as neccessary.
|
|
|
|
|
Thank you for your both answers.I checked this one and it was OK,now I have to test another one too.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
When I close the window, I found the code I wrote in Session_End did not work.
How can I deal with this problem. I want to deal with some data when users close the opened window
chq12
|
|
|
|
|
|
Same problem here!!!!!!!!!!!!!!!!!!!!!!!!!!!
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
I am so bad about it-----
Help me-----------
|
|
|
|
|
The session_end event is Notoriously unreliable. The session doesn't officially end some 20 minutes (depending on settings) after the window is closed. And even that's not guarenteed.
A possible solution might be to use some javascript with the onunload event in the body tag, but that seems iffy at best too.
Sorry I can't be of more help.
|
|
|
|
|
I used a radio and select groups in form, I selected the option I want and then refresh (or submit) the page. But I found that the selection returned to the default pages
How to save the selection I want. With javascript?
I hope some one can give me some help.
Thanks
David
|
|
|
|
|
at last i find a way to solve it
|
|
|
|
|
What is the proper syntax for joining text strings together. I want to add a .txt to the end of a variable so that I can point to it as a file name.
namePrefix = "catalog"
Filename = join(namePrefix, ".txt")
this isn't working so I must not have the correct syntax.
If any one knows what it is I'd be very greatful.
__________________
|
|
|
|
|
Filename = namePrefix & ".txt"
Best regards,
J. Paul Schmidt - ASP Web Developer
http://www.Bullschmidt.com - To put live data on the Web...
|
|
|
|
|
I am developing an ASP.NET application where a user will enter some infomation in a form, the information will be written to a database, and then I want the application to signal the user that the entry was successful or failed. One way to do this is to have the application display a message box. This is easily done with some client-side script, but I don't know how to do it from the server side. I want the message box to display after some server-side processing has taken place. I know that client-side functions can be associated with controls, but I have found that the client-side function of a control is called before its server-side event handlers.
So, is there a way to display a message box from an ASP.NET page?
"What would this country be without this great land of ours?" -Ronald Reagan
|
|
|
|
|
Naresh Karamchetty wrote:
This is easily done with some client-side script, but I don't know how to do it from the server side
Unless you do some hecticly fancy remoting, you cannot get server-side code to pop-up a client-side message box. It just does not work that way.
Best way to do this is have page1.aspx submit to the server, page1_processor.aspx then does the database stuff and then redirects once it is finished to page1_finished.aspx which has a JavaScript/VBScript alert box.
However rather not even use an alert box as they are annoying. Just have a nicely formatted HTML paragraph on the page1_finished.aspx page.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
I have an ASP.NET application,I want to do something when user close the Internet explorer or leave my site.Where should I do it?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Mazdak wrote:
I have an ASP.NET application,I want to do something when user close the Internet explorer or leave my site.Where should I do it?
There is no fool-proof way and definitley nothing as reliable as you can do in Windows apps.
BUT there is an unload event in HTML.
<body onunload="alert('Where are you going sucker?');">
I must stress that it is not foolproof. It does not always fire and there are ways the user can supress it (a lot of pron sites use this technique to stop you leaving their site, so a lot of pop-up buster software kills the onunload event.)
I also dimly am aware of a "IsConnected" method in ASP (probably ported over to ASP.NET) which you can call from the server side to do some trickery. Not sure about it though.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|