Onclick of a button I am making a Ajax request and displaying the contents in a div in the center of the page. But the problem is the div portion gets displayed behind the main page. How do I solve it. I tried adding a css for the div with higher z-index then the main page. It did not work.
my...
Hi,
Thanks for your suggestions. Being a newbie in html and js I guess, I keep learning day by day.
By the way this is a internal application which will be used for IE browsers, I was just testing with safari also.
Our expert opinion would be really useful to me.
thanks
Meena
Thanks jeff.
I forgot to mention this, page is dynamic and div has to be displayed only after I press some button, which fetches some data and div has to present it.
How do I call div and pass this position, which I calculate.
I have not tested it in Fx and IE greater then 4 versions.
thanks
Meena
Hi
I am trying to position a div in the center of the page. I have a function which finds the browser type and gets the height and width. How do I use this to display the div in the center of the page
function Browserinfo() {
var browserName=navigator.appName;
alert(browserName);
var...
Thanks Dan, you mean forming response in XML format from the servlet and then returning will be best solution.
I use struts, this is my servlet code.
request.setAttribute("setname", setName);
return mapping.findForward("setaffiliates");
I guess, I have to form some XML and then forward the...
Hi
I am using ajax to submit the request and then getting the response back to display contents of a div.
this is my code.
function showDiv(setname,url) {
if (window.XMLHttpRequest){ // if Mozilla, Safari etc
page_request = new XMLHttpRequest();
}
else if (window.ActiveXObject){ // if IE
try...
Hi
I am the following encoder to unencode by < symbol. This unencoder worked for   quite well. Thanks to Adam again.
String.prototype.htmlUnencode = function(){
var div = document.createElement("div");
div.innerHTML = this;
return div.innerText;
}
var str = "<sometext"...
Thanks Adam
selectedText[i] = selectedText[i].replace(/^\s+|\s+$/g,'');
theSelTo.options[theSelTo.options.length]=new Option(selectedText[i],selectedValues[i],true,true);
I used above code, still I get the same value with blank spaces in the option field.
Where am I going wrong.
Thanks...
Hi,
I am using the following code to replace the blank spaces.
This is value selectedText[i] receives.
selectedText[i] = somevalue;
I want "somevalue"
With the following code I still receive the same old value.
var space = /^\s+/;
selectedText[i] =...
Hi
When I start the tomcat , it starts perfectly, but all the requests hang for ever. I tired looking in to server.xml everything seems to be normal. I am confused of what would be the cause for this.
Thanks for your time
Hi,
I am trying to write a javascript to create a popup window.
I am using struts framework and forwarding the request to a jsp and further populating details in JSP.
This is my script
function showpopup(setname)
{
//alert(setname)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.