Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 02:48

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Javascript call
PostPosted: 20. Nov 2008, 18:48 
Offline

Joined: 14. Jul 2008, 20:12
Posts: 7
Hi,

I recently paid for a JFU license and would like to run some Javascript that renames and (if I can figure out how) converts the images to jpg after they're uploaded. How do I do this??? I see that if it's a mambot I can put the JS right there on the page but I apparently don't understand mambots and can't get it to work. How difficult is it to do this with just the component?

Any help would be much appreciated, I've been trying to figure this out for the past three days.

Thanks in advance!!!


Top
 Profile  
 
 Post subject:
PostPosted: 20. Nov 2008, 19:10 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

Have your read the howto:
http://www.tinywebgallery.com/en/tfu/web_jfu.php
with the javascript callback?

With the component you have to bring in the javascript somehow.
I actually just tried the following and it is perfect ;).

go to the configuration to the profile.

go to the Text after the flash box and enter:
<script type="text/javascript">
function uploadFinished(loc) {
alert("upload")
}
</script>

Then you have to enable the Javascript call by entering a value at
Enable Javascript upload call
this value is the parameter that is used as loc in the uploadFinished Method.

Done ;).


I'll extend the documentation with this ;).

/Michael


Top
 Profile  
 
 Post subject: Thanks!!!
PostPosted: 21. Nov 2008, 06:53 
Offline

Joined: 14. Jul 2008, 20:12
Posts: 7
Awesome!

This is really really useful! You should definitely point out that you can just put that code in the "after text" section. It says how it's simple with a mambot but I'd say it's just as simple with the component.

Thanks Alot!


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2008, 09:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I have already extended the howto. I actually never though before about using the textfield for this ;).

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy