Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[CLOSED] V 2.0 jqv:custom rule not found - phone 08 Nov 2012 02:40 #5116

  • madaura
  • madaura's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 3
Hello Admin,

I know there is a closed ticked about this topic, but this error is still present and I'm using the phone regex that comes with cook,

Thank You!

Please Log in or Create an account to join the conversation.

Re: V 2.0 jqv:custom rule not found - phone 09 Nov 2012 19:00 #5188

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
j-cook.pro/forum/19-new-tickets/5048-jqv...not-found-phone#5065

The native RegEx lib of Cook is only an example for very beginners. It do not handle all kinds of phones.

Do you have '_' (underscrores) in the handler ? Remove them in V2.0.
Because since soon, I decided to impose a rule : The underscores are used to distinct 2 different instances of the same rule (different parameters), as for the files. This is a good workaround to limit the quantity of rule files.
So, only the first part before the '_' is kept to call the rule php file :
ex : file_1234, will call 'rules/file.php', but in JS, the unique handler will be 'file_1234'

That's it.

Can I close ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: V 2.0 jqv:custom rule not found - phone 09 Nov 2012 20:23 #5197

  • madaura
  • madaura's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 3
About the '_', Nop! I didn't change anything, I'm using the original handler name 'phone'.
So I just create a custom one to fix this error.
By the way, the 'domain' regex displays the same error, so I had to remove it too.

Thanks for your reply!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.084 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started