innerHTML problem with internet explorer (supposed)

I lost some time to debug this $(“#link”).click(function(){ $(“#target”).load(‘url/to/load’); }); The problem is on Internet Explorer (all version) that refuse to load data in #target, using $.get and innerHTML(data) do not help. The problem is with no well formed html! Internet Explorer refuse to load in dom a malformed html. Thus $(“#link”).click(function(){ $(“#target”).load(‘url/to/load’);‘url/to/load’); }); […]

Email from your host you are banned (mail php security matter)

I found this in a server: $header = “From: \n”; #… mail($from,$subjet,$message,$header); $_REQUEST[’email’] came from a form input … Here $_REQUEST[’email’] should be, at least, stripped by all \n no matter on how you trust to js code.. $from = $_REQUEST[’email’]; $from = str_replace(“\n”,””,$from); $header = “From: <$from>\n”;

Option List jQuery plugin

A plugin for display list of item to insert. List item are stored in input hidden comma separed, the call is simple Some bug to fix options are target: target div to update with options input: input to update with values items: items list as key:value optional: default to $(“<input>”).attr(“type”,”text”) … you can setup autocomplete […]

SiteMap php class

2 simple class for sitemap: simple use: {syntaxhighlighter brush:php} $root = $_SERVER[‘DOCUMENT_ROOT’]; $sm = new SiteMap($root,’sitemap-1.xml’); $sm->start(); $http = “”; $sm->addUrl($http.”/file.html”); $sm->end(); {/syntaxhighlighter} …SiteMapIdx similar

move multiple option in select with jQuery

I look for this everywhere: how to move multiple option inside a select function upfield() { var el = $(‘#selectedfield’).children(‘[@selected]:first’).prev(); $(“#selectedfield”) .children(‘[@selected]’) .each(function(){ $(this).insertBefore(el); }); } function downfield() { var el = $(‘#selectedfield’).children(‘[@selected]:last’).next(); $(“#selectedfield”) .children(‘[@selected]’) .each(function(){ $(this).insertAfter(el); el = $(el).next(); }); }