YAFLogo

albert.cumplido
14 years ago
Hi there,

I'm having problems in the "Edit profile" form.

I've integrated YAF 1.9.4 into another CMS application. Since this CMS is using Prototype, I've had to replace all jQuery selector references into YAF, i.e. modify $ to jQuery, e.g.

$("myControlId" ) is now jQuery("myControlId" )

Everything is fine, except the "Edit Profile" form. Here it is being used 2 controls from DNA.UI.JQuery: datePicker and YafForumPageErrorPopup1 (inherits from DNA.UI.JQuery.Dialog).

What is happening is that when I introduce an invalid email address into an email field, it doesn't display the popup window that notifies to the user that the email is invalid.

I've checked the page source code (html) and I can see that the dialog control still uses $ selector.

Example:

function forum_YafForumPageErrorPopup1_LoadScript(){$("#forum_YafForumPageErrorPopup1" ).dialog({autoOpen:false,dialogClass:'',t...

Do you know any option to make this work?

Any suggestion is welcomed.

Thanks,

albert

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
14 years ago
You need to change all the $ to jquery in the source code of the dna jquery dll, and recompile it with the yaf source.
albert.cumplido
14 years ago
I finally did the changes in the source code and worked.

cheers

MattG
  • MattG
  • 52.4% (Neutral)
  • YAF Forumling
14 years ago
I have the same issue with 1.9.5 but the source has jquery instead of $. Do either of you have an example of what you might have changed to get your working. Thanks in advance.

Sys.Application.add_load(ctl00_ContentPlaceHolder1_ctl00_YafForumPageErrorPopup1_LoadScript);function ctl00_ContentPlaceHolder1_ctl00_YafForumPageErrorPopup1_LoadScript(){jQuery("#ctl00_ContentPlaceHolder1_ctl00_YafForumPageErrorPopup1