Pass params into position()?

Pass params into position()?

Hi All,

I'm trying to write a generic positioning function so that I can pass in various jquery objects and position them... The only things that will change are the object passed in and the offsets. Passing in the object works fine, but I can't seem to get the syntax for the offset to work. Can anyone tell me what I'm doing wrong? 

  1. function doPosition(object, offsetX, offsetY){
  2. j(object).position({
  3. of: j('#stage'),
  4. my: 'left top',
  5. at: 'left top',
  6. offset: "'"+offsetX+' '+offsetY"'";
  7. });
  8. }
  9. doPosition(j('#myView'),50,60);
Many thanks for any help,
brokenindex