jquery - How to retrieve the page title in JavaScript? -
i need way retrieve title of remote webpage. found js on internet can tell me "$.request("fetch_title", { url: c })" in function: ?
function fetch_title() { var = $("#url-field"), b = a.find(".no_url"), = a.find(".title-status"), c = $("#url").val(); if (c) { if (!$('form#newlink textarea[name="title"]').val() || confirm("this replace existing title, proceed?")) a.show().text(reddit.status_msg.loading), b.hide(), $.request("fetch_title", { url: c }) } else a.hide(), b.show().text("a url required") }
there's no jquery.request()
function in core jquery, it's implemented plug-in. closest i've found on google amplifyjs, described "component library jquery". however, there's no indication documentation using $
in place of amplify
work.
taken page linked above:
amplify.request abstraction layer can used kind of request data. amplify.request sets out separate data retrieval , caching mechanisms data requestors.
it seems request title of page based on specified url user input, exact specifics of request elsewhere in code.
Comments
Post a Comment