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)...
Hi,
I have a button, when I click it, it should go to DB and fetch some data and display data in a small window below the button with a close sign. What should be my option for window and how do it show it on button click.
Thanks for your time
Meena
I have a submit button , when I click it, I have to go to DB and fetch data and present in a popup window.
Since a DB operation is involved I beleive that AJAX will be a better solution. Please let me know how to do it, since I am a newbie to AJAX and UI.
Thanks
Meena
thanks Baby Jeffy for a qiuck response. My options values are of two types, generated from DB and also some of them added from the other select element. In that case how do I keep the all the values in the hidden feild
Meena
Hi,
When I submit the form, to the servlet my servlet should read all the options of the select element in the form. For this to happen user need not necessarily select all the options. Please let me know if there is a way we could do this.
Thanks for your time
Meena
Thanks BillyRay.
Great. It worked for me. I tried to add a close button in the new window. BUt it did not work though. Any ideas....
THanks in advance
regards
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.