GetAFreelancer.com - Interface 1.7

By manixrock Last update Mar 15, 2009 — Installed 198 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 5 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
manixrock Script's Author

@JoeSimmons:

It can not use XPath to dinamicaly fetch the table rows as it parses them because it changes them which makes the XPath give an error on the next inerateNext() call. I've changed the initial call to use XPath instead of jQeury, but the speed difference is negligible.

About the sorting option I don't think it's a very useful feature in itself, which is why I commented it.

 
JoeSimmons Scriptwright

Cool thanks. You also should consider using xpath instead of getElementsByTagName, and just add a simple option to the top whether or not to use sorting or not then just add an if() statement around that for() loop.

 
manixrock Script's Author

@JoeSimmons:

just look at the source code at the end where the following comment is:
// uncomment this to automatically sort the projects by their weights
Uncommenting that section will sort the rows by their "weight" (or "quality"), which is a small formula I added to show a combination of your chance to win the bid (how many other bidders there are, time of start and end of the project), if the project is your specialty (the number of job types fitting yours) and how much money it will bring. This is the same formula I use to place the bar showing the weight of the project.

You can simply tweak that section to fit what you need. Just use the existing variables jobsMine and jobsTotal to sort it the way you want.

 
JoeSimmons Scriptwright

Nice. Think there's any way you would make a script that re-arranges the table rows so that the projects with the closest area of expertise would be at the top? I would love that script.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel