Page 1 of 1

Javascript pop-up problem from divs

Posted: Fri Mar 09, 2007 3:25 am
by dude81
Hi,
I've a javascript function. Onclicking a button this gets activated and the function calls a remote servers and gets the output there in div and gives it on my client. Unfortunately the returned div occupies whole page though I gave the limit as follows

Code: Select all

<div id='id' align='right' style='height: 10px; width: 100px; border: 0px solid #ff0000;'>&nbsp;</div>
The div comes onto top left of the browser instead of the locations I pointed to in the div. Kindly help.

Posted: Fri Mar 09, 2007 8:10 am
by feyd
There are no locations in that div.

Posted: Fri Mar 09, 2007 8:14 am
by Kieran Huggins
I don't see any CSS positioning going on there

hint:

Code: Select all

position: something; top: xxx; left: yyy;

Posted: Fri Mar 09, 2007 8:26 am
by dude81
:( regret My English, locations I mean the alignment attributes I've used the div . Anyhow I changed the div but still the problem persists. Changed div here

Code: Select all

<div id='id' style='float:right;height: 280px; width:350px; border: 1px solid #ff0000;'><span >
</span></div>
still the div map(maps.live.com) output goes to top left of the browser. I'm using a template also. Googling showed google maps have something to do with templates. Not sure of maps.live.com has any problem with templates too.

Maps have some restrictions on using css's

Posted: Fri Mar 09, 2007 8:37 am
by Kieran Huggins
are you sure your ajax code is putting the content in the right place? it sounds like a div selection problem to me...

btw - check out jQuery's selection and ajax methods.. you might be pleasantly surprised by how easy it is.

Code: Select all

$(#id).load('http://maps.live....');