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
  •  | 
  •  

Frage

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)..

War es hilfreich?

Lösung

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 :)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top