Welcome Guest, Not a member yet? Register   Sign In
redirect() within an iframe
#1

[eluser]irimi[/eluser]
Hello,

I think the problem is more a PHP one than CI... But it's still a problem Wink

I don't like it at all, but I'm using an iframe in a project, to obtain an image uploader into a form page, to avoid popup windows. All the project (main pages + uploader iframe) are coded with CI.

Of course I'm using an iframe, not a simple DIV, because of the "file input" tag, which can't be handled with AJAX alone into my main page.

So the iframe contains a form with text inputs, and a file input. When this form is submitted and validated, I want to redirect the iframe display to have a success message, thus cleaning the POST data. Unfortunately, if I use the redirect() function from the URL helper, the server returns a 400 ("Bad Request") error.

Is it possible, with or without the CI functions, to do a redirection within an iframe ?

Thanks.


Messages In This Thread
redirect() within an iframe - by El Forum - 12-22-2009, 02:07 AM
redirect() within an iframe - by El Forum - 12-22-2009, 03:24 AM
redirect() within an iframe - by El Forum - 12-22-2009, 03:45 AM
redirect() within an iframe - by El Forum - 12-22-2009, 03:51 AM
redirect() within an iframe - by El Forum - 12-22-2009, 04:44 AM
redirect() within an iframe - by El Forum - 12-22-2009, 04:52 AM
redirect() within an iframe - by El Forum - 12-22-2009, 09:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB