Welcome Guest, Not a member yet? Register   Sign In
codeigniter
#1

[eluser]Unknown[/eluser]
Hello
i want to make an ajax newsletter form.
i tried something like:
new Ajax.Updater('div_name', 'url', { method:'post',

parameters: { 'useremail': $F('newsletter_email_id') }
});
and many variations of it with no results.i even got the value of the email field with javascript however i can only pass it as a get parameter. However the email field value contains ci illegal characters. I dont want to set permitted uri chars to '' so i tried doing it inside my controller's costructor using $this->config->set_item('item_name', 'item_value');. i echo the value which outputs nothing however when i submit the email i still get the ci warning about uri permitted chars. I also made a second config file with permitted chars set to '' again echoed the value (which again was '') with no luck. Can anyone think of a possible solution?
#2

[eluser]Nick_MyShuitings[/eluser]
I'm not familiar with that ajax library. I've had a lot of success using jQuery's ajax methods with CI. Seems to be a problem with your frontend rather then the CI implementation.
#3

[eluser]Unknown[/eluser]
ill rephrase my question. how can i override the default setting of uri_permitted_chars only for a specific controller? i dont want to set it to '' for the entire app.
#4

[eluser]Cristian Gilè[/eluser]
Why not use rawurlencode() and rawurldecode() php functions ?




Theme © iAndrew 2016 - Forum software by © MyBB