cancel
Showing results for 
Search instead for 
Did you mean: 

How to post a Javascript "script" statement here

mick_pichaloff2
Explorer
0 Kudos

Hi guys,

I've been trying to answer aquestion regarding a Javascript issue in the ITS forum, but I keep getting a POST type error when I insert my Javascript "Script" solution statement.

How do I include a Javascript Script statement in the forums?

I've tried using the code markup and teh quote markup and still I can't get my solution to POST.

Any ideas?

Cheers,

M.

Accepted Solutions (1)

Accepted Solutions (1)

michael_goeck
Active Participant
0 Kudos

Hi Mick,

Just "mask" the respective code, e.g. with "javas.cript". The same for event handlers: "on.MouseDown" or something. It would of course be a good idea to explain the masking somewhere.

Regards,

Michael

mick_pichaloff2
Explorer
0 Kudos

G'day Michael,

What do you mean by "mask"?

If you mean using the ampersand lt and ampersand gt instead of the the less-than and greater-than symbols, this still gives me the:

Method Not Implemented

POST to /post!post.jspa not supported.

Error!

Cheers,

Mick

michael_goeck
Active Participant
0 Kudos

Hi Mick,

Sorry for not being clear about this: What I meant was masking the actual Java.Script terms, not the operators. Because the security module of our webserver, that should prevent Cross-Site-Scripting attacks, checks for them. E.g. you are not allowed to use the term "Java.Script" (without the dot) or event handlers like "on.KeyDown".

See the following code snippet that works:


<sc.ript language="Java.Script" type="text/java.script">
var selected = false;
var cbstate = '';
function handleCBClick(el) {
    var theform = el.form;
    for (var i=0; i<theform.elements.length; i++) {
        var theel = theform.elements<i>;
        if (theel.name == 'userID') {
            theel.checked = !selected;
            toggleHighlight(theel);
        }
    }
    el.checked = !selected;
    selected = !selected;
    updateControls(theform);
}
</sc.ript>

You see what I meant by "masking": Just add dots in some keywords.

I had to first try this out in the test forums, too

Regards,

Michael

mick_pichaloff2
Explorer
0 Kudos

Thanks Michael,

Now that makes more sense, and being able to see your example helps tremenfously.

Just to test this out, this is what is needed to respond with to the qquestion that was asked of me in the ITS forum:


<sc.ript type="text/java.script" language="Java.Script1.2" src="`mimeURL(~language="",~name="MYJAVASCRIPT.JS")`"> </sc.ript>

Cheers,

Mick.

Answers (1)

Answers (1)

Former Member
0 Kudos

the user has corrected the same by the time the abuse report was seen

can we access the data from two tables without common fields if yes then how in sap

i am making an smartform i which i need to access the data from two tables which has common field like aedat but i don't want to compare the table with this aedat field so plz suggest me how to write teh select statment

i have table J_1IEXCDTL

ZSDTANNXINV -GROSSWT

ZSDTANNXINV-NETWT

I NEED TO WRITE THE CODE LIKE THIS

SELECT DOCNO GROSSWT NETWT INTO WA FROM J_1IEXCDTL ( WHICH JOIN )

WHERE DOCNO = INVOICE_NO

PLZ DO NOT SUGGEST TO ACCESS IT WITH AEDAT OR LIFNR JOIN

TELL SOMETHING ELSE

Edited by: Arun Varadarajan on Apr 10, 2009 5:04 PM