Jump to content

vipullimbachiya

Members
  • Posts

    4
  • Joined

  • Last visited

vipullimbachiya's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Yeah........ i done it................... i had just used script.aculo.usits gr8 man........ it works 4 me...................btwThanks Frnds..
  2. no no actually i have to use this script in my applicationlet me tell in detail to getting idea about:i have to take the html response from asp.net page and the content have images, now that images have to register in draggable(); function so if AJAX not allow me to add script in response then what is next approach?Thanks
  3. Its still not workin, please give me way to work it out i am pasting my code herethis is the java script: var imagePath="../../Common/Images/Icons/bar.gif"; var http_request = false; var resid; var lid; function makeRequest(url,param,type,loading,result) //makeRequest("http://xyz.com","name=abc","POST/GET","LoadId","ResId") { resid=result; lid=loading; document.getElementById(lid).innerHTML="Loading...<br><img src='" + imagePath + "'><br>"; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE http_request = new ActiveXObject("Microsoft.XMLHTTP"); } else { alert("Your browser not support XMLHTTPRequest."); } http_request.onreadystatechange = alertContents; http_request.open(type, url); http_request.setRequestHeader("Host","localhost"); http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); http_request.send(param); } function alertContents() { if (http_request.readyState == 4) { if (http_request.status == 200) { document.getElementById(resid).innerHTML=''; document.getElementById(resid).innerHTML=http_request.responseText; document.getElementById(lid).innerHTML=""; } else { alert('There was a problem with the request.'); document.getElementById(lid).innerHTML=""; } } } and in responsejustresponse.write("<script>alert('Hello')</script>")show how to do it, is there any other way??
  4. Hello friends,i had made 1 web service which returns the html containing <script>alert('hello')</script>after getting response from server i had assigned the responseText to one div's innerHTML but it not working so how can i use this script to work it out.i need it for 1 application which registers the images in dragable content, so if no way to run this script in this way then is there any way to make it??Thanks in advance..__________________
×
×
  • Create New...