<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://de.wikipedia.org/style/feed.css"?>
<feed version="0.3" xml:lang="de" xmlns="http://purl.org/atom/ns#">
  <title>Example given in the book isnt working. pls help me. I tried</title>
  <link href="http://forum.openrico.org/topic/3313" rel="alternate" type="text/html"/>
  <entry>
    <id>tag:openrico.org,2007-02-23:2667</id>
    <link href="http://forum.openrico.org/topic/3313#2667" rel="alternate" type="text/html"/>
    <title>Re: Example given in the book isnt working. pls help me. I t</title>
    <author>
      <name>Ian Wilson</name>
    </author>
    <created>2007-02-23T03:06:35Z</created>
    <issued>2007-02-23T03:06:35Z</issued>
    <modified>2007-02-23T03:06:35Z</modified>
    <content type="application/xhtml+xml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <pre>
Hi
try removing the &lt;BODY&gt;&lt;/BODY&gt; tags from around your response page code
        </pre>
      </div>
    </content>
  </entry>
  <entry>
    <id>tag:openrico.org,2007-02-02:2628</id>
    <link href="http://forum.openrico.org/topic/3313#2628" rel="alternate" type="text/html"/>
    <title>Example given in the book isnt working. pls help me. I tried</title>
    <author>
      <name>Viral Gupta</name>
    </author>
    <created>2007-02-02T21:35:36Z</created>
    <issued>2007-02-02T21:35:36Z</issued>
    <modified>2007-02-02T21:35:36Z</modified>
    <content type="application/xhtml+xml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <pre>
Pls help me. I am working on the example given in the book.

The response is not getting updated on the html page.

here is my html page.

&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;
&lt;META name=&quot;GENERATOR&quot; content=&quot;IBM WebSphere Studio&quot;&gt;
&lt;META http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot;&gt;
&lt;LINK href=&quot;theme/Master.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
&lt;TITLE&gt;ht.html&lt;/TITLE&gt;
&lt;script src=&quot;prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;rico.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot;&gt;
function Init1()
{
ajaxEngine.registerRequest('getPersonInfo', 'getPersonInfo.jsp');
ajaxEngine.registerAjaxElement('personInfo');
}

function getPersonInfo(selectBox)
{
var nameToLookup = selectBox.value;
ajaxEngine.sendRequest( 'getPersonInfo',
&quot;firstName=&quot; + nameToLookup);
}
Init1();
&lt;/script&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;div id=&quot;rolodexTabContent&quot; class=&quot;accordionTabContentBox&quot;&gt;
&lt;table cellspacing=&quot;5&quot; cellpadding=&quot;5&quot;&gt;&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;
&lt;select id=&quot;listBox&quot; onchange=&quot;getPersonInfo(this)&quot;&gt;
&lt;option value=&quot;SABAH&quot;&gt;Sabah u din
&lt;option value=&quot;HASAN&quot;&gt;Hasan Tanvir
&lt;option value=&quot;MUZIO&quot;&gt;Muzaffar Iqbal
&lt;option value=&quot;YASIR&quot;&gt;Yasir Siddiq
&lt;option value=&quot;WAQAS&quot;&gt;Waqas u Din
&lt;/select&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;div style=&quot;display:inline&quot; id=&quot;personInfo&quot;&gt;
Select a name to the left to see the AJAX rolodex entry
for the selected person.
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;


and here is the jsp page through which i m trying to send response.

&lt;BODY&gt;
&lt;%
String resp = new String(&quot;&quot;);
resp+= &quot;&lt;?xml version=\&quot;1.0\&quot;     encoding=\&quot;iso-8859-1\&quot; ?&gt;&quot; +

 &quot;&lt;ajax-response&gt;&quot; + &quot;&lt;response type=\&quot;element\&quot; id=\&quot;personInfo\&quot;&gt; &quot; +
  &quot;&lt;div class=\&quot;person\&quot;&gt;&lt;span class=\&quot;personName\&quot;&gt;Mr. Pat &quot; +
 &quot;Barnes&lt;/span&gt;&lt;span class=\&quot;personAddress\&quot;&gt;1743 1st Avenue &quot; +
 &quot; &lt;/span&gt;&lt;/div&gt; &lt;/response&gt; &lt;/ajax-response&gt;&quot;;

System.out.println(resp);
response.getWriter().write(resp);
out.println(resp);
%&gt;
&lt;/BODY&gt;

Ur help will ne highly appreciated.

Viral Gupta


        </pre>
      </div>
    </content>
  </entry>
</feed>
