elixireu
elixireu

Reputation: 275

How can I retrieve a URL variable in coldfusion from a URL with a hashtag?

I have the following URL file.cfm#widget=details?id_code=123

I'm trying to display or use the id_code var... <cfoutput>#url.id_code#</cfoutput>

But it gives me the error Element COURSE_CODE is undefined in URL.

Any help would be great.

Thanks

Upvotes: 2

Views: 959

Answers (1)

JDev
JDev

Reputation: 168

This is called a Fragment URL. Unfortunately, this (and everything behind it) isn't passed in your HTTP request, and isn't readable by your server side ColdFusion code.

Can I read the hash portion of the URL on my server-side application (PHP, Ruby, Python, etc.)?

Upvotes: 1

Related Questions