RE: RadioButtonList, MultiView, and JavaScript

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It really depends on your page's design. For example, if you change your
security settings for the Internet zone in your browser to disable Active
scripting and visit this discussion forum again
(http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.aspnet.webcontrols&lang=en&cr=US)
it will not work. But if you visit the City of North Vancouver's website
(which I developed using ASP.NET 1.1) http://www.cnv.org/ it will work. But
if you visit my website http://www.webswapp.com/ you will find that it works
up until you meet some hyperlink buttons.

To learn more about the effect of disabling client-side scripting on the
ASP.NET controls you might review this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconclientscriptinwebforms.asp

In other words, if you expect that a significant number of your users would
disable the client script then avoid the controls mentioned in the above
link, or else inform the visitors that client side scripting is necessary to
utilize the full functions of your site.

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com


"David Thielen" wrote:

Hi;

Question - can I assume javascript must be enabled in ASP.NET? In other
words, will the parts that ASP creates not work if there is no javascript? Or
can someone turn javascript off?

And if they can, how should I handle that in this case. Because I would want
some kind of <noscript> to make a postback on the radio button change - but
only if there is no javascript allowed.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



"Phillip Williams" wrote:

Panels are the same story; they are server controls that would only render
their content if they were turned visible. You would be looking for DHTML
programming; where you would add <DIV> tags (which are rendered as they are
on the browser) to a page and handle them using JavaScript.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com


"David Thielen" wrote:

I saw that - I was hoping there was a way to switch a mode or something.

Ok, what if I have 2 panels, then can I do this? And if so, how?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



"Phillip Williams" wrote:

Hi David,

The MultiView server control only renders the selected View to the browser.
In other words, you cannot use JavaScript on the browser to display other
views because their markup is not rendered. To confirm that, right mouse
click on the browser and “View Source”; you will not find the markup of the
unselected views. The web page has to go back to the server to display it.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com


"David Thielen" wrote:

Hi;

If I use a radio button list to set which view to display in a MultiView, is
there a way to set it to change the view using javascript where it does a
<div> around each view?

And also have it postback only if javascript is disabled?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

.



Relevant Pages

  • Re: AJAX.NET and prototype.js
    ... Javascript is an ideal language for client-side scripting ... (particularly browser scripting) ...
    (comp.lang.javascript)
  • Re: JS Guru needed! Why doesnt this work?
    ... > (in case if the scripting is disabled). ... accommodating javascript incapable/disabled browsers. ... and then client-side scripting can transform it ... > own browser etc. etc. ...
    (comp.lang.javascript)
  • Re: bank site & enabling java
    ... but still i cant get into the credit union site. ... Allow scripting of IE browser control ... support JavaScript or JavaScript may be disabled. ...
    (microsoft.public.windowsxp.basics)
  • Re: Prototype - Good/Bad/Why?
    ... of jQuery or Prototype or YUI, those libraries will be continue ... with a limited understanding of javascript to throw together web sites that ... browser sniffing it also has the advantages of a formal technical ... broken back buttons, etc., etc. Disabling scripting is almost never ...
    (comp.lang.javascript)
  • Re: Javascript disabled in my browser?
    ... Active scripting basically means JavaScript or Visual Basic script. ... JavaScript is nothing to do with the SUN language "Java" and Visual Basic ... Disabling ... > I am using MS Internet Explorer 6, which came with Windows XP Pro when I ...
    (microsoft.public.windows.inetexplorer.ie6.browser)