PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Thanks I will have a play and see how I get on.
I've already written my scripts. The problem I often have is if the script is being used in one part of the page, such as admin.php, then test.inc where the same script is entered, will not work.
For example: At the top in admin.php I have "Operators" shown with an "Add" link. The 'Add' link opens a 'fancybox' with a form. Nice and neat.
However, If the user has no operators, I want the operators.inc page to show the Add link too (a nice big friendly button to start at ), but it will not work. It's identical code.
I've even used identical code, but changed the #name in case it was getting confused. Still no go.
Very annoying.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
While calling facebox() on any anchor tag will do the trick, it's easier to give your Faceboxy links a rel="facebox" and hit them all onLoad.
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
})
[/text]
Do you put that code in a <script></script> tag? As that doesn't work for me.
It would be useful to have this work, as one particular page does need to highlight something important to the user, and this would be a smart way to do it.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.