Hi all ,

This seems exactly the same problem as mine ....see
http://www.nabble.com/Newbie-Question---wraping-an-element-tf3219302.html

Glad to see someone else is also having trouble :-)

Ritesh


Ryan Doom wrote:
> 
> Hey guys, does Jquery not get along with complex HTML table wrapping or
> handling?
> 
> I posted this last night, and haven't heard anything.
> 
> Here is the source code: http://www.ryandoom.com/Portals/5/PhotoDrop.zip
> 
>  
> 
> I have been playing with Jquery for about a week now and have had a lot of
> success with it, however I'm trying to put a border around a photo.
> 
>  
> 
> This is my HTML
> 
>  
> 
>  photodrop/woman.jpg 
> 
>  
> 
> Here is my Ready data
> 
>  
> 
>       $(".Photo").before("<table border='0' cellpadding='0'
> cellspacing='0'
> width='1'><tr><td> photodrop/topLeft.jpg </td><td
> background='photodrop/topBG.jpg' align='right'> photodrop/topMiddle.jpg
> </td><td> photodrop/topRight.jpg </td></tr><tr><td
> background='photodrop/leftBG.jpg' valign='top'> photodrop/leftMiddle.jpg
> </td><td>").after("</td><td valign='bottom'
> background='photodrop/rightBG.jpg'> photodrop/rightMiddle.jpg
> </td></tr><tr><td> photodrop/botLeft.jpg </td><td
> background='photodrop/botBG.jpg'
> align='left'> photodrop/botMiddle.jpg </td><td> photodrop/botRight.jpg
> </td></tr></table>");
> 
>       
> 
> The above inserts the border etc but my second row has no middle column,
> the
> center td are killed, and the img of the woman doesn't get the border
> around
> it. 
> 
>  
> 
> Ive also tried using the wrap command which fails in its own different
> way.
> Is there some problem with the above HTML ? I know a maze of Divs would
> probably be better but the border is pretty complex.
> 
>  
> 
> Thoughts? 
> 
>  
> 
> Ive' also tried this simple example
> 
>  
> 
> $(".Photo").before("<table border='0' cellpadding='0' cellspacing='0'
> width='1'><tr><td>x </td><td>").after("</td><td>y</td></tr></table>");
> 
>       
> 
>  
> 
> This doesn't work as expected either, in the DOM all the table data is
> before the IMG, only the y is after, but it is mal formed in the DOM.
> 
>  
> 
> If anyone has any insight, that would be great.
> 
>  
> 
> Thanks
> 
>  
> 
>  
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wrap%2C-before%2C-after-all-not-working-with-table-data-tf3221532.html#a8947876
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to