The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Apr 20, 2012 8:37 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Feb 18, 2008 9:50 am
Posts: 38
Hi all,

I'm doing a component. I have a form with an input file to upload. I'm using the iframe tips in order to upload the file without changing the current page displayed.
Inside my controller, the upload() function works fine and the upload is ok.

My problem is that i don't know what to do to stay on the current page. currently it goes to the default page of my component.

At the end of my upload function, i do a " return true". I've tried to put a $mainframe->close() but the result is a blank page.
I would like to "break" the Jroute and redirect automatic features, but don't know how to do that.

Any suggestion for what doing at the end of the function to stay on my form without redirect ?

Thanks a lot for your help
Sylvain.


Top
 Profile  
 
PostPosted: Fri Apr 20, 2012 4:55 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Feb 18, 2008 9:50 am
Posts: 38
I'm answering to myself.

i've put some javascript to play with the target form that has to be the iframe. And, as dummies, i did form.target.value = 'id_upload_iframe' instead of form.target = 'id_upload_iframe' . Now everything is well.


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



Who is online

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

Jump to:  
Powered by phpBB® Forum Software © phpBB Group