This topic is locked

Refresh problem with Inline Add & popup message

7/21/2010 10:37:40 PM
PHPRunner General questions
P
procheck author

Hi,
I generate a popup error message when trying to ADD a teamname if one already exists for that user.

This is from user list drop-down box.
I do the following in the ADD PAGE: Before record added event. This works fine.
?><script>

alert("This member already has a team name. Use EDIT SELECTED to rename it");

</script>

<?php

However when I click on OK to clear the message, it generates a pink bar over the top

as shown below:


The only way to remove this is to reload the browser manually.
I've tried making the changes to inlineedit.js as I've read in many posts, but it had no effect.
ie -
setTimeout('$("#uploadForm'+id+'").remove()',500);
and add following code just after:
setTimeout('window.location.reload(true)',1000);


Any ideas on what could be the problem?
Thanks
Al

A
ann 7/22/2010

Al,
unfortunately you can't use alert() function on the List page.

Use Before record added event on the Events tab to check the type of the edit.

Here is a sample:

if ($inline){

$message="This member already has a team name. Use EDIT SELECTED to rename it";

}

else{

echo "<script>alert('This member already has a team name. Use EDIT SELECTED to rename it');</script>";

}
P
procheck author 7/22/2010

Hi Ann,
I did as you suggested. The bar reduces to half it's height but still remains after the message clears.

A
ann 7/23/2010

Al,
It's difficult to tell you what's happening without seeing actual files.

Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.

P
procheck author 7/23/2010

Hi Ann,
I've uploaded my app to the demo and opened a ticket but the ticket doesn't show in "my tickets"

in my account. If you did not receive it please let me know.
Thanks
Al

A
ajitha99999 7/24/2010

I did as you suggested.
thank you,
regards,
phe90xis