Javascript pop-up problem from divs

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Javascript pop-up problem from divs

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There are no locations in that div.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I don't see any CSS positioning going on there

hint:

Code: Select all

position: something; top: xxx; left: yyy;
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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....');
Post Reply