0

I have created a dynamic div in that I use this variable and appended into one div:

vAlbum=vAlbum+"<a href='Preview.aspx' onclick=
'location.href=this.href?albumname="+result.Items[i].AlbumName+"'>"

How can I fetch albumname in Preview.aspx page with jQuery?

1
  • The easiest way is for the Preview.aspx to print it in a variable, i.e. <script> var albumname = <% ... %>; </script> Commented Mar 18, 2013 at 10:17

1 Answer 1

1

Use jQuery URL parser - https://github.com/allmarkedup/jQuery-URL-Parser

Then it becomes:

var albumname = $.url().param("albumname");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.