473,991 Members | 45,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Positioning dynamically created panel

58 New Member
Hi,


we have designed an online shopping website.in that we r displaying the online products
for all the products we hve a buy button and details button which is created dynamically
on click of details buttons we r showing a window which is also
created dynamically.act ually the window is a panel and we r dynamically changing the content inside the panel for ecah product
my problem is that nw if i click on the details button it is comin according to the css settings
that i'm givin as absolute and seeting left and top for that....
my requirement is i want the detail window to come near the detail button of each product
if i scroll down to the last product and if i press detail button it should cme near
the detail button not on top where i hve positioned
Jul 9 '09 #1
1 1595
Frinavale
9,735 Recognized Expert Moderator Expert
This is going to have to be done using JavaScript....p robably in the JavaScript method you're using to display the details section.

You'll have to modify it so that it moves the details section (the window/panel/<div>) to the correct place.

The only way you're going to know where this correct place is located you'll have to have a point of reference: the Details Button that was clicked.

So, modify your JavaScript function so that it accepts a parameter. That parameter being a reference to the details button element. Use this element's properties to determine where the details section should be displayed.

Make sense?

-Frinny
Jul 9 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1522
by: | last post by:
Hello Guys, I am rendering the server controls dynamically using XSLT but having tough time positioning them on the web form the place where I want them to be. To be precise, I have two image buttons generated dynamically, even though I arranged them in two different cells in my XSLT but still they appear side by side.
2
2937
by: R Duke | last post by:
I have tried everything I can think of to change the visible property of a design time created control from a dynamically created control's command event handler. Here is the scenario. I have a WebForm with some textboxes, dropdownlists, a panel, imagebutton and so on. When I click on the image button (which was created at design time) I dynamically build a table. In each of row of that new table I put several cells and one cell...
0
2067
by: mawi | last post by:
Hello, Description: I create panels with some controls on a page using a new panel button. One of the controls on each panel is the "close panel" button that is supposed to close the panel it is on. This works fine only if one closes the panels from last panel. Otherwise two clicks is necessary for the last panel - ie, if you press add 3 times, close 2 and then 3 - two clicks on 3 will be necessary.
1
1214
by: Robin | last post by:
With a page that is in gridlayout mode how do you dynamically position a text box to appear after a datagrid?
2
1964
by: djc | last post by:
On the page_load event I am querying a database and binding data to some text boxes, list boxes, and a repeater control. When the page loads it uses the value of one of the database fields (status) to determine what options should be available for this particular item (which is an issue... small issue tracking system). Each of these options is an action that may be performed on the issue and I am dynamically creating LinkButtons for each...
1
1406
by: Carol | last post by:
Hi, I am working in C# I have created one usercontrol. Now added a panel to this control. In a panel i have added another control. Now, i have added this usercontrol to a form. Now, on button click in this usercontrol i have to dynamically add the control to the same panel (panel already containing one control, the new control should be added below this control.)
5
1508
by: arnabit | last post by:
I have created a dropdown ,which is inside a panel and the panel is inside a place holder . the panel and the dropdown is created dynamically. I do have a button when the button is clicked i am trying to read the values from the dropdown.but the problem i am facing is that i am not getting the id of the dropdown .Please advice me how to get the id of the dropdown .
0
1383
by: Syoam4ka | last post by:
My project is about jewellery. I have devided my jewelery into main types, which each one of them has sub types, and each one those sub types has the jewellery. I have a tabcontainer. It includes tabpanels such as:Catalog,Terms,SiteMap.ViewCart ,etc. All the jewellery Intro is in the Catalog panel. when I first click the Catalog panel it Introduces me all the main types of the jewellery(It's all done dynamically from the cs file).The...
1
4922
by: semomaniz | last post by:
I have a form where i have created the form dynamically. First i manually added a panel control to the web page. Then i added another panel dynamically and inside this panel i created tables. I have set text boxes and labels inside the table rows. I then added a button. All of these are done through code. The problem that i am having is i can get the value from a text box with resides inside the first panel (out side of panel that is...
0
10409
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11923
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11493
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6665
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5252
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4829
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.