jquery jquandry
Last Post 10/15/2014 3:07 PM by Joseph Craig. 7 Replies.
Author Messages
Doxey
Nuke Active Member
Nuke Active Member
Posts:36


--
10/13/2014 6:43 PM  
Hi there. We have a DNN 5.6.3 site. We need to pop up a disclaimer when someone clicks on certain content. A module developer accomplished this for us using jquery and it works great. Yeah but now we are upgrading to DNN 7.3.3. The scripts still work just fine; the disclaimer pops up when its supposed to. But I cannot administer the page. For instance I cannot get into the settings of a module. And I don't get the drop down menu off the DNN 7 Edit button. click click nope nope.

The problem does not happen on the old 5.6.3 site, only on the DNN 7 site. And it happens only on pages where the jquery is used.

The developer has gone on to greener pastures so no luck there.

Drat, if it weren't for this I'd pull the trigger on my upgrade. Thoughts?

Joseph Craig
DNN MVP
Posts:11667


--
10/14/2014 7:31 AM  
In DNN years (sort of like dog years), DNN 5.6.3 is somewhat ancient. And -- as I remember -- it did not have jQuery included. DNN 7 has jQuery fully integrated.

So, my "guess" would be that there is some sort of disconnect/conflict/something between what your developer did and what should be done now.

One way to start to figure this out would be to load the oage with your browser's developer tools open. That's usually started with F12. You want to look at the "console" window to check for errors.

So, F12, load the page, and then click the link that should result in the disclaimer. Copy any errors and post them here.

If you also want to post the URL for your site and let me know where to click to get the disclaimer, I'll be able to take a look.

Joe Craig, Patapsco Research Group
Complete DNN Support
Doxey
Nuke Active Member
Nuke Active Member
Posts:36


--
10/14/2014 1:29 PM  
Thanks much. The page is here: Click the second mailto link to see the script in action.

The disclaimer is used in several places in the site but I copied them to Home2 test page to make it easy to see.

And yes the disclaimer works! But alas, managing the page is problematic.

Developer Tools, thanks for that, but I am a beginner, not sure what I'm seeing there.

I have attached the script. Perhaps an educated person could point me to a quick solution. edit: hmm I cannot seem to upload my little text file with the code in it.




Joseph Craig
DNN MVP
Posts:11667


--
10/14/2014 3:50 PM  
Could you use the Contact form at patapscoresearch.com to send me your email address and, if you can, credentials so that I can login to look at the editing issue.

I have looked enough to see how the disclaimer is implemented.

I'm guessing that there is a conflict between two versions of jQuery. It may be very easy to correct this, but I need to look behind the curtains. Do you, by any chance, have a development or staging copy of the site for experimentation?

Joe Craig, Patapsco Research Group
Complete DNN Support
Doxey
Nuke Active Member
Nuke Active Member
Posts:36


--
10/14/2014 4:56 PM  
Yes, live site (dnn 5.6.3) is at www.karrtuttle.com, development site is dev.karrtuttle.com (dnn 7.3.3). Once the jquery issue is resolved, the hosting provider will clone dev to www and we're done. I will send credentials via other site.
Doxey
Nuke Active Member
Nuke Active Member
Posts:36


--
10/14/2014 5:10 PM  
Sorry but the contact form there is giving a smtp error when I submit the info.
Doxey
Nuke Active Member
Nuke Active Member
Posts:36


--
10/14/2014 6:45 PM  
Okay there was a conflict. I learned to declare a new variable with the jQuery.noConflict rule, then replace all the local variables with the new variable. Then both versions of jQuery run on the same page. Yee ha.
Joseph Craig
DNN MVP
Posts:11667


--
10/15/2014 3:07 PM  
Sorry about the SMTP error. It should be fixed now.

As for getting 2 version of jQuery to run, I would try to get rid of the old version. It gets loaded in the module, I think in a template. You should just be able to remove the script that load it.

Joe Craig, Patapsco Research Group
Complete DNN Support


---