var params = {}; window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(str, key, value) { params[key] = decodeURIComponent(value.replace(/\+/g, ' ')); }); console.log(params);
Showing posts with label Params. Show all posts
Showing posts with label Params. Show all posts
Wednesday, November 16, 2016
jQuery get params from url
Tuesday, November 8, 2016
Grails get retrieve GrailsParameterMap params from service class or util class
Have to import:
import org.springframework.web.context.request.RequestContextHolder
and use following:
def params = RequestContextHolder.getRequestAttributes().params
import org.springframework.web.context.request.RequestContextHolder
and use following:
def params = RequestContextHolder.getRequestAttributes().params
Monday, November 7, 2016
How to pass the entire model to a template in Grails
<g:render template="/layouts/view_name" model="${pageScope.variables}"/>
Subscribe to:
Posts (Atom)