deepurushotham Posted April 23, 2008 Share Posted April 23, 2008 Hi experts, i wanted to develop a page which contains the subject of message. when clicked on subject link i get the contents of that subject. I have done that form which i need, But i want to display the content of the subject using greybox in ajax. the PHP program i have done is similar to http://www.weberdev.com/ViewArticle/Building-a-Quick-and-Dirty-PHP-MySQL-Publishing-System but i need the content to b displayed as greybox form in ajax. i tired like this but dint work out <a href="story.php?id=<? echo $row->id; ?>" title="Listing" rel="gb_page[500, 500]"> View All <? echo $row->slug; ?> </a> instead of <a href="story.php?id=<? echo $row->id; ?>"><? echo $row->slug; ?></a> so that i get it in greybox form, i am succesfull in creating greybox but inside it, the error is "No press releases currently available" is it possible to do like this if yes Can someone help me please..... thanks in advance.. Quote Link to comment Share on other sites More sharing options...
phorman Posted April 29, 2008 Share Posted April 29, 2008 You need to call an "on" instance: onclick, onblur, onFocus example: <a href="test.php" onclick="gb_page(500, 500);">View All< /a> Provided that gb_page is your javascript function you want to call, and not a php function. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.