I was just about to ask the same question and had a vague memory that
this was asked yesterday in the mailing list. The hack works, and I'm
using jQuery to bind the value of window.location.hash to an
input#app_hash in ui.R:
tags$head(
tags$script("
$(document).ready(function() {
$('#app_hash').val(window.location.hash);
});",
type = 'text/javascript')
)
)
tags$input(id = 'app_url', type = 'text', style = 'display:none;')
Then I can use input$app_hash in server.R.
Yihui
On Nov 26, 5:41 pm, Laszlo Szakacs <
cocine...@gmail.com> wrote:
>
http://glimmer.rstudio.com/szakacs/test1/#i=1&j=2did the trick, thanks.
>
>
>
>
>
>
>
> On Tuesday, November 27, 2012 12:14:58 AM UTC+1, Joe Cheng [RStudio] wrote:
>
> > You're right, it looks like we need to beef up our URL parsing code for
> > the server. In the meantime you could use window.location.hash instead and
> > substitute # for ?, I suppose...
>
> > On Mon, Nov 26, 2012 at 2:56 PM, Laszlo Szakacs <
coci...@gmail.com<javascript:>
> >>
http://glimmer.rstudio.com/szakacs/test1/index.html(and not with e.g.
> >>
http://glimmer.rstudio.com/szakacs/test1/index.html?i=1).
>
> >> On Monday, November 26, 2012 9:22:08 PM UTC+1, Joe Cheng [RStudio] wrote:
>
> >>> If you just need them in JavaScript, you can parse
> >>> window.location.search. If you need them in your Shiny server logic then
> >>> you'd need to get them up to the server using a custom input component<
http://rstudio.github.com/shiny/tutorial/#building-inputs>.