Welcome Guest, Not a member yet? Register   Sign In
Desable access denied for posting scripts...
#1

[eluser]Rubiz'[/eluser]
Hi... fast explanation of my problem:

I NEED TO POST GOOGLE SCRIPTS...

Well, I have an app that admins a web site and my client need to change advertisings.
Sometimes the advertising will be dwf or images, sometimes google scripts or others.

But when I try posting it, ci returns me access denied...

AAhhhh!!!!

How can I desable that?
#2

[eluser]Rubiz'[/eluser]
There's no way to post < script > tags?
#3

[eluser]Michael Wales[/eluser]
I can foresee no reason at all why CI would keep your from submitting a SCRIPT tags via a form. I imagine this is an application that was developed by someone else?

I recommend either: A) diving into the code yourself; B) contacting the original developer; C) posting in the job board to hire someone to work on it for you.
#4

[eluser]Rubiz'[/eluser]
Michael, thanx for answering. This app was developed by me when I post < script > tags it returns me Access Denied...

403 Error
Access denied...
#5

[eluser]Rubiz'[/eluser]
I'm trying to prepare the script tag with javascript before submiting form.
It looks be fine, now my form is submiting.

If anyone knows a nice way to prepare tags before submit please tell me.

Thanx all.
Rubia
#6

[eluser]Rubiz'[/eluser]
I had to do this:

Code:
function prepareScriptTags(form)
    {
        var x = document.getElementById(form);
        var y = document.getElementById('script_');
        var value = y.value;
        if ( y.value != '')
        {
            var code = value.replace(/</g, "&lt;");
            code = code.replace(/>/g, '&gt;');
        }
        
        y.value = code;
        
        x.submit();
    }

The '<' and '>' in codes &l;... &g;... here it appears in text




Theme © iAndrew 2016 - Forum software by © MyBB