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 65: Need urgent help!-Newbee
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2008


 
Reported by neuberwe...@googlemail.com, Aug 16, 2008
Hello, 
first this is a freat plugin and I'm glad I discovered it.
I have some issues using and customizing the whole thing.
The project I'm working on is:
http://www.hyponetwork.de/index.php?id=84
clicking on: "RÜCKRUF-SERVICE" should bring up (nytoModal) a form which the
user can fill out and send.
the HTML looks like this:

<h4><a href="index.php?id=rckruf_service_formular" class="nyroModal"
>RÜCKRUF-SERVICE</a></h4>

my js:
$(document).ready(function() {
 $('#main_col a.nyromodal').nyroModal({
    bgColor: '#333'
  });
}); 

But the instead of the nyroModal window opening, I'm simply taken to the
actual page with the form. 
I'm probably missing quite a lot here but I'm new to all this so please can
anyone help?

 
Aug 16, 2008
Project Member #1 nyro...@gmail.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 ;)
Status: Fixed
Labels: -Type-Defect Type-Other
Aug 16, 2008
#2 neuberwe...@googlemail.com
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. 




Powered by Google Project Hosting