php - refresh multiple iframes based on a variable "id" from one button -


i have php page has multiple iframes on page.

these iframes contain button if will. when clicks on "button" im firing javascript refresh frame on page id=xxx works fine. problem want able refresh multiple frames on page cant have same id value how done.

<iframe id="12345"></iframe> <iframe id="12345"></iframe> <iframe id="12345"></iframe> 

this works on single iframe (i know cant have multiple ids same on 1 document.) idea want this.

parent.document.getelementbyid('12345').contentwindow.location.reload(); 

sorry sloppy example, ive been awake far long. :)

just assign different ids , call

parent.document.getelementbyid(customid).contentwindow.location.reload(); 

multiple times, once each every iframe want reload.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -