Issue 26: this.nodename has no property
Status:  Fixed
Owner: ----
Closed:  Jun 2008
Reported by pbz...@gmail.com, Jun 10, 2008
What steps will reproduce the problem?
1. Import of jquery.nyroModal-1.2.6.js
2.
3.

What is the expected output? What do you see instead?

No javascript errors. 

What version of the product are you using? On what operating system?


Please provide any additional information below.

Firebug is complaining about line 59 in the statement below.

// jQuery extension function. A paramater object could be used to overwrite
the default settings
57 $.fn.nyroModal = function(settings) {
58 return this.each(function(){
59 if (this.nodeName.toLowerCase() == 'form') {
60 $(this).submit(function(e) {
61 if (this.enctype == 'multipart/form-data') {
62 processModal(jQuery.extend(settings, {
63 from: this
64 }));
65 return true; 
Jun 10, 2008
#1 pbz...@gmail.com
My <head> in the html file looks as follows.

<head><title>Portal:Customer Care</title>

<meta content="text/html; charset=ISO-8859-2" http-equiv="Content-type"/><link
href="/site_media/css/global.css" type="text/css" rel="stylesheet"/><link
href="/site_media/css/autocomplete.css" type="text/css" rel="stylesheet"/><link
href="/site_media/css/calendar-blue.css" type="text/css" rel="stylesheet"/><link
href="/site_media/menu/style.css" type="text/css" rel="stylesheet"/><link
href="/site_media/css/cc_css.css" type="text/css" rel="stylesheet"/><link
href="/site_media/jquery/styles/nyroModal.css" type="text/css"
rel="stylesheet"/><script src="/jsi18n/" type="text/javascript"/><script
src="/site_media/protoculous-1.0.2-shrinked.js" type="text/javascript"/><script
src="/site_media/js/operations.js" type="text/javascript"/><script
src="/site_media/boxover.js" type="text/javascript"/><script
src="/site_media/calendar/calendar.js" type="text/javascript"/><script
src="/site_media/calendar/lang/calendar-en.js" type="text/javascript"/><script
src="/site_media/calendar/calendar-setup.js" type="text/javascript"/><script
src="/site_media/jquery/jquery-1.2.6.pack.js" type="text/javascript"/><script
src="/site_media/jquery/js/jquery.nyroModal-1.2.6.pack.js"
type="text/javascript"/><script
src="chrome://skype_ff_toolbar_win/content/injection_graph_func.js"
id="injection_graph_func" charset="utf-8"/>
</head>

The part that should link to nyro is:

<table class="cc_content"><thead><tr><th>Main
Window</th></tr></thead><tbody><tr><td><div id="container"><a title="Test Pic"
class="nyroModal" id="testpic" href="/site_media/pictures/basket.png"> It works</a></div>
<script type="text/javascript">
  $('testpic').nyroModal();
</script>
</td></tr></tbody></table>

Jun 10, 2008
Project Member #2 nyro...@gmail.com
Ok, I'll add a check in this function to be sure there is something selected.

You have a problem in your code:
$('testpic').nyroModal();
should be
$('#testpic').nyroModal();

(you're not with prototype here ;))

Status: Accepted
Jun 11, 2008
#3 pbz...@gmail.com
Thanks for your help. I know I need to change my library away from prototype but it's
going to be a major process :-).

Is there anything I can do in the mean while to avoid the above error? 

Thanks for you help.

Jun 11, 2008
Project Member #4 nyro...@gmail.com
YYou have to use jQuery in order to user nyroModal.
To do so, you can use jQuery in the noConflict mode, nyroModal will continue to work.
http://docs.jquery.com/Core/jQuery.noConflict
Jun 13, 2008
Project Member #5 nyro...@gmail.com
I released the version 1.2.7 which return false in $.nyroModal if there is nothing
selected
Status: Fixed