gottaloveit
New Member
- Messages
- 33
- Reaction score
- 0
- Points
- 0
The page I'm working on returns a table of results from a mySql database. One of the results, the name id, is a hyperlink. When clicked, I want that hyperlink to load an iframe on the same page.
I can load the iframe using a line of java. However, when I insert that line of java into the hyperlink that is returned from the mysql search, something doesn't work right, the iframe doesn't load.
The line of javascript that works to load the iframe is:
<a href="javascript:loadintoIframe('myframe', 'iframe.php')">Link</a>
What I am trying to do is this:
echo ("<td> <a href='javascript:loadintoIframe('myframe', 'iframe.php')'>" . $row['name'] . "</a> </td>");
I've tried tweaking this line but it often causes a PHP error that prevents the page from loading.
THanks for any help!
I can load the iframe using a line of java. However, when I insert that line of java into the hyperlink that is returned from the mysql search, something doesn't work right, the iframe doesn't load.
The line of javascript that works to load the iframe is:
<a href="javascript:loadintoIframe('myframe', 'iframe.php')">Link</a>
What I am trying to do is this:
echo ("<td> <a href='javascript:loadintoIframe('myframe', 'iframe.php')'>" . $row['name'] . "</a> </td>");
I've tried tweaking this line but it often causes a PHP error that prevents the page from loading.
THanks for any help!