SaoAlpha Posted November 6, 2006 Report Share Posted November 6, 2006 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]ThanksEDIT by silverfire: Images were >50KB. Additionally, images did not fall under allowable content (blur stuff out, please). Link to comment Share on other sites More sharing options...
Ultima Posted November 6, 2006 Report Share Posted November 6, 2006 I'm not sure what you're asking for here, or what you're trying to do O.oEdit: Point being: can you clarify? But oh well, it appears Lord Alderaan and Directrix have it under control =o Link to comment Share on other sites More sharing options...
Lord Alderaan Posted November 6, 2006 Report Share Posted November 6, 2006 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). Link to comment Share on other sites More sharing options...
Directrix Posted November 6, 2006 Report Share Posted November 6, 2006 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. Link to comment Share on other sites More sharing options...
Ultima Posted November 6, 2006 Report Share Posted November 6, 2006 ROFL @ the tags xD Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.