I guess I'm having a weird issue since I didn't see anyone having an issue like this.
After I click on a button that is supposed to return me a new page, it only returns me the text, no CSS, no images nothing but just text.
I wish I could add a screenshot, but it is an internal tool and unfortunately I'm not allowed to post it.
Have anyone else had an issue similar to this before?
Thanks in advance
Related
I'm working on a java web scraper that someone else has written in a terrible way. It is very difficult to understand anything, and there is no comment at all. It is supposed to retrieve articles and their comments on different press websites.
My problem is that one of these website displays only 10 comments, and load more comments only if you scroll down. The point is that I need ALL the comments, not only the first ten, but I don't know how my web client could immitate a scroll down, or if there is any other and better way.
After some research, I've found that configuring a very high InnerHeight might resolve the problem, but I have no idea about how it works, and I don't even know if it can resolve my problem...
The website I am trying to scrape is :
https://www.lefigaro.fr/international/le-climat-se-tend-en-allemagne-face-aux-restrictions-anti-corona-20201025
To load the comments, you have to click on the blue button at the end of the page "LIRE LES COMMENTAIRES"
Can someone help ?
Thanks :) !
I have implemented google No CAPTCHA reCAPTCHA in my spring web application.When ever i click check box it always shows pop up of picture selection.This not only once every time when i click check box it pops picture selection.
Is this right working of recapctha.
Please give me some reason why it is happening like this.is there issue with my working code or what might be the reason .Please help me on this.
I found a very good code on the internet but when I run, the images do not appear, I downloaded them, put in the project and yet nothing appears, only the text, I'll post a picture I saw on the website that I got the code:
And now I will post the code, I can not bring up the images, only the text, look at the hiperlink of code:
Text and Icon in JList
Thanks !
Try running the following code:
System.out.println(System.getProperty("user.dir"));
That will show you the working directory of the program you're running, which editors like Eclipse can sometimes mess with. Make sure that you put the files in the exact folder that is shown.
I'm working on a Java webapplication. Something I did, perhaps the javascript, caused the back button of the browser to stop working (it actually just shows a thinking circle on the tab in chrome).
The problem seems to be only in chrome
I'm not sure exactly what to look for...
What can cause the browser back button not to work?
This is an open bug on Chrome. It may not have anything to do with your application: http://www.google.com/support/forum/p/Chrome/thread?tid=1893e974f696f250&hl=en
Edit:
Here's the quick link to the actual reported bug.
Are you using the location.replace method anywhere? If you're talking in general and not just in Chrome, it's the only thing I can think of that would cause the back button not to work.
See the first point here.
Other than that, and especially if it just happens on Chrome, a browser bug seems much more likely.
Sounds like it could be a server side problem. Make sure you don't have any infinite loops and limit the runtime of your script.
Basically I want my Java Applet to simulate an url has been clicked, once a certain event listener has been executed.
Say, before I have a link in html:
<a href='destinationpage.php?pid=1001' target='rightFrame' />
I'd like to keep the same link to php intact, and when Applet actually invoke the click simulation method, the "target" attribute can also be used to control the behavior.
Similar SO thread found at here, but it doesn't have an answer.
I have little experience in this area, but I am okay with Java programming so long as someone can give me the suggestion of where to get started with.
Many thanks in advance.
Edit:
Okay, tried to get JSObject from the netscape.javascript package to work, added plugin.jar into CLASSPATH, unfortunately I finally got an ExceptionInInitializerError, so this approach failed, unless I can know how to debug in such a mess...
You could call the url directly in the applet but if you want to reference the link in the page something like the following should work. I have not tested this though.
getAppletContext().showDocument(new URL("javascript:function() {
document.getElementById('mylink').click();
}"));
}