Hi.
Is there any posibility to access ex. updatepreview function from outside the plugin?
what im trying to do is fetch images from php/mysql inserting them to image dialog and then when onclick the image i want it to show with the adress, size's and preview on "imageinformation". and then be able to add it to the content.
i have done a tab in image and have it to show the images. but when i try onclick=updatepreview(dialogname) it dosent seem to work. it says that it cant find the function
Anyone who can help me?
Is there any posibility to access ex. updatepreview function from outside the plugin?
what im trying to do is fetch images from php/mysql inserting them to image dialog and then when onclick the image i want it to show with the adress, size's and preview on "imageinformation". and then be able to add it to the content.
i have done a tab in image and have it to show the images. but when i try onclick=updatepreview(dialogname) it dosent seem to work. it says that it cant find the function
Anyone who can help me?
Re: access plugin functions
getDialog().updatepreview or this.updatepreview or something.
See if you can use firebug and look at the source code and try to figure out where the update code is in relation to where your trying to call it.
Advice: If it's the plugin I was dealing with, I think it's defined anonymously in the onChange function of some field...meaning it's basically inaccessible. You could try moving it out to a higher level of the plugin or simply copy and pasting the code from the updatepreview function to where you want to use it. (Either way you might then have to deal with scope issues within the function). It's inconvinient, but best way I found at the time.