My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 66: some more questions!
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Sep 2008


 
Reported by neuberwe...@googlemail.com, Aug 16, 2008
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. 



 
Sep 1, 2008
Project Member #1 nyro...@gmail.com
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)

Status: Fixed
Sep 8, 2008
#2 neuberwe...@googlemail.com
Thanks for replying. 
I'm sorry for having to bug you again but this is what I have.
My form opens inside the nyroModal. That works! But both my css and js validation are
not applied inside the modal although the parent page links to the files. (main.css
and validation.js)What am I doing wrong!?
This is the link again:
http://www.hyponetwork.de/index.php?id=84 click on Rückruf-service.
Thanks for all the help so far!
Sarah

Powered by Google Project Hosting