You can usually visit the flightdeck of any airline anytime you are on the ground and the cabin door is open. i.e passengers boarding or deplaning. Just ask the cabin crew when you board if it would be possible to have a chat with the crew. I've never been turned away.
Riding jumpseat however is a totally different matter.