Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Postbacks are not working when Javascript is disabled in the browserPostbacks are not working when Javascript is disabled in the browser
Previous
 
Next
New Post
10/9/2009 9:43 AM
 

Our website needs to support browsers without Javascript. However, whenever a form is being submitted (using a normal submit button - not a link button), the error below is occurring...

This can be reproduced on the DotNetNuke forums by disabling Javascript in Firefox and attempting to search for any keyword.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentException: Invalid JSON primitive: .
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject()
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
--- End of inner exception stack trace

 
New Post
10/9/2009 10:50 AM
 

Hopefully, someone will follow-up behind me and tell me I am having a brain lapse...  I do not think that it is possible to support non-JavaScript browsers with ASP.Net controls.  They are 100% dependant upon a client-side event executing a postback.  You would have to go the MVC/ASP/PHP route with Querystring values instead.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
10/9/2009 11:35 AM
 

I won't go as far as to say you're having a brainless lapse, but you are most certainly mistaken. It is indeed possible to use asp.net controls with out javascipt. some controls, such as the linkbutton, and imagebutton, and datagrids do require javascript, but the textbox, buttons, dropdowns, etc do not require javascript at all.

 
New Post
10/9/2009 12:53 PM
 

Okay... I spoke a little too generally by not qualifying my use of "ASP.Net Controls", but you're right.  The controls that require a postback, REQUIRE JavaScript.  Therefore, the rest of my original statement remains true.

What kind of browser are you trying to support?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
10/12/2009 4:11 AM
 

Again, you are mistaken. It is completely possible to build a complete ASP.NET website, with postbacks and all, WITHOUT requiring JavaScript. Trust me on this. The problem I'm having is that DotNetNuke is throwing an error (see original post) when JavaScript is disabled in my browser, and my module performs a post-back. In my opinion this is a HUGE bug with DotNetNuke. I don't think DotNetNuke should require JavaScript to be enabled (although I can understand why it may be required for the 'admin' screens).  In fact, in my experience, this wasn't the case with 4.x versions of DotNetNuke. It's only happening in version 5.x. If JavaScript has only just become necessary in the lastest version of DotNetNuke I think this should be made abundantly clear to anyone considering using DNN as their CMS for any public facing websites. There are usability and accassbility concers to say the least with Javascript. Can ANYONE confirm whether JavaScript is a requirement for DNN and if NOT, how can I resolve the problem I'm encountering above?

Thank you.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Postbacks are not working when Javascript is disabled in the browserPostbacks are not working when Javascript is disabled in the browser


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out