Connecting PasteBin.com API - AJAX Post doesnt give any response

Connecting PasteBin.com API - AJAX Post doesnt give any response

Hi guys,
I am currently developing a little widget for my forum. I want that users can easily copy & paste their code in a window and get a pastebin.com url for their source code. However, I am doing so by using jquery and it's Ajax plugin which results in getting no response.

You can have a look at my source code at: http://pastebin.com/QxVKdedy

Do you have any ideas why I dont get any response data?

I actually read something like: Because of security reasons there is no cross browser ajax in browser available.
Is that statement actually true ?

Nevertheless, I wrote an email to the support of pastebin.com and they told me like having no idea, and there should be at least a response such as something like that:
ERROR: Invalid POST request, or "input_text" value empty. - If 'paste_code' was left empty, or no POST was used.
ERROR: Invalid file format. - If 'paste_format' was not a valid input.

I was monitoring the script via firebug and the "Net" tab of it.

Do you have any ideas, what could solve the problem?

I am looking forward to hearing form you.

All the best,
Paul

























    • Topic Participants

    • bpr