/    Sign up×
Community /Pin to ProfileBookmark

Form in repeat region not working in IE7

Hi all, I’m using a repeat region to display multiple records. The data is being displayed inside a form and the form submit button passes the data to a lightbox-style popup where users can read full info. This works fine on all browsers apart from IE7, where only the first submit button works. I’m guessing it’s something to do with the submit button’s id of ‘zoomProduct’ which is being duplicated and IE7 doesn’t like this. I’m pretty new to JS and PHP so would be really grateful if someone could help me out with this. I’m stuck on how to increment the ID and whether this will conflict with the JS that launches the lightbox. thanks guys – simplified example of the problem here [url]http://goo.gl/DVq2S[/url]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@holyhttpApr 19.2012 — I would remove the zoomProduct from the submit field unless you add in the same incremented value zoomProduct1, zoomProduct2,... the same way you did with the form ID.
Copy linkTweet thisAlerts:
@drennanauthorApr 19.2012 — Thanks, just tried that and uploaded again but same alignment problem in IE7. The class was productZoom as this triggers the following javascript to load the iFrame popup, but don't think it's related.

$(document).ready(function() {
$("input.zoomProduct").colorbox({href: function(){
var url = $(this).parents('form').attr('action');
var ser = $(this).parents('form').serialize(); //alert(url+'?'+ser);
return url+'?'+ser;
}, innerWidth:760, innerHeight:"554", iframe:true});

});
Copy linkTweet thisAlerts:
@drennanauthorApr 19.2012 — Sorry, I've confused this with another post. The more info buttons are working now. The javascript above used to say input#zoom and changed it to input.zoom and all the buttons started working. The new problem is that the 5th product onwards is out of alignment in IE7. Haven;t a clue what's causing it though as it's simply repeated in terms of CSS.
×

Success!

Help @drennan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...