This discussion is archived
12 Replies Latest reply: Mar 19, 2009 2:06 PM by Tyler RSS

jQuery Plugin for APEX - Namespace Delima

Tyler Expert
Currently Being Moderated
So, hypothetically speaking, lets say someone wrote a jQuery plugin for APEX that was a wrapper on the jQuery.ajax() function. The two primary use cases would be to post and get content. I have 3 options for namespaces that I can think of and I wanted some feedback on what the community would prefer.

1) 1 function, 2 methods:
2) 2 functions:
3) 1 function, 2 options:
$.fn.jApex.defaults.type = 'post';
$.fn.jApex.defaults.type = 'get';
Thoughts? It doesn't take much to change the code at this point since I'm the only one using it, so I want to get some feedback before I post the code.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points