var loadUrl = "ajax_load.php";
$("#load_basic").click(function(){
$("#result").html(ajax_load).load(loadUrl);
});
**//AND this one below**
$("#load_dom").click(function(){
$("#result")
.html(ajax_load)
.load(loadUrl + " #picture");
});
// Converted from UnityScript to C# at http://www.M2H.nl/files/js_to_c.php - by Mike Hergaarden
// Do test the code! You usually need to change a few small bits.
using UnityEngine;
using System.Collections;
public class MYCLASSNAME : MonoBehaviour {
FIXME_VAR_TYPE loadUrl= "ajax_load.php";
$("#load_basic").click(function(){
$("#result").html(ajax_load).load(loadUrl);
});
**//AND this one below**
$("#load_dom").click(function(){
$("#result")
.html(ajax_load)
.load(loadUrl + " #picture");
});
}
Read the comment up top.. Doubt it'll work, but might... And this is script, reason I'm posting as answer, or else I would have commented. Sorry.