need to changed markup with jquery

Posted by user357034 on Stack Overflow See other posts from Stack Overflow or by user357034
Published on 2010-06-09T05:16:53Z Indexed on 2010/06/09 5:22 UTC
Read the original article Hit count: 138

Filed under:
|
|

I have the following markup which I do not have direct access to...

<a href="javascript:void(0);" onclick="window.open('/BulkDiscounts.asp?ProductID=318&ProductCode=' + escape('LB30X40ES') + '&Orig_Price=22.95', 'Discounts', 'scrollbars,status,resizable,width=330,height=300');"><iimg src="/v/vspfiles/templates/100/images/buttons/btn_quantitydiscounts.gif" border="0" align="absmiddle"></a>

I need to "rewrite" the above as follows...

A few things to point out is that the title is coming from a variable escape(global_Current_ProductCode) variable=productcode in the case above it is LB30X40ES

The height and weight, price and product id used in the second markup must be from the first markup. Note that these change depending on the product loaded. These are not constants.

I would guess the first thing to do was to add the thickbox class. Then I am lost as to what to do next.

Basically I need to open up an thickbox iframe with the modified markup.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery