Image Map Linked Code Won't Work Properly

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

17-Apr-12 15:56
This is the 'buy now' code sent to me by my shopping cart host (I removed the img attributes so it would display:
<a href="CART URL/ecom/gb.php?c=cart&i=LFR-1&cl=hidden&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="CART URL/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>


Normally this opens a smaller window _over_ the original page and displays the shopping cart.
When linked from an Image Map however, it will only open the shopping cart in a new tab. If I remove the Target Attribute it will open in the same tab, but not open the window correct (it replaces the whole page).

Question: How can I get this code to work normally when linked from an Image Map?
Here is the Image Map Code for reference:
04-May-12 05:17
@cosmic_nomad: Hard to tell without seeing the whole page in context. Can you post a complete example on jsbin?

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated