Image popups


https://forum.kartris.com/Topic1271.aspx
Print Topic | Close Window

By jenkins - Tue 30 Aug 2011
Hi there,

I cant my images to popup in the AJAX window like in the demo. Had a mooch through the config settings and cannot find the right one. Please can someone point me in the right suggestion?

Also, with the config setting I know you can search by a word or the setting but could it also be done by description or current setting as well in the future, nopCommerce do something similar and it makes finding settings a breeze. Thank you.

Kind regards

Dave.
By Paul - Wed 31 Aug 2011
This is curious, there are no config settings to enable ajax popups, they should just work by default. It is possible you can provide a link to the site so I can take a look? I'm wondering if it is due to the skin, or whether you're running the default one or not.

Regarding searching the config settings - description and current value for a setting are things we'll look at adding. I have a feeling the latter might be something we're adding in 1.4 already, but will have to check.
By jenkins - Wed 31 Aug 2011
Yeah, I am creating a custom template for my site. However, I just reverted back to the Kartris theme and that isnt popping up the images either. I only have one product uploaded at the moment for testing, it has two pictures.

The image changes in the small image like it should, but as soon as you click large view it doesnt do anything.

Link is kartrisdemo.urbanaddiction.co.uk - the application pool keeps resetting so you might need to refresh it a couple of times.

I've left it on the Kartris theme for the moment, thank you for looking.
By Paul - Sat 3 Sep 2011
Not sure exactly why, but viewing the source of your page the javascript to launch the large view images matches ours:

    //Show the large image popup
    function ShowLargeViewPopup() {
        $find('ctl00_cntMain_UC_ProductView_tbcProduct_tabMain_fvwProduct_UC_PopUpLargeView_popMessage').show();
    }

However, when I search for this control, it appears the javascript that .net writes to display this is slightly different in your page.

I think the following will fix it... if you open up UserControls/Front/ProductView.aspx and find the function above there. Then change

ctl00_cntMain_UC_ProductView_tbcProduct_tabMain_fvwProduct_UC_PopUpLargeView_popMessage

to

cntMain_UC_ProductView_tbcProduct_tabMain_fvwProduct_UC_PopUpLargeView_popMessage

I think also should need to remove the ct100_  part from the media function immediately below that too.

Not sure why your controls are differently named, I believe this part of the name comes from the master page, with ct100 the default if nothing else set.
By clifford-pabs - Mon 5 Sep 2011
Hi there, I faced an issue similar to this and it was AJAX access permissions and not a coding issue. Maybe this points you in the right direction. Smile