Recent posts by Buggy Menot

Subscribe to Recent posts by Buggy Menot 4 posts found

Jun 11, 2007
Buggy Menot 4 posts

Topic: Ideas and script requests / Turning xmlhttprequest response into objects.

Well what I have is two functions. There is a page formatted like so:
name | location | type | last played
name | location | type | last played
name | location | type | last played
name | location | type | last played

function getinfo(ranknum,gettype) {
xmlhttprequest {
onload: function(result) {
if (gettype == name) return parsed name
if (gettype == location) return parsed location
etc
}
}

Then I have another function to actually create a div object and write all the parsed data. If I was only doing it in one function I could just have it all encapsulated in one onload, but if I'm doing multiple executions of the function that gets and parses the data I figure I'm better off compressing it this way if I can only figure out how to make it stop that one function until the html request is finished.

 
Jun 11, 2007
Buggy Menot 4 posts

Topic: Ideas and script requests / Turning xmlhttprequest response into objects.

Thanks, that worked out great. Another question if you don't mind: I'm planning on using two different functions. One will get the HTML and parse it to pass on to another function, is there a way to make the function fetching the data wait until it's done before continuing? Right now I keep getting undefined as a result, though it works fine if I keep it all as one function.

 
Jun 11, 2007
Buggy Menot 4 posts

Topic: Ideas and script requests / Turning xmlhttprequest response into objects.

I'm using xmlhttprequest to fetch data from an offsite webpage, but I've run into a bit of a snag. The response is just pure html, not an object I can search. The data I'm looking for is in a table and the text length isn't always the same (they're names and rankings), so I can't do a substring effectively. Each field with name, rank, and other info is enclosed in its own <tr> tags within a table, so once I had it in object format it'd be pretty easy to parse, hopefully. Any ideas are appreciated.</tr>

 
Apr 9, 2007
Buggy Menot 4 posts

Topic: Ideas and script requests / Myspace - SHOW bulletins

hi,
i am searching for a script that shows the bulletins permanentely at my myspace page.
as i do have a music account it doesnt show them automatically, i need to click on the "show bulletins" link first. yes, i am interested in the other bulletins, haha.

so if anybody could help me find such a script or even would make one i would be really thankful.

best regards!