I posted a reply or rather a comment to my last issue but I couldn't see it
in the list so I decided to post another issue. Picking up from the last
time...
---------------------------------------------------------------------
Comment 1 by ced...@nyrodev.com:
It looks like the nyroModal script doesn't exist:
http://www.hyponetwork.de/fileadmin/HYPONETWORK/js/jquery.nyroModal-1.2.8.js
Then your code won't work.
To change the default background color, use this code:
$(function() {
$.fn.nyroModal.settings.bgColor = '#333333';
});
Have a good time using this plugin ;)
------------------------------------------
My reply that I didn't manage to get through earlier:
Thank you so much for the reply.
Now it works fine.
I still have some questions-I hope you don't mind. Oh, and excuse my ignorance.
Using:
$(function() {
$.fn.nyroModal.settings.bgColor = '#333333';
});
When should this come?
After:
$('#main_col a.nyromodal').nyroModal();
or before;
Will it then be like this?
$(function() {
$('#main_col a.nyromodal').nyroModal();
$.fn.nyroModal.settings.bgColor = '#333333';
});
Also, what is the difference of:
$(function() {
$.fn.nyroModal.settings.bgColor = '#333333';
});
to:
$(document).ready(function() {
$('#main_col a.nyromodal').nyroModal({
bgColor: '#333'
});
});
One more.
I have my own validation for the form.
Will it still work inside the nyroModal?
Where will I need my link my validation.js on the page where the form is or
on the
page where I call the nyroModal?
Again,
thank you so much for taking the time and I'm sorry if some or all of my
questions
sound too basic.
Place of where to put the code (after or before) won't change anything. You simply change the default settings used for each new modal. So both code will work in the exact same way. The difference between your both code: First code will change the setting for all modal opened in your page. The second code is supposed to change it only for '#main_col a.nyromodal'. But I'm not sure if it will work perfectly as you're using the default class. To be sure it's working as ecpected, it's better to change the nyroModal class to something like nyroModalMine and then, use this code: $(function() { $('#main_col a.nyroModalMine').nyroModal({ bgColor: '#333' }); }); Finally, regarding your validation form code, I'm not sure to understand what you're asking for. Depending of how it's coded and worked, it will work or not. Take a look at the demo, there is a basic exemple of validation form. Hope it'll help (NB: your last post is still here, just need to show all the issues and not only the opened. Change the dropdown list in the search form at the top of the list and you'll find it. I'm still reviewing all the issues for any updates or adding)