shilpatendulkar
05-30-2006, 10:36 AM
Hi,
I have a search script build in jsp/struts. I want that script to be executed by client(some other url outside application). similar to how google API works.
When client will hit search.html, it should load my search.do script on another server. It is kind of component whichi needs to embedd in other script.
Can anyone give an idea how do i do this?
I tried using JS Script which will call a script on diffrent server and then embedd the search results but I am gettting JS error saying expected ; on lineXX.
This is my html
<div id="divSearch">
<script type="text/javascript" src="http://192.168.1.111/scottishapartment/search.do?mode=displayForm"></script></div><br>
<div id="divResults"> </div>
I have a search script build in jsp/struts. I want that script to be executed by client(some other url outside application). similar to how google API works.
When client will hit search.html, it should load my search.do script on another server. It is kind of component whichi needs to embedd in other script.
Can anyone give an idea how do i do this?
I tried using JS Script which will call a script on diffrent server and then embedd the search results but I am gettting JS error saying expected ; on lineXX.
This is my html
<div id="divSearch">
<script type="text/javascript" src="http://192.168.1.111/scottishapartment/search.do?mode=displayForm"></script></div><br>
<div id="divResults"> </div>