? orus casino? bodog? ruleta? luckia? betano? sportium? spin casino? stakes? 3 reyes? 888? lottoland? coolbet? 777 casino? gana777? betfair? bwin? yak casino? ivy casino? oddschecker? red casino? netbet? william hill? vip casino? rey casino? marathonbet? dafabet? sol casino? 1bet? winland? bet777? parimatch? 18bet? 888casino? campobet? mostbet? ganabet? rushbet? betcris? betsson? lucky? novibet? winner? winpot? betmaster? betmexico? cancun? playcity? strendus? pokerstars? codere? caliente? fun88? bbrbet? 1win? 10bet? betway? pin up? spinbet? 7cslot? pickwin? spin bet? mr fortune? w88? pragmatic? gamdom? crasher? jojobet? betmex? bcasino? foliatti? winner mx? bets 10? big bola? bet master? inbet? 7slots? lucky day? m777? mexplay? luckydays? bet caliente? 1x? plinko

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