Hello Betty,
As for the page's logic you mentioned, IMO, client-side scripting is the
reasonable solution to do it. As you said that you've met the problem with
script on MAC OS, do you mean the script function incorrectly or script
can not run totally?
Based on my experience, for some certain browser model, there does exists
some difference and compatiblility issue between different browsers. If
what you care about is the script difference between multiple browsers,
there exists some article introducing client browser detecting and execute
script according to browser type:
http://www.quirksmode.org/js/detect.html http://www.webreference.com/js/column6/
for your another question:
=============
should I put the three plans in one form or multiple forms, I never
programed multiple forms in one asp
==============
I think this depend on your data on the form and how you'll process them.
1. When using multiple forms, we can assign separate page to process the
data of each form when the user submit each form respectively. So this can
help separate different code logic into different ASP processing pages.
2. When we post a web page, the data in html form(which is submitted) will
be carried in the http request. Therefore, if you put all the three forms's
elements into one form, everytime you submit the form, all the form
element's data (no matter useful or not) will be carried in httprequest.
This will impact performance when there is large amount of data.
However, if you use multiple forms, each time one form is submited, the
data input in other forms will not be carried in the httprequest, this can
imrpove network transfer performance when the input data is large.
BTW, if you put all the elements in one single form, you can surely
identify which button(1 or 2 or 3) cause the submit at server-side, you can
just at some client-script to mark an <input type="hidden" /element at
client-side before form submit and check this field at server-side code.
Actually, this is what ASP.NET page do ,you can also adopt this appraoch in
classic ASP page.
Please feel free to let me know if you have anything unclear or any other
information you wonder.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.