The issue is that your selector returns a jQuery object, not a raw DOMElement, which is what swfobject and/or ExternalInterface expect. Use this instead:
var elem = $("#someId")[0]; elem.reload(); the difference is that by using array access to get the first element in the wrapped set, you can directly call methods defined in AS3. Hope that helps. On Jul 2, 4:23 am, pacodelucia <aziz.hamm...@gmail.com> wrote: > Hi again > > I have created a demo of the described problem. Please find it here > :http://msc2svg.googlepages.com/index.html > The source code can be downloaded as zip form here :http:// > msc2svg.googlepages.com/demo.zip > > The demo javascript code is written in index.html > > On Jul 1, 6:11 pm, Liam Byrne <l...@onsight.ie> wrote: > > > > > Any chance that there are 2 items with id / name "reportChart" ? > > > L > > > pacodelucia wrote: > > > Hi > > > The code I have written in my post was some how pseuodo code. That is > > > the reason why it contains so much typing errors. Sorry for that > > > > Here is the code directly copied from my js file: > > > > document.getElementById('reportChart').reload("charts/ > > > pie_chart.php"); //works > > > $("#reportChart").reload("charts/ > > > pie_chart.php"); // does not > > > work > > > > I am using firefox 3.5 > > > > On Jul 1, 5:03 pm, Liam Byrne <l...@onsight.ie> wrote: > > > >> Is there an error / typo in the URL being requested ? > > > >> Should it be "charts/gen_*e*_rate_chart.php" ? > > > >> L > > > >> pacodelucia wrote: > > > >>> sorry for the type error. I meant really that > > >>> $("#reportChart").reload("charts/genrate_chart.php"); > > > >>> does not work with the # selector. > > > >>> On Jul 1, 3:51 pm, Olaf Bosch <olaf.bo...@t-online.de> wrote: > > > >>>> pacodelucia schrieb: > > > >>>>> Apparently $("reportChart") is not returning really an SWF "object". > > >>>>> Anyone has an idea if this possible with jquery? > > > >>>> This is not a correct Selectot for ID, try so: > > > >>>> //access via jquery > > >>>> $("#reportChart").reload("charts/genrate_chart.php"); // does not work > > > >>>> # for ID, . for CLASS > > > >>>> -- > > >>>> Viele Grüße, Olaf > > > >>>> ----------------------------------- > > >>>> olaf.bo...@t-online.dehttp://olaf-bosch.de/http://ohorn.info/http://www.akitafreund.de/ > > >>>> ----------------------------------- > > >>>> ------------------------------------------------------------------------ > > > >>>> No virus found in this incoming message. > > >>>> Checked by AVG -www.avg.com > > >>>> Version: 8.5.375 / Virus Database:270.13.1/2212- Release Date:07/01/09 > > >>>> 05:53:00 > > >>>> ------------------------------------------------------------------------ > > > >>>> No virus found in this incoming message. > > >>>> Checked by AVG -www.avg.com > > >>>> Version: 8.5.375 / Virus Database:270.13.1/2212- Release Date:07/01/09 > > >>>> 05:53:00