Hijaxing encoded Url parameters

5 views
Skip to first unread message

Jrad

unread,
May 21, 2011, 4:30:37 AM5/21/11
to jquery-claypool
Dear Chris,
We have a encoded <a href="#lbd/user/show/behrad%40yahoo.com"></a>
with the
urls="|:app|/|:controller|/|:action|/|:param1|"
When we call event.params( "param1" ) claypool returns "behrad"
instead of behrad%40yahoo.com which was originally behrad AT yahoo.com

How can we capture email addresses (@) in regular hijax rules!!?

chris thatcher

unread,
Jun 29, 2011, 1:37:40 PM6/29/11
to jquery-...@googlegroups.com
Gosh, sorry for the late reply, I missed several emails and have been extremely busy at work.

The best way is to use a full-power regular expression which is achieved by using <:name(regexp):> . In your case this might look as simple as 

|:app|/|:controller|/|:action|/<:param1(.*):>


--
You received this message because you are subscribed to the Google Groups "jquery-claypool" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to jquery-claypo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jquery-claypool?hl=en.




--
Christopher Thatcher
Reply all
Reply to author
Forward
0 new messages