Saturday 15 June 2013

JQuery replace var value -



JQuery replace var value -

i have next code.

var fancyproductdesigner = jquery('#fancy-product-designer-310938') .fancyproductdesigner({ uploaddesigns: 0, customtexts: 1, imagedownloadable: 1, saveaspdf: 0, printable: 1, dimensions: { sidebarnavsize: 30, sidebarcontentwidth: 168, sidebarsize: 887, productstagewidth: 490, productstageheight: 490 } }).data('fancy-product-designer');

i want alter width , height. locations in (dimensions:) user inputted dimension.

i need know how can set/change these values.

i tried see if object exists.

alert(typeof $('fancy-product-designer').data('dimensions'));

but says undefined....

my page @ http://www.panel-it.eu/shop/ontwerp-sticker-effe-kleuren/#

and element appears when pressing yellowish bar.

i logging

console.log(jquery('#fancy-product-designer-310938').data('fancy-product-designer'));

but can't find way reset dimension.

i noticed: setstagedimensions

can help me along?

this returns object methods available fancy product designer:

var info = jquery('#fancy-product-designer-310938').data('fancy-product-designer');

inside find method setstagedimensions() can utilize so:

// first argument width, sec height data.setstagedimensions(200, 400);

now within dimensions productstagewidth 200 , productstageheight 400. method alter other dimensions can't find. @boulder_02 mentioned in comment info method doesn't store original object own returned .fancyproductdesigner().

jquery

No comments:

Post a Comment