Dialog parameters

Dialog parameters

Hi
      I was trying to use a dialog by specifying data-role="dialog" which works great. The issue I have is that when I pass this page a parameter in the format eventdialog.html?id=123 then I seem to be unable to retrieve this parameter via  urlUtil.getUrlVars()["id"].

If I alter the dialog page to a data-role="page" then the above method works fine. I was wondering if this is an issue, something daft I am doing or if there is a way of doing this with a dialog?

Many thanks