cancel
Showing results for 
Search instead for 
Did you mean: 

Can't add formatted code to forum message

Former Member
0 Kudos

Has the January release been released? I am unable to add a script tag in clear text or code block...

I have to destroy the tag .... <xxxscript> or

 <xxxscript> 

I get a "HTTP 501 Not Implemented or HTTP 505 Version Not Supported"

--Amy Smith

Haworth

Accepted Solutions (0)

Answers (2)

Answers (2)

michael_goeck
Active Participant
0 Kudos

Hi Amy,

JavaScript is not allowed in messages because of possible XSS attacs. This is disabled on web server level.

Other than that, what exactly are the problems? E.g. here I try to post a code sniplet:


boolean b = true;
while(b == true) {
   System.out.println("Hallo");
}

So it seems to work. Enclose the text with ... tags (without the empty spaces). You can also mark the whole code block and click the "&lt; &gt;" button in the button tab at the top of the editor which will automatically put the code tag around the selected block.

Let me know if something still doesn't work for you or if you have further questions.

Regards,

Michael

Former Member
0 Kudos

Hmm... I tried, well it still doesn't work... Let me try a code block with no special code in it...

abc

--Amy Smith

--Haworth

Former Member
0 Kudos

OK, that works, now try a body tag

<body>

Former Member
0 Kudos

And that works, now try body with onload with valid javascript -


and that doesn't work...

So I'll try onload with invalid javascript and that doesn't work

Now I'll try obfuscating the onload param name

It's kind of hard to post code to a forum for a product that is a heavy user of javascript if you can't post javascript.

<body bgcolor="#FEFEFF" o n l o a d ="plantNum='{PlantNum}';bodyOnLoad();">

Former Member
0 Kudos

So I guess I need to know what the rules are for what I can post and what I can't post in the code markup. as I just posted valid javascript, but the onload seems to have been the trigger.

Seems to me that anything between the code markups doesn't get executed and we should be able to post code in there... Sigh. I know the world doesn't run on what I think! Would be nice though, well nice for me at least. LOL

Thanks and let me know,

--Amy Smith

--Haworth

Former Member
0 Kudos

Someone just posted javascript on the xmii forum


<javascript>
infoarea.innerText = "Loading..."
myApplet.updateGrid(true)
 
function myApplet_Updated()
{
infoArea.innerText += "Done"
}
</javascript>

So I'm confused.

--Amy Smith

--Haworth

michael_goeck
Active Participant
0 Kudos

Hi Amy,

I have contacted our operations team for the rules. Once I know them, I will post them here.

Regards,

Michael

Former Member
0 Kudos

Any news on this? Still doesn't work.

former_member93896
Active Contributor
0 Kudos

Hello SCN,

I have to warm up this thread since the issue is still not resolved. In forums as well as wiki posting JavaScript that contains certain elements leads to HTTP 501/505 error.

What are the rules for posting JavaScript code?

Thanks,

Marc

SAP NetWeaver RIG

Former Member
0 Kudos

People on the xMII forum are having trouble posting code. What is going on? This is a real impediment in a technical forum!

Thanks,

--Amy Smith

--Haworth

marilyn_pratt
Active Contributor
0 Kudos

And for Michael when he looks at this thread, please check out Amy's experiments here which further explain the problem she is having with certain syntax