Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Web Crawler

Joined
Dec 15, 2009
Messages
1,387
Reaction score
236
Sorry, I don't get it.

The 2 lines of "for" codes you gave, I used them and it didn't seem to work as well.

How did you manage to retrieve all 3 rows, is it possible for you to show me the codes?


Sorry, I'm not very good with JSON... Or programming...
The lines were copied from your urls given to me.
The first row uses th while the others uses td.
Also there is such thing as Object[1][0], there should be no double array's indexes in an object.

Its your homework, so you should learn.
 
Junior Spellweaver
Joined
Jan 14, 2009
Messages
131
Reaction score
1
The lines were copied from your urls given to me.
The first row uses th while the others uses td.
Also there is such thing as Object[1][0], there should be no double array's indexes in an object.

Its your homework, so you should learn.

Oh I think you are mistaken, I'm trying to say the problem only lies in the 2nd link. From the 2nd link's codes, I'm only trying to retrieve the 2nd row of the table.

Anyway, I tried and retrieve both the 2nd row and 3rd row.

This is nearly there, but there's a bit of problem.



EDIT: Ok i solved it with a few if and else.


Now I'm trying to put the codes into my own webpage.

EDIT2:
This is how i inserted the codes to test.
The codes are directly taken from the JsFiddle and I added the following code at the top of the Javascript.

I kept getting this error " '$' is undefined " from the Javascript.
$(document).ready(function()

$ is undefined - Web Crawler - RaGEZONE Forums

defaultpage - Web Crawler - RaGEZONE Forums

Anyway, I have a feeling this isn't going to work with just a Javascript.
 

Attachments

You must be registered for see attachments list
Last edited:
Joined
Dec 15, 2009
Messages
1,387
Reaction score
236
Oh I think you are mistaken, I'm trying to say the problem only lies in the 2nd link. From the 2nd link's codes, I'm only trying to retrieve the 2nd row of the table.

Anyway, I tried and retrieve both the 2nd row and 3rd row.

This is nearly there, but there's a bit of problem.



EDIT: Ok i solved it with a few if and else.


Now I'm trying to put the codes into my own webpage.

EDIT2:
This is how i inserted the codes to test.
The codes are directly taken from the JsFiddle and I added the following code at the top of the Javascript.

I kept getting this error " '$' is undefined " from the Javascript.


View attachment 152290

View attachment 152291

Anyway, I have a feeling this isn't going to work with just a Javascript.
You could have minimize the codes and increase the performance.
I told you, its done with jquery, basically its a library under Javascript.
Google ajax javascript or you could have import jquery into your project.
 
Junior Spellweaver
Joined
Jan 14, 2009
Messages
131
Reaction score
1
You could have minimize the codes and increase the performance.
I told you, its done with jquery, basically its a library under Javascript.
Google ajax javascript or you could have import jquery into your project.

I imported JQuery into my project and it worked.

Thank you for your help! Can I still contact you if I come across anymore problems in C#?
 
Back
Top