javascript - Get Page and find div contents then display not working -


edit: error caused facebook script, script still not working without throwing errors.

i trying display part of page, using $get , .find jquery functions, giving me error. expect see if linking external domain when not.

here code:

        var componentsrc = "http://localhost/acatalog/8ft_trampoline_tent.html";         $.get(componentsrc, function(data){             $(this).children('div').html($(data).find('.page-content').html());         }) 

however when running following url: http://localhost/acatalog/8ft_fun_pink_trampoline.html

it giving me error:

given url not permitted application configuration.: 1 or more of given urls not allowed app's settings. must match website url or canvas url, or domain must subdomain of 1 of app's domains.

i realize error displayed if not linking same domain not. because localhost?

you should use $('div#result').load('http://localhost/acatalog/8ft_trampoline_tent.html .page-content'); less complicated


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -