Welcome to openkapow Sign in | Join
in Search
.

Q: *Injection* of JavaScript

Last post 09-12-2007, 6:29 AM by henrik. 4 replies.
Sort Posts: Previous Next
  •  09-06-2007, 6:38 AM 13086

    Q: *Injection* of JavaScript

    Hello,

     

    RoboSuite is great.. but its complexity is currently backfiring at me.

     

    I want to insert a JavaScript segment into a clip - the <script> tag should actually appear, unmodified and un-executed, in the resulting web clip. The purpose of this is to call a function of the container portal of the clip. (Compatibility, i know, i know... it can be handled, and this is only exemplary)

    If i use an Insert Tag Step, it works perfectly fine for regular HTML. (e.g. inserting <bad> after x, <bad> shows up in the clip source). However, if i insert a <script> tag, Kapow "eats" it somewhere along the Clipping step. I tried disabling JavaScript execution to no avail.

    I tried inserting an Insert Tag Step after the Clip Step, but it appears that the results are not applied to the Clip - I suppose you're not supposed to do anything to the content after "Clip".

    It is really simple - i just want to insert an arbitrary segment into my Clipped code ;-)

    Please? Thanks! :-)

     

  •  09-06-2007, 7:24 AM 13087 in reply to 13086

    Re: Q: *Injection* of JavaScript

    If you change anything after the Clip step it is not going to be part of the clip itself. Trying to interact with the container portal from inside the clip is not possible (at least not without some serious work) due to the architecture of clipping, sorry about that. If you could tell us what it is you are trying to do in more detail than maybe there are another way around your problem which is easier to implement.

     /Andreas
     


    "A robot on openkapow is worth two on the harddrive" - old saying

    WebHostNinja.com - price comparison for web hosting
    Digitalistic.com - mashup or die
  •  09-06-2007, 8:00 AM 13088 in reply to 13087

    Re: Q: *Injection* of JavaScript

    re,

    > If you change anything after the Clip step it is not going to be part of the clip itself.

    Yes, thanks..

    > Trying to interact with the container portal from inside the clip is not possible (at least not without some serious work) due to the architecture of clipping,

    All i need to do is insert a <script> tag with a simple function call in js into the Clip's output HTML.

    Can it be done?


  •  09-12-2007, 6:25 AM 13196 in reply to 13088

    Re: Q: *Injection* of JavaScript

    *nag*

    Is it possible to insert arbitrary <script>-tags into the output of a Clipping Robot, and if so, how?

    Thank you.
     

  •  09-12-2007, 6:29 AM 13197 in reply to 13196

    Re: Q: *Injection* of JavaScript

    In short,

     

    No.

View as RSS news feed in XML
.
Copyright 2006, 2007 KapowTech.com All Rights Reserved Company | Contact | Terms | Privacy