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 42: modal to modal post error
3 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2009


 
Reported by willha...@gmail.com, Jul 5, 2008
What steps will reproduce the problem?
1. within a current open modalbox,
2.  input form data, and post it to another page 
<form class="nyroModal" action="alert_details_action.php"  method="post" 
name="add_or_edit_subscriber">
3. Press submit
 

What is the expected output? What do you see instead?
 - The data to be sent to the designated page within another modalbox

What version of the product are you using? On what operating system?
1.2.8, linux server

Please provide any additional information below.
Any help would be appreciated.  
 
Jul 6, 2008
#1 willha...@gmail.com
I have been able to add more to this error....

My error console is throwing out this message 
" url.indexOf is not a function"  It then takes me to this line of code (1017) var hashPos = url.indexOf('#'); out of 
jquery.nyroModal-1.2.8.js


Jul 6, 2008
Project Member #2 nyro...@gmail.com
I'll fix the issue described by adding a type checking on the url variable.
But I can't reproduce this bug.

Could you sent an URL where I can experienced it please?
Jul 6, 2008
#3 willha...@gmail.com
Thanks for your help...

Once the page is loaded, make a selection, which will fire the modal box, then choose
http://72.18.74.2/subscribe/beta/add_alert.php?alert_name=National+Weather+Service&alert=MQ==
Jul 6, 2008
Project Member #4 nyro...@gmail.com
I can't figure out where is the bug.
When I click on a name, there is a PHP error and that's it.
Jul 6, 2008
#5 willha...@gmail.com
What php error are you getting???

After you select the name, a form should appear.  This is the form with  the error.  If I have the form class set to 
nyroModal, nothing happens on submit.
Jul 6, 2008
Project Member #6 nyro...@gmail.com
See Attached.
PHPerror.png
13.6 KB   View   Download
Jul 7, 2008
#7 willha...@gmail.com
Sorry about the error.  It occurred b/c I had you skip the login. I have change the code to where you should be 
able to get it to work.  Thank you.
Jul 7, 2008
Project Member #8 nyro...@gmail.com
And now, I can't see any error.
Nothing happen, but no error. (firefox 3)

Please test your script to be sure that I can reproduce the bug!
Jul 7, 2008
#9 willha...@gmail.com
http://72.18.74.2/subscribe/beta/nyromodal_test.php

Sorry about all the trouble.  I have removed all the dependent code from this test page and tested it to make 
sure that everything was working.  If you click the link, complete the form, select email, and hit submit.  You 
will see that nothing happens on submit.  If you remove the class from the form element, the form will work 
fine, but doesn't open a nyroModal box (of course).  I turned the nyroModal debug on and it is giving the 
following message, "setDefaultCurrentSettings"  The code of the html within the nyromodal is located at http://72.18.74.2/subscribe/beta/alert_details.php

Again sorry about the trouble and thanks for the help.

Thank you, Will
Jul 7, 2008
Project Member #10 nyro...@gmail.com
I saw the page working during the day, but now I'm getting again the PHP error.
Can you set up as static HTML instead?
Or better, attach the HTML file here!
Jul 8, 2008
#11 willha...@gmail.com
http://72.18.74.2/subscribe/beta/nyroModal.html

Here is a completely static page.  I have also attached the file the page.  

Sorry about the last page,  I had to change it and forgot that it would effect your trouble shooting.  

Thank you, Will
nyroModal.html
3.0 KB   Download
Aug 17, 2008
Project Member #12 nyro...@gmail.com
Did you finally fix your problem?
Aug 18, 2008
#13 willha...@gmail.com
No, b/c of time restraints I had to abandon the use of NyroModal.  However, I do hope to come back to in the 
near future, b/c I would still like to incorporate it in future versions.


Oct 23, 2008
#14 nicolas.kapfer@gmail.com
Hi, 
I have the same error message "url.indexOf is not a function".
The error occurs when I want to submit a PHP Form.
I'm calling a PHP page for the Modal. This page is attached.
I'm using the 1.2.8.min 

I would like to understand if I'm wrong in my code. 
Thank you!
app_links_edit.php
3.9 KB   View   Download
Oct 25, 2008
Project Member #15 nyro...@gmail.com
I found where this error comes from, and it will be updated on the next release.

It's occur because there is an action input on your form, and Im' retrieving the form
action url in the line 630:
currentSettings.url = url = from.nodeName.toLowerCase() == 'form'? from.action :
from.href;

if you can't wait the next release, just replace this line with:
currentSettings.url = url = from.nodeName.toLowerCase() == 'form'?
$(from).attr('action') : from.href;

and it'll works.
Nov 12, 2008
#16 nicolas.kapfer@gmail.com
Hi, 
The problem is solved. Thanks a lot for you answers. You can set this issue as fixed. 
Jan 26, 2009
Project Member #17 nyro...@gmail.com
(No comment was entered for this change.)
Status: Fixed
Feb 18, 2010
#18 martinus...@gmail.com
Hello,
I hope people are still here.
Will, can you tell me how to make the PHP error appears when there's an error?. I
tried to do the debug=true on the settings, but I still get the default error "The
requested content cannot be loaded."

What is the settings to show actual code error?

Thanks,
Martin
Jun 28, 2010
#19 mironenko.sep
I tink that the problem in your code. I use a PHP form from http://phpforms.net/tutorial/html-basics/php-forms.html and I don't have such errors



Powered by Google Project Hosting