Jacob
Jacob

Reputation: 3698

jQuery mobile read query string from popup dialog

I found in google this question was asked several times. However, I haven't found right solution yet.

I have the following link element:

<a href='../Pages/WriteAbout.html?userName=Jacob' class='ui-btn ui-btn-icon-right ui-icon-carat-r' data-rel='dialog' data-transition: 'pop'>...</a>

When this link is clicked, a popup shows but when I read the url (in order to read the query string) I get the url without the query string 'userName'.

I read the url like this:

window.location.href

It seems like jQuery omits the query string from the url.

Is there any other way to pass parameter to a popup dialog? ($.mobile.changePage(...) is not a solution as it opens the page with no dialog popup)

Upvotes: 0

Views: 281

Answers (0)

Related Questions