Archived

This topic is now archived and is closed to further replies.

SaoAlpha

add "html" over webui

Recommended Posts

Hi, I have a mysql and I need to insert my torrents, before it could correctly but now not.

Before in function FormatTL:

function FormatTL(values)

{

for (var i=0; i<values.length; i++)

{

...

values[8] = ffs(values[8]) + "/s"; //upload speed

values[9] = (values[9] <= -1) ? '∞' : ft(values[9]); //ETA

values[1] = '<form name="insertdata" id="insertdata" method="post" action="http://asr/emule/index.php?anadir=insert"><input type="hidden" name="titulo" value="' + values[0] + '" /><input type="hidden" name="tamano" value="' + values[2] + '" /><input type="hidden" name="descripcion" value="" /><select size="1" name="tipo" onChange="this.form.submit()"><option value="">Tipo</option><option value="Anime">Anime</option><option value="Documento">Documento</option></form>';

values[13] = round(values[13] / 65535, 3);

}

return values;

}

[image removed for content]

But now is not correct:

function FormatTL(_55,_56)

{

...

if(_56==null){_55[2]=ffs(_55[2],2);

_55[1] = '<form name="insertdata" id="insertdata" method="post" action="http://asr/emule/index.php?anadir=insert"><input type="hidden" name="titulo" value="" /><input type="hidden" name="tamano" value="" /><input type="hidden" name="descripcion" value="" /><select size="1" name="tipo" onChange="this.form.submit()"><option value="">Tipo</option><option value="Anime">Anime</option><option value="Documento">Documento</option></form>';

...

}

[image removed for content]

Thanks

EDIT by silverfire: Images were >50KB. Additionally, images did not fall under allowable content (blur stuff out, please).

Share this post


Link to post
Share on other sites

I'm not sure what you're asking for here, or what you're trying to do O.o

Edit: Point being: can you clarify? But oh well, it appears Lord Alderaan and Directrix have it under control =o

Share this post


Link to post
Share on other sites

Obviously the html is not being parsed by the browser for some reason... Did you try other browsers too? Maybe its browser related. Otherwise it might be inside some html tags that disallow interpretation (like <textarea> for instance).

Share this post


Link to post
Share on other sites

All strings are html escaped before they are set as the cells' innerHTML for obvious reasons (ie. for the people that like labels like '<p>LOLCakes</p>' or '<IWasDroppedOnTheHeadWhenIWasABaby />'). Check the uncompressed sortable-table source (stable.js, it's in the only folder included in the rar file) and in the createRow function you should be able to skip escaping for the Status column.

Share this post


Link to post
Share on other sites