churock
06-10-2008, 10:21 PM
Hello every, this is my first post, i am sort of at my wits end here.
Currently, i am creating a website for an individual whose company has provided me with XML in order to live update pricing, stock, etc.
MY issue.
I wanted to incorporate a modal dialogue box (facebox to be exact, a jQuery modal dialogue box) so that when a user clicks a thumbnail image, the modal dialogue box is display highlighting various specifications about the product. (I am doing this to limit the infinite number of detail pages i would have to create for each products specs.). All my xml thus far displays properly, creating a new series of divs, <p>, <imgs>, etc., for each product (therefore, i know thatmy for each statement is working.)
THE ISSUE:
I know that the modal dialogue boxes are being generated much like the rest of the xml based content, because each newly generated element via the for each statement includes the a hypertext link that would go the the modal dialogue box. HOWEVER, when these links are clicked and the modal dialogue box opens it always displays the first product rather than the product its was generated in conjunction with. Thus, ever product displays specifications for the first product despite the fact that newly generated content for all subsequent elements has been created.
My thought is that the javascript, when opening the modal dialogue box recalls the main XML source thus always displaying the first product in the list. Dead lines are looming, I need help
Chad.
Currently, i am creating a website for an individual whose company has provided me with XML in order to live update pricing, stock, etc.
MY issue.
I wanted to incorporate a modal dialogue box (facebox to be exact, a jQuery modal dialogue box) so that when a user clicks a thumbnail image, the modal dialogue box is display highlighting various specifications about the product. (I am doing this to limit the infinite number of detail pages i would have to create for each products specs.). All my xml thus far displays properly, creating a new series of divs, <p>, <imgs>, etc., for each product (therefore, i know thatmy for each statement is working.)
THE ISSUE:
I know that the modal dialogue boxes are being generated much like the rest of the xml based content, because each newly generated element via the for each statement includes the a hypertext link that would go the the modal dialogue box. HOWEVER, when these links are clicked and the modal dialogue box opens it always displays the first product rather than the product its was generated in conjunction with. Thus, ever product displays specifications for the first product despite the fact that newly generated content for all subsequent elements has been created.
My thought is that the javascript, when opening the modal dialogue box recalls the main XML source thus always displaying the first product in the list. Dead lines are looming, I need help
Chad.