Sorry if this repeats but it didn't appear to post. Is 'http:// remotefile.html' in the same domain?
On Mar 1, 5:32 pm, joshm <joshmat...@gmail.com> wrote: > I'm having trouble getting this to work (perhaps it can't be done), > basically I want to access an element and I know it's parent is going > to be a <td> node and then I want to populate the <td></td> (or > innerhtml) with the contents of my remote file....anyone have any > suggestions? > > $(document).ready(function() { > //This does not work: > $('#myelement').parent().load('http://remotefile.html'); > > //Nor does this: > var parent = $('#myelement').parent().get(0).load('http:// > remotefile.html'); > > /Nor does this: > var parent = $('#myelement').parent() > parent.load('http://remotefile.html'); > > }); > > Thx in advance...