Forum


HomeHomePublicPublicDevelopmentDevelopmentSPA module Getting QuerystringSPA module Getting Querystring
Previous
 
Next
New Post
9/13/2016 7:37 AM
 

Hellow,

I am currently developing a SPA module for DNN 8.

I need to get the QueryString Parameter  from request to trigger a ajax request to the server.

The Token [Querystring:Name] is not working.

What is would be the best way to get the Querysting Parameter?

Thanks in Advace


 
New Post
9/13/2016 12:48 PM
Accepted Answer 

You can download my RestaurantMenuSPA example here to see working code.

I use a client-side function to get the querystring info.

In menuEdit.js, line 41-42:

 
   var utils = new common.Utils();
   ...
   var qs = utils.getQueryStrings();
   var itemId = qs["tid"] || 0;

That common.Utils is in common.js

 
New Post
9/13/2016 11:13 PM
 

Thank you Scott.

 
Previous
 
Next
HomeHomePublicPublicDevelopmentDevelopmentSPA module Getting QuerystringSPA module Getting Querystring



Try FREE
30 days money back guaranteed