Hello,
I was trying to output a partial with RJS and this is what its returning
me as response:
try {
Element.update(“countView”, “\074p\076\n\074form method=“POST”
action=“search_date”\076\n \074table align=“center”
bgcolor=”#FFFFFF" cellspacing=0 cellpadding=0\076\n
\074tr\076\n \074td bgcolor="#0066CC"
colspan=3\076\074b\076View - Counts By Date:\074/b\076\074/td\076\n
\074/tr\076\n \074tr\076\n \074td\076\074select
id=“date_month” name=“date[month]”\076\n\074option value=“1”
selected=“selected”\0761\074/option\076\n\074option
value=“2”\0762\074/option\076\n\074option
value=“3”\0763\074/option\076\n\074option
value=“4”\0764\074/option\076\n\074option
value=“5”\0765\074/option\076\n\074option
value=“6”\0766\074/option\076\n\074option
value=“7”\0767\074/option\076\n\074option
value=“8”\0768\074/option\076\n\074option
value=“9”\0769\074/option\076\n\074option
value=“10”\07610\074/option\076\n\074option
value=“11”\07611\074/option\076\n\074option
value=“12”\07612\074/option\076\n\074/select\076\n/\074select
id=“date_day” name=“date[day]”\076\n\074option
value=“1”\0761\074/option\076\n\074option
value=“2”\0762\074/option\076\n\074option
value=“3”\0763\074/option\076\n\074option
value=“4”\0764\074/option\076\n\074option
value=“5”\0765\074/option\076\n\074option
value=“6”\0766\074/option\076\n\074option
value=“7”\0767\074/option\076\n\074option value=“8”
selected=“selected”\0768\074/option\076\n\074option
value=“9”\0769\074/option\076\n\074option
value=“10”\07610\074/option\076\n\074option
value=“11”\07611\074/option\076\n\074option
value=“12”\07612\074/option\076\n\074option
value=“13”\07613\074/option\076\n\074option
value=“14”\07614\074/option\076\n\074option
value=“15”\07615\074/option\076\n\074option
value=“16”\07616\074/option\076\n\074option
value=“17”\07617\074/option\076\n\074option
value=“18”\07618\074/option\076\n\074option
value=“19”\07619\074/option\076\n\074option
value=“20”\07620\074/option\076\n\074option
value=“21”\07621\074/option\076\n\074option
value=“22”\07622\074/option\076\n\074option
value=“23”\07623\074/option\076\n\074option
value=“24”\07624\074/option\076\n\074option
value=“25”\07625\074/option\076\n\074option
value=“26”\07626\074/option\076\n\074option
value=“27”\07627\074/option\076\n\074option
value=“28”\07628\074/option\076\n\074option
value=“29”\07629\074/option\076\n\074option
value=“30”\07630\074/option\076\n\074option
value=“31”\07631\074/option\076\n\074/select\076\n/\074select
id=“date_year” name=“date[year]”\076\n\074option
value=“2000”\0762000\074/option\076\n\074option
value=“2001”\0762001\074/option\076\n\074option
value=“2002”\0762002\074/option\076\n\074option
value=“2003”\0762003\074/option\076\n\074option
value=“2004”\0762004\074/option\076\n\074option
value=“2005”\0762005\074/option\076\n\074option
value=“2006”\0762006\074/option\076\n\074option
value=“2007”\0762007\074/option\076\n\074option value=“2008”
selected=“selected”\0762008\074/option\076\n\074option
value=“2009”\0762009\074/option\076\n\074option
value=“2010”\0762010\074/option\076\n\074option
value=“2011”\0762011\074/option\076\n\074option
value=“2012”\0762012\074/option\076\n\074option
value=“2013”\0762013\074/option\076\n\074option
value=“2014”\0762014\074/option\076\n\074option
value=“2015”\0762015\074/option\076\n\074option
value=“2016”\0762016\074/option\076\n\074option
value=“2017”\0762017\074/option\076\n\074option
value=“2018”\0762018\074/option\076\n\074option
value=“2019”\0762019\074/option\076\n\074option
value=“2020”\0762020\074/option\076\n\074option
value=“2021”\0762021\074/option\076\n\074option
value=“2022”\0762022\074/option\076\n\074option
value=“2023”\0762023\074/option\076\n\074option
value=“2024”\0762024\074/option\076\n\074option
value=“2025”\0762025\074/option\076\n\074option
value=“2026”\0762026\074/option\076\n\074option
value=“2027”\0762027\074/option\076\n\074option
value=“2028”\0762028\074/option\076\n\074option
value=“2029”\0762029\074/option\076\n\074option
value=“2030”\0762030\074/option\076\n\074/select\076\n\074/td\076\074td\076 To \074/td\076\074td\076\074select
id=“date_month2” name=“date[month2]”\076\n\074option value=“1”
selected=“selected”\0761\074/option\076\n\074option
value=“2”\0762\074/option\076\n\074option
value=“3”\0763\074/option\076\n\074option
value=“4”\0764\074/option\076\n\074option
value=“5”\0765\074/option\076\n\074option
value=“6”\0766\074/option\076\n\074option
value=“7”\0767\074/option\076\n\074option
value=“8”\0768\074/option\076\n\074option
value=“9”\0769\074/option\076\n\074option
value=“10”\07610\074/option\076\n\074option
value=“11”\07611\074/option\076\n\074option
value=“12”\07612\074/option\076\n\074/select\076\n/\074select
id=“date_day2” name=“date[day2]”\076\n\074option
value=“1”\0761\074/option\076\n\074option
value=“2”\0762\074/option\076\n\074option
value=“3”\0763\074/option\076\n\074option
value=“4”\0764\074/option\076\n\074option
value=“5”\0765\074/option\076\n\074option
value=“6”\0766\074/option\076\n\074option
value=“7”\0767\074/option\076\n\074option value=“8”
selected=“selected”\0768\074/option\076\n\074option
value=“9”\0769\074/option\076\n\074option
value=“10”\07610\074/option\076\n\074option
value=“11”\07611\074/option\076\n\074option
value=“12”\07612\074/option\076\n\074option
value=“13”\07613\074/option\076\n\074option
value=“14”\07614\074/option\076\n\074option
value=“15”\07615\074/option\076\n\074option
value=“16”\07616\074/option\076\n\074option
value=“17”\07617\074/option\076\n\074option
value=“18”\07618\074/option\076\n\074option
value=“19”\07619\074/option\076\n\074option
value=“20”\07620\074/option\076\n\074option
value=“21”\07621\074/option\076\n\074option
value=“22”\07622\074/option\076\n\074option
value=“23”\07623\074/option\076\n\074option
value=“24”\07624\074/option\076\n\074option
value=“25”\07625\074/option\076\n\074option
value=“26”\07626\074/option\076\n\074option
value=“27”\07627\074/option\076\n\074option
value=“28”\07628\074/option\076\n\074option
value=“29”\07629\074/option\076\n\074option
value=“30”\07630\074/option\076\n\074option
value=“31”\07631\074/option\076\n\074/select\076\n/\074select
id=“date_year2” name=“date[year2]”\076\n\074option
value=“2000”\0762000\074/option\076\n\074option
value=“2001”\0762001\074/option\076\n\074option
value=“2002”\0762002\074/option\076\n\074option
value=“2003”\0762003\074/option\076\n\074option
value=“2004”\0762004\074/option\076\n\074option
value=“2005”\0762005\074/option\076\n\074option
value=“2006”\0762006\074/option\076\n\074option
value=“2007”\0762007\074/option\076\n\074option value=“2008”
selected=“selected”\0762008\074/option\076\n\074option
value=“2009”\0762009\074/option\076\n\074option
value=“2010”\0762010\074/option\076\n\074option
value=“2011”\0762011\074/option\076\n\074option
value=“2012”\0762012\074/option\076\n\074option
value=“2013”\0762013\074/option\076\n\074option
value=“2014”\0762014\074/option\076\n\074option
value=“2015”\0762015\074/option\076\n\074option
value=“2016”\0762016\074/option\076\n\074option
value=“2017”\0762017\074/option\076\n\074option
value=“2018”\0762018\074/option\076\n\074option
value=“2019”\0762019\074/option\076\n\074option
value=“2020”\0762020\074/option\076\n\074option
value=“2021”\0762021\074/option\076\n\074option
value=“2022”\0762022\074/option\076\n\074option
value=“2023”\0762023\074/option\076\n\074option
value=“2024”\0762024\074/option\076\n\074option
value=“2025”\0762025\074/option\076\n\074option
value=“2026”\0762026\074/option\076\n\074option
value=“2027”\0762027\074/option\076\n\074option
value=“2028”\0762028\074/option\076\n\074option
value=“2029”\0762029\074/option\076\n\074option
value=“2030”\0762030\074/option\076\n\074/select\076\n\074/td\076\n
\074tr\076\n \074tr\076\n \074td
colspan=3\076\074input type=“submit” id=“SubmitDate” value=“Get
Count”/\076\074/td\076\n \074/tr\076\n \074/table\076\n
\074/form\076\n\n\074input type=“hidden” value=“4”/\076\n\n\074div
id=“countToday”\076\n\074table align=“center” cellspacing=“1”
border=“0”\076\n \074tr\076\n \074td
colspan=“5” bgcolor="#ECECEC"\076\074b\076Pex - DMO List Count
2008-01-08\074/b\076\074/td\076\n \074/tr\076\n
\074tr\076\n \074td
bgcolor="#0066CC"\076\074b\076List\074/b\076\074/td\076\074td
bgcolor="#0066CC"\076\074b\076Total\074/b\076\074/td\076\n
\074/tr\076\n \074tr bgcolor="#FFFFFF"\076\n
\074td\076\074b\076DMO\074/b\076\074/td\076\074td\0760\074/td\076\n
\074/tr\076\n \n \074/table\076\n\074/div\076\n\074/p\076\n");
} catch (e) { alert(‘RJS error:\n\n’ + e.toString());
alert(‘Element.update(“countView”, “\074p\076\n\074form
method=\“POST\” action=\“search_date\”\076\n \074table
align=\“center\” bgcolor=\”#FFFFFF\" cellspacing=0
cellpadding=0\076\n \074tr\076\n \074td
bgcolor=\"#0066CC\" colspan=3\076\074b\076View Pex - DMO Counts
By Date:\074/b\076\074/td\076\n \074/tr\076\n
\074tr\076\n \074td\076\074select
id=\“date_month\” name=\“date[month]\”\076\n\074option
value=\“1\”
selected=\“selected\”\0761\074/option\076\n\074option
value=\“2\”\0762\074/option\076\n\074option
value=\“3\”\0763\074/option\076\n\074option
value=\“4\”\0764\074/option\076\n\074option
value=\“5\”\0765\074/option\076\n\074option
value=\“6\”\0766\074/option\076\n\074option
value=\“7\”\0767\074/option\076\n\074option
value=\“8\”\0768\074/option\076\n\074option
value=\“9\”\0769\074/option\076\n\074option
value=\“10\”\07610\074/option\076\n\074option
value=\“11\”\07611\074/option\076\n\074option
value=\“12\”\07612\074/option\076\n\074/select\076\n/\074select
id=\“date_day\” name=\“date[day]\”\076\n\074option
value=\“1\”\0761\074/option\076\n\074option
value=\“2\”\0762\074/option\076\n\074option
value=\“3\”\0763\074/option\076\n\074option
value=\“4\”\0764\074/option\076\n\074option
value=\“5\”\0765\074/option\076\n\074option
value=\“6\”\0766\074/option\076\n\074option
value=\“7\”\0767\074/option\076\n\074option value=\“8\”
selected=\“selected\”\0768\074/option\076\n\074option
value=\“9\”\0769\074/option\076\n\074option
value=\“10\”\07610\074/option\076\n\074option
value=\“11\”\07611\074/option\076\n\074option
value=\“12\”\07612\074/option\076\n\074option
value=\“13\”\07613\074/option\076\n\074option
value=\“14\”\07614\074/option\076\n\074option
value=\“15\”\07615\074/option\076\n\074option
value=\“16\”\07616\074/option\076\n\074option
value=\“17\”\07617\074/option\076\n\074option
value=\“18\”\07618\074/option\076\n\074option
value=\“19\”\07619\074/option\076\n\074option
value=\“20\”\07620\074/option\076\n\074option
value=\“21\”\07621\074/option\076\n\074option
value=\“22\”\07622\074/option\076\n\074option
value=\“23\”\07623\074/option\076\n\074option
value=\“24\”\07624\074/option\076\n\074option
value=\“25\”\07625\074/option\076\n\074option
value=\“26\”\07626\074/option\076\n\074option
value=\“27\”\07627\074/option\076\n\074option
value=\“28\”\07628\074/option\076\n\074option
value=\“29\”\07629\074/option\076\n\074option
value=\“30\”\07630\074/option\076\n\074option
value=\“31\”\07631\074/option\076\n\074/select\076\n/\074select
id=\“date_year\” name=\“date[year]\”\076\n\074option
value=\“2000\”\0762000\074/option\076\n\074option
value=\“2001\”\0762001\074/option\076\n\074option
value=\“2002\”\0762002\074/option\076\n\074option
value=\“2003\”\0762003\074/option\076\n\074option
value=\“2004\”\0762004\074/option\076\n\074option
value=\“2005\”\0762005\074/option\076\n\074option
value=\“2006\”\0762006\074/option\076\n\074option
value=\“2007\”\0762007\074/option\076\n\074option
value=\“2008\”
selected=\“selected\”\0762008\074/option\076\n\074option
value=\“2009\”\0762009\074/option\076\n\074option
value=\“2010\”\0762010\074/option\076\n\074option
value=\“2011\”\0762011\074/option\076\n\074option
value=\“2012\”\0762012\074/option\076\n\074option
value=\“2013\”\0762013\074/option\076\n\074option
value=\“2014\”\0762014\074/option\076\n\074option
value=\“2015\”\0762015\074/option\076\n\074option
value=\“2016\”\0762016\074/option\076\n\074option
value=\“2017\”\0762017\074/option\076\n\074option
value=\“2018\”\0762018\074/option\076\n\074option
value=\“2019\”\0762019\074/option\076\n\074option
value=\“2020\”\0762020\074/option\076\n\074option
value=\“2021\”\0762021\074/option\076\n\074option
value=\“2022\”\0762022\074/option\076\n\074option
value=\“2023\”\0762023\074/option\076\n\074option
value=\“2024\”\0762024\074/option\076\n\074option
value=\“2025\”\0762025\074/option\076\n\074option
value=\“2026\”\0762026\074/option\076\n\074option
value=\“2027\”\0762027\074/option\076\n\074option
value=\“2028\”\0762028\074/option\076\n\074option
value=\“2029\”\0762029\074/option\076\n\074option
value=\“2030\”\0762030\074/option\076\n\074/select\076\n\074/td\076\074td\076 To \074/td\076\074td\076\074select
id=\“date_month2\” name=\“date[month2]\”\076\n\074option
value=\“1\”
selected=\“selected\”\0761\074/option\076\n\074option
value=\“2\”\0762\074/option\076\n\074option
value=\“3\”\0763\074/option\076\n\074option
value=\“4\”\0764\074/option\076\n\074option
value=\“5\”\0765\074/option\076\n\074option
value=\“6\”\0766\074/option\076\n\074option
value=\“7\”\0767\074/option\076\n\074option
value=\“8\”\0768\074/option\076\n\074option
value=\“9\”\0769\074/option\076\n\074option
value=\“10\”\07610\074/option\076\n\074option
value=\“11\”\07611\074/option\076\n\074option
value=\“12\”\07612\074/option\076\n\074/select\076\n/\074select
id=\“date_day2\” name=\“date[day2]\”\076\n\074option
value=\“1\”\0761\074/option\076\n\074option
value=\“2\”\0762\074/option\076\n\074option
value=\“3\”\0763\074/option\076\n\074option
value=\“4\”\0764\074/option\076\n\074option
value=\“5\”\0765\074/option\076\n\074option
value=\“6\”\0766\074/option\076\n\074option
value=\“7\”\0767\074/option\076\n\074option value=\“8\”
selected=\“selected\”\0768\074/option\076\n\074option
value=\“9\”\0769\074/option\076\n\074option
value=\“10\”\07610\074/option\076\n\074option
value=\“11\”\07611\074/option\076\n\074option
value=\“12\”\07612\074/option\076\n\074option
value=\“13\”\07613\074/option\076\n\074option
value=\“14\”\07614\074/option\076\n\074option
value=\“15\”\07615\074/option\076\n\074option
value=\“16\”\07616\074/option\076\n\074option
value=\“17\”\07617\074/option\076\n\074option
value=\“18\”\07618\074/option\076\n\074option
value=\“19\”\07619\074/option\076\n\074option
value=\“20\”\07620\074/option\076\n\074option
value=\“21\”\07621\074/option\076\n\074option
value=\“22\”\07622\074/option\076\n\074option
value=\“23\”\07623\074/option\076\n\074option
value=\“24\”\07624\074/option\076\n\074option
value=\“25\”\07625\074/option\076\n\074option
value=\“26\”\07626\074/option\076\n\074option
value=\“27\”\07627\074/option\076\n\074option
value=\“28\”\07628\074/option\076\n\074option
value=\“29\”\07629\074/option\076\n\074option
value=\“30\”\07630\074/option\076\n\074option
value=\“31\”\07631\074/option\076\n\074/select\076\n/\074select
id=\“date_year2\” name=\“date[year2]\”\076\n\074option
value=\“2000\”\0762000\074/option\076\n\074option
value=\“2001\”\0762001\074/option\076\n\074option
value=\“2002\”\0762002\074/option\076\n\074option
value=\“2003\”\0762003\074/option\076\n\074option
value=\“2004\”\0762004\074/option\076\n\074option
value=\“2005\”\0762005\074/option\076\n\074option
value=\“2006\”\0762006\074/option\076\n\074option
value=\“2007\”\0762007\074/option\076\n\074option
value=\“2008\”
selected=\“selected\”\0762008\074/option\076\n\074option
value=\“2009\”\0762009\074/option\076\n\074option
value=\“2010\”\0762010\074/option\076\n\074option
value=\“2011\”\0762011\074/option\076\n\074option
value=\“2012\”\0762012\074/option\076\n\074option
value=\“2013\”\0762013\074/option\076\n\074option
value=\“2014\”\0762014\074/option\076\n\074option
value=\“2015\”\0762015\074/option\076\n\074option
value=\“2016\”\0762016\074/option\076\n\074option
value=\“2017\”\0762017\074/option\076\n\074option
value=\“2018\”\0762018\074/option\076\n\074option
value=\“2019\”\0762019\074/option\076\n\074option
value=\“2020\”\0762020\074/option\076\n\074option
value=\“2021\”\0762021\074/option\076\n\074option
value=\“2022\”\0762022\074/option\076\n\074option
value=\“2023\”\0762023\074/option\076\n\074option
value=\“2024\”\0762024\074/option\076\n\074option
value=\“2025\”\0762025\074/option\076\n\074option
value=\“2026\”\0762026\074/option\076\n\074option
value=\“2027\”\0762027\074/option\076\n\074option
value=\“2028\”\0762028\074/option\076\n\074option
value=\“2029\”\0762029\074/option\076\n\074option
value=\“2030\”\0762030\074/option\076\n\074/select\076\n\074/td\076\n
\074tr\076\n \074tr\076\n \074td
colspan=3\076\074input type=\“submit\” id=\“SubmitDate\”
value=\“Get Count\”/\076\074/td\076\n \074/tr\076\n
\074/table\076\n \074/form\076\n\n\074input type=\“hidden\”
value=\“4\”/\076\n\n\074div
id=\“countToday\”\076\n\074table align=\“center\”
cellspacing=\“1\” border=\“0\”\076\n \074tr\076\n
\074td colspan=\“5\” bgcolor=\"#ECECEC\"\076\074b\076 -
List Count 2008-01-08\074/b\076\074/td\076\n
\074/tr\076\n \074tr\076\n
\074td
bgcolor=\"#0066CC\"\076\074b\076List\074/b\076\074/td\076\074td
bgcolor=\"#0066CC\"\076\074b\076Total\074/b\076\074/td\076\n
\074/tr\076\n \074tr bgcolor=\"#FFFFFF\"\076\n
\074td\076\074b\076DMO\074/b\076\074/td\076\074td\0760\074/td\076\n
\074/tr\076\n \n
\074/table\076\n\074/div\076\n\074/p\076\n");’); throw e }
Why is it outputting my partial like that?
Thanks
M