I'll explain from this start
I have following view initially
Once I select check boxes from above view and click "Create Brochure" button I want to redirect and pass parameters to this create brochure Controller Actions (currently up to this section working)
according to the passing parameter values I want to generate dynamic HTML content in RTE Editor
for that I need to send those checked values as array to myhtml.html
So I have to append that array once myhtml.html loading to RTE editor
If I pass thatose values to that .html I can hide or show those div sections . using jquery.
for Ex: if I select first 3 check boxes. I can show first 3 div sections and rest of div sections, which are 4 to 10 hide
that html will look like this
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <meta charset="utf-8" />
-
- <script type="text/javascript">
-
- $(document).ready(function () {
-
- //using for loop read the array values index 0 to end:
-
- for(i=0;i<array.length();i++){
-
- if(array has value 1) $("#1").show()
- else $(#1").hide();
-
- if(array has value 2) $("#2").show()
- else $("#2").hide();
-
- if(array has value 3) $("#3").show()
- else $("#3").hide();
-
- .........
-
- }
-
-
- });
-
-
- </script>
- </head>
- <body>
-
-
- <div id="1">
- ......
- </div>
-
- <div id="2">
- ......
- </div>
-
- <div id="3">
- ......
- </div>
-
- <div id="4">
- ......
- </div>
-
- <div id="5">
- ......
- </div>
-
- <div id="6">
- ......
- </div>
-
- ..........
-
- </body>
- </html>
Appriciate If you can suggest to way to append that checked values to that html file