JavaScript Reflection

Sign in to queue

The Discussion

  • User profile image
    Nico Westerdale

    Take a look at this Javascript Serializer, similar idea:

    http://www.iconico.com/workshop/jsSerializer/

  • User profile image
    Markus Bonkowski

    Hello Shreyans Kothari,

    I was searching for javascript reflection with google and found your article.

    I am not really shure if we both have the same understanding what javascript reflection is, but I found a very simple approach that resolves my javascript reflection problems... maybe you are interested in that Wink

    In the web application I am currently creating, I needed to send an AJAX reply that invokes a javascript funktion which exists in the main html page. I thought that this can only be done via javascript reflection, means I am not directly calling a method, instead I send a simple string and that "reflects" the method call. In my application my php scripts now e.g. sends a "@alert('generic reflection proxy')" string. The javascript that requested the site just makes a call to "setTimeout" with the substring after the '@' symbol.

    Kind Regards,

    Markus

  • User profile image
    Narender Jakhar

       Hello Shreyans Kothari,

    I want actual coding of javascript with refleaction in a simple way

       I am not really shure if we both have the same understanding what javascript reflection is, but I found a very simple approach that resolves my javascript reflection problems... maybe you are interested in that Wink

       In the web application I am currently creating, I needed to send an AJAX reply that invokes a javascript funktion which exists in the main html page. I thought that this can only be done via javascript reflection, means I am not directly calling a method, instead I send a simple string and that "reflects" the method call. In my application my php scripts now e.g. sends a "@alert('generic reflection proxy')" string. The javascript that requested the site just makes a call to "setTimeout" with the substring after the '@' symbol.

       Kind Regards,

     Narender jakhar

Add Your 2 Cents