Open GoogleCodeExporter opened 9 years ago
Never mind, I don't think the issue is with nyromodal. Great plugin!
Original comment by dodgingspam@gmail.com
on 5 Oct 2010 at 6:15
if the script that should be loaded are in the page which are loaded by
nyroModal, add rel="forceLoad" on your script tag.
If it's still not working, try to add rev="shown" on them to execute them later
on the process.
Original comment by nyro...@gmail.com
on 6 Oct 2010 at 7:16
Sorry, I'm still struggling with this. Even after I tried to include each of
the tags that you suggested, when I select the source of the modal I can see
the link to CSS file included but not the one to JS. I also have a JavaScript
code inline, right below CSS included and while it neither shows in page source
not nor does it work because the JS class is not included, one of the functions
that validates on click actually does work. I don't really understand why...
Is there a way I could show you the implementation on the site?
Thanks.
Original comment by dodgingspam@gmail.com
on 6 Oct 2010 at 1:21
post a link where we can see the page.
Original comment by nyro...@gmail.com
on 6 Oct 2010 at 1:26
Could it also be with how I call the modal? I upload an image and when it is
uploaded it appears in a <div id="imgCrop"> and the page where submit form with
upload request has the following code that pops-up the modal with uploaded
results:
$(document).ready(function(){
$("#imgCrop").nyroModal();
});
I'm just getting to know JQuery and this code is definitely out of my league...
Original comment by dodgingspam@gmail.com
on 6 Oct 2010 at 1:26
[deleted comment]
http://www.slatecast.com/home/slatecastcom/incl/js/JQuery/jcrop/js/jquery.Jcrop.
js doesn't exist on your server.
First that on the first time.
Then, you should include jQuery at the top of the page loaded for the upload to
avoid some JS aerrors
Original comment by nyro...@gmail.com
on 6 Oct 2010 at 2:18
[deleted comment]
Still have a problem on your path, looks like there is an erronous character at
the end of the path...
Original comment by nyro...@gmail.com
on 6 Oct 2010 at 2:32
[deleted comment]
[deleted comment]
OK, found the reason for mysterious erroneous character. I was missing " after
src=
Now, that I don't get errors the script is still not working... I'm bummed...
Original comment by dodgingspam@gmail.com
on 6 Oct 2010 at 3:52
Your problem:
You're using the uplaod feature of nyroModal. To make this feature possible,
nyroModal has to post the data in an iframe and then, once the page is loaded,
retrieve all the data contained in there, and then show it in HTML by copying
the data.
When this copy occurs, the binding that was previously done inside the frame
are lost.
To solve your problem, you will have to create a new PHP page to show the crop
feature, independant from the upload page.
On the upload page, you'll add a code to open a nyroModal with this new page.
This code will looks like (not tested):
parent.$.nyroModalManual({url: 'YOURULR'});
Hope it will works.
Original comment by nyro...@gmail.com
on 7 Oct 2010 at 12:18
[deleted comment]
[deleted comment]
OK, I might've come up with a work around. I realized that my crop
functionality is not being initialized onload. Whatever the reason may be... So
I replaced this:
jQuery(window).load(function(){
jQuery("#cropbox").Jcrop({
onChange: showPreview,
onSelect: showPreview,
aspectRatio: 16/9,
onSelect: updateCoords
});
});
with this:
function jCropInit(){
jQuery("#cropbox").Jcrop({
onChange: showPreview,
onSelect: showPreview,
aspectRatio: 16/9,
onSelect: updateCoords
});
}
and added a call to new function;
<img src="'.$imgSrc.'" id="cropbox" onMouseOver="return jCropInit()">
Original comment by dodgingspam@gmail.com
on 7 Oct 2010 at 4:25
Oh, premature celebration. In IE everything is broken. I get some sort of JS
errors pointing to jquery file, the window does not open in a modal but pops a
new browser window. What a mess -- back to the drawing board.
Original comment by dodgingspam@gmail.com
on 7 Oct 2010 at 7:06
It seems I got it working in FireFox (all the way until actual crop). IE throws
an error: "Object does not support this property or method" and Opera just
chokes and does not know what to show... it give nyroModal's error message:
The requested content cannot be loaded.
Please try again later.
Original comment by dodgingspam@gmail.com
on 8 Oct 2010 at 1:33
Original issue reported on code.google.com by
dodgingspam@gmail.com
on 5 Oct 2010 at 4:51