Ajax request is known Beforehand that the ending links given the server changed. How to get this link in server response?
Sending jQuery Ajax request for new messages with a link of the form: /viewtopic.php?id=35&action=new ,
the server gives response in the form of a link: /viewtopic.php?id=35&p=19#p3946
Bold parameter on the first unread message - this parameter and uses the jQuery search script in the content. In what way or method can pull the link in server response of the Ajax request ?
While a direct answer over 12 hours of searching nothing was found. I will be glad to help.
PS: the Answer lies in the capabilities of the JavaScript browser, other options may not be applicable
2 answers
What is "the server gives response in the form of links to" illicit activities? How you implement the redirect? Rather, through the Location header, then it must be removed from the answer, but it doesn't need log with headers and response body from the sniffer (Fiddler, Wireshark, etc.), it is possible to say more specifically, and without this, not surprisingly, found nothing.
Find more questions by tags AJAXjQuery
By the way, why can't it be? And if JavaScript was impossible, only in Flash, you would do not have, why do you have to drive themselves in any frame, that's preposterous. - mazie.Towne commented on July 9th 19 at 13:05
From frame read the full address.
a) Wang, that a more elegant solution, using XmlHttpRequest you can do it more elegantly, competently and more Bang. Just takes you too imagine how to implement. But it is advisable not to depart from the common standard of the current library and to do everything possible in jQuery or native jS. About yourself, doing js long enough, but more in the applied field, with a similar task of vyuzivanie links in Ajax have not experienced... How to make and the direction where to dig, around guess I would like answers ate the dog. Well, surely I'm not the discoverer.. - Jaunita.Nolan commented on July 9th 19 at 13:08
The solution is not dependent on, the primary reference is not changing, only the value in the end, after &
Such examples of this change in the reference parameter from the returned page arbitrarily
Yes, any search or download images, whatever, even though the return link and does not change(in the script we do not know about) - but how to get the url of the requested content from the Ajax request, and not only content ? - Jaunita.Nolan commented on July 9th 19 at 13:20
The current solution to the frame through a long and painful ancient, for renditta and loaded all the page content, and the answer to my search query - long: more MB and megabytes of images. Ajax I get the content for millicode, and waiting for a file has been downloaded frame, after which you can access a frame for the request of the referee, dozens, or even hundreds of seconds. - Jaunita.Nolan commented on July 9th 19 at 13:26
Once again, the library on the user, it is not a server technology. Works for JavaScript in the browser on Clint, Can only request data Ajax-Request with the same domain as the page and count them. Flash is not suitable, although it works a little better than a frame for a given issue. - Jaunita.Nolan commented on July 9th 19 at 13:35
It may well be that it is the right thing to do here is not anything to be 100% sure, websites are different.
But if the same, one site well worth a look with a sniffer so I know exactly how to handle the response required, and suggested how to do it with JavaScript, the last time I explain, in the end, roughly speaking, you don't overstrain that will do it, so your problem is far-fetched, just blatant laziness, nelumbonales, ignorance, I don't want such people to communicate, the following comment ignore if you are going to complain about life, or tell things non answers to my questions in the beginning. - mazie.Towne commented on July 9th 19 at 13:38
OK => Zaregalsya on this website => forum.mybb.ru/login.php there is the entrance via the social network
Sample request(you can look in the browser) forum.mybb.ru/viewtopic.php?id=36133&action=new
Answer: forum.mybb.ru/viewtopic.php?id=36133&p=2#p888662 (You may be different, characterizes Your unread messages in the current topic
If not enough, give more of this - Jaunita.Nolan commented on July 9th 19 at 13:41