|
I use a form to display combos and edit boxes. I read all the details using javascript. I do NOT wish to submit the form ever, although when the user presses ENTER the default action is to POST the form. How can I stop this please?
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
in the form tag, put onSubmit="return false;" , or just get rid of the form tag all together. If you are not submitting it, you dont need it.
|
|
|
|
|
|
Hi all,
I would like to know what is Microsoft Visual C++ .NET standard?
Is it new version of Microsoft development studio?
If so what is new with this or what I can do more?
Can I compile application built with VC++ 6.0 if I install MS VC++ .NET standard?
thanks
regards
/rsasalm
|
|
|
|
|
I'm trying to do the following 2 things:
1. log the referrer.
I've tried the following, but get a object expected error.
Request.UrlReferrer.ToString();
Any ideas?
2. I have 2 domain names pointing to one site and I want to find out which is being requested. The URL would be www.one.com or www.two.com, but I'm not sure how to get this from the Request object.
Any code examples would be cool.
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
- You may not always have a referrer, e.g. if the user types in the URL. In this case, the "UrlReferrer" property will probably be
null ; - Look at
Request.ServerVariables.Item("SERVER_NAME") , which should contain either "www.one.com" or "www.two.com" depending on the domain;
|
|
|
|
|
Hi !
I have a table with 2 columns ; the first's width is 60% and the second's 40%. I need to know the real width of the columns in pixels after the construction of the table ! How can I do this ?
Thanks for any help.
Emmanuel Derriey
|
|
|
|
|
What would happen if you assigned an ID to both of the columns and then used the DOM to check the width after load of the page?
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
... I retreive : "60%" for the first, and "40%" for the second...
Emmanuel Derriey
|
|
|
|
|
Try accessing the clientWidth property, instead of the width property.
|
|
|
|
|
I tried, as well as offsetWidth, but neighter clientWidth nor offsetWidth give me the good width...
Emmanuel Derriey
|
|
|
|
|
thanks!
prefer having source codes!
asp best!
here in cp.com have such stuffs,but they do not meet all my demands!
|
|
|
|
|
David Wulff's forum code is pretty good. What were problems with that?
..this is a VB Programmers' world and we all are just visitors - Someone in a MSJ article
|
|
|
|
|
I agree. Plus the fun of customizing that forum to fit your demands.
|
|
|
|
|
|
When for example I've been filling in a form for my address, I've seen it where I select the country, and the state/county combo box auto fills will all the country states/countys.
Anyone know how I could do this please?
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Jeremy Davis wrote:
When for example I've been filling in a form for my address, I've seen it where I select the country, and the state/county combo box auto fills will all the country states/countys.
I have seen this on the Microsoft site and a few others.
Basically there are two ways; Server side or client side. Each has it's advantages and disadvantages.
Server Side
This way you submit the form onChange of the Country drop down list. The server then loads the State/County drop down list with all the States and Counties that match the selected Country.
The disadvantage is that this requires a server round trip and people with low-bandwidth will get irritated having to wait for the page to load just to select a state. The advantage over the client-side is that you don't have to pre-load all the possibilities into a JavaScript array. Also it is easier to code. It is also cross-browser compliant.
Client Side
This way you pre-load all the states and counties for all the countries into a JavaScript array on the client side. onChange of the Country drop down you just use DHTML to fill the State/County drop down list with the relevant entries.
The disadvantage is naturally that pre-loading all of those states/counties can be a serious page bloater. You could end up with hundres of kilobytes of unused records. The advantage is that it is quick and no server round trip is needed. This is however not cross-browser compatible without serious extra work.
Saying all of that the best option is not to offer an automatic State/County list but rather just use the standard text box and let the user fill it in. Less coding, no server roundtrips and no pre-loading. People will prefer it, especially on slow lines.
The only exception of course is an intranet where response time is not an issue. Use the JavaScript method then.
You can always validate the State/County that the person types in on the server-side onSubmit of the form if State/County data must be valid.
If you need code for either of the above two, I recommend Google. The JavaScript method has quite a bit.
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
Tim Smith wrote:
Over here in the third world of humor (a.k.a. BBC America),
peterchen wrote:
We should petition microsoft to a "target=_Paul" attribute.
|
|
|
|
|
|
how i can add header and footer in a web page by using HTML or DHTML?
thankx in advance.
|
|
|
|
|
can we trouble you to tell us more of what you want to achieve?
|
|
|
|
|
Everything out there talks about working with ASP.NET and how to do special things like graphics, database, XML, etc. However what is missing (IMO) is setup of a project. Seems a lot of the people I talk to just have a heck of a time writing your simplest ASP.NET application because of all the security settings with a C# implmenetation and such. Maybe we could have someone write an article "Getting started with ASP.NET". I'll write it as soon as I get my home server ASP.NET application working!
Andrew Connell
IM on MSN
andrew@aconnell.com
|
|
|
|
|
I must admit this confused the hell out of me - I wanted to have several web forms up at the same time and it took a while before I worked it out. now just got to work out how to talk between them
Holy Handgrenade of Antioch instructions
|
|
|
|
|
I am looking for a way to control the width of a dropdown box (easy enough) - but to have the 'dropdown' element appear wider than the box itself.
I have seen this coded in c++ apps but not specifically for a web page.
Any ideas?
|
|
|
|
|
There is nothing in HTML or CSS specs to let you control this aspect of a tag.
If you really really really had to have that level of control you'd have to sell your soul to the ActiveX control.
|
|
|
|
|
I want to show some .asp page with some message for user in a few seconds and then I want to redirect my user on some another .asp page...
Relating to that, my questions is:
How can I specify, for example, time out period of 10 seconds?
Thank you in advance,
Tesic Goran
|
|
|
|