Hello all I am new here but this place looked great and like one of the only places where I could find the answer to my question.
I have created a page which pulls search results from various sites using PHP. It displays each result in a row in a table upon running.
I wanted to add a button saying "More information" at which point, a div would appear and load the associated link for that search result within an iframe within the newly appeared div. I've been able to get a div appear and disappear on button click but, I couldn't get it to dynamically load an iframe on click with the associated search results link.
Any suggestions are greatly appreciated. Also let me know if you need more information before assisting. Thanks!
Not sure why you would want to use an iframe.
Try researching innerHTML or append.
Say you have a div on the page with id 'blah'.
Then you can say document.getElementByID('blah').innerHTML = "yaddayadda";
The result would be:
yaddayadda being the information you imported... (likely using Ajax)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)