i want to load page as follows
var frame = document.createElement('iframe');
frame.src = "
/birthDayReminder/search.htm";
here i am giving context name as hard coded value
is there any way to get this context name dynamically
some work around in
java is
1] define hidden variable like
<input type="hidden" id="contextName" value="<%=request.getContextPath()%>">
2] access this variable in java script as follows
var contextName=document.getElementById("contextName");frame.src =
contextName.value+"/search.htm";
[ October 29, 2007: Message edited by: ganesh pol ]