Main
Handler (main.ashx) Parameters:
· html=
o Descr:
If the "html" parameter is passed, then the SPS must return an HTML page, whose
content will be based on the details assigned via the following JSON-formatted
key-value pairs:
§ "image" :
//
Specifies the "image" details (e.g.: "
{
"count" :
"height"
:
"width" :
}
§ "css" :
//
Specifies the #-of-CSS files to put in the HTML output (e.g.: "
{
"count" :
"size" :
}
§ "js" :
//
Specifies the #-of-JavaScript files to put in the HTML output (e.g.:
"
{
"count" :
"defer" :
true | false (default), // Note: If set to
true, then apply the "defer=true" attribute to the script tag
"size" :
}
§ "iframe" :
//
Specifies the #-of-JavaScript files to put in the HTML output (e.g.:
"
{
"count" :
"size" :
}
· type=
o Desc:
Specifies which type of file to return.
ok how does one recieve the request? Need help on the get/post parts in web.config, what will the request look like and what is the solution to this??? thanks guys.
Bhargav MohantyPosted Oct 30, 2009, 1:39 PM
also some block of actual code to handle the request and subsequent file creations....
Roei BarPosted Oct 23, 2009, 4:23 PM
i didnt quite undertand the problem, this code will work with no problem
the handler should on get the parameters passed via the query params and return the html tag as shown in the code
for example on the CSS section
""
here you will get the css and return the html as
"