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 29. Mar 2024, 14:11

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  [ 7 posts ] 
Author Message
PostPosted: 11. Mar 2009, 18:50 
Offline

Joined: 11. Mar 2009, 18:45
Posts: 4
Joomla 1.5.9
Enterprise Edition License

Problem: Javascript upload call
My experience level: noob

Issue: I figured out how to get the alert to pop-up after the photos upload. However, I need the user to redirect to a new page after clicking ok, is this possible?


Top
 Profile  
 
 Post subject:
PostPosted: 11. Mar 2009, 19:34 
Offline
Site Admin
User avatar

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

It's actually as comment in the example of JFU:
http://www.tinywebgallery.com/en/tfu/web_jfu.php

window.location.href=loc;

and loc is the parameter you can specify in the JFU configuration.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 11. Mar 2009, 19:39 
Offline

Joined: 11. Mar 2009, 18:45
Posts: 4
I'm sorry I still don't understand. Do I put the window.location.href=loc in the param section of registered user or do I replace the loc with the http address?

I am very new at this, sorry if the question is bad.


Top
 Profile  
 
 Post subject:
PostPosted: 11. Mar 2009, 19:42 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
have you read the howto?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 11. Mar 2009, 19:45 
Offline

Joined: 11. Mar 2009, 18:45
Posts: 4
yes, i copied this to the text area:

script type="text/javascript">
function uploadFinished(loc) {
// you can do something after the upload - loc is the parameter you provide in the config!
// you can call e.g. a php page where you have stored infos during upload!
// e.g. if you want to jump to another page after upload the code could be:
// window.location.href=loc;
alert(loc);
}
/script

what I don't understand is the part above that says, if you want to jump to another page the code should be...where does that code go?


Top
 Profile  
 
 Post subject:
PostPosted: 11. Mar 2009, 19:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
It's that easy :).

The forward was already there as a comment.


function uploadFinished(loc) {
window.location.href=loc;
}


and loc is the parameter you can set in the config of JFU.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 11. Mar 2009, 19:59 
Offline

Joined: 11. Mar 2009, 18:45
Posts: 4
I am able to get the page to redirect but I would still like the alert to pop and click ok, then redirect. I can work with this though, thanks


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 17 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