colorbox to load ajax content, how to retrieve querystring values with or without jquery sent to the ajax .htm page

StackOverflow https://stackoverflow.com/questions/8237443

  •  07-03-2021
  •  | 
  •  

Question

I know how to load ajax content "winner.htm" using colorbox; however, I need to send via querystring "?fund=Aggregate" to the "winner.htm" page. Click here if you need a hint on how to retrieve querystring values via jQuery (or without)..

Was it helpful?

Solution

As I look into this last night, I found that it was because accessing windows.location.href using javascript in the external ajax file will only return the invoking window's url since colorbox is only a popup, an overlay, so the common solution will not work. And I finally solve this by accessing not a .htm file but a .aspx file and get the passed-in querystrings in the code-behind :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top