Go to Post Remember to drive it like you stole it but be sure that it is in OVERDRIVE. - Steve W [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #19   Spotlight this post!  
Unread 05-02-2011, 00:56
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: your favorite equations for build seasion

A nice little as3 script for parsing the FIRST website

PHP Code:
var temp:ArrayCollection ArrayCollection(event.result);
                var 
tempString:String "";
                var 
sentUrl:String temp.getItemAt(0) as String;
                var 
eid:String sentUrl.substr(sentUrl.search("eid=")+4,sentUrl.length);
                
eid eid.substr(0,eid.search("&"));
                for(var 
n:int 1temp.lengthn++){
                    
tempString+=temp.getItemAt(n);
                }
                
tempString tempString.substr(tempString.search('<tr bgcolor="#FFFFFF">'),tempString.length);
                
tempString tempString.substr(0tempString.search('</table>'));
                var 
i:int tempString.search('\t');
                while( 
!= -1){
                    
tempString tempString.replace('\t',' ');
                    
tempString.search('\t');
                }
                
tempString.search('<br />');
                while( 
!= -1){
                    
tempString tempString.replace('<br />',' ');
                    
tempString.search('<br />');
                }
                
tempString.search('nowrap');
                while( 
!= -1){
                    
tempString tempString.replace('nowrap',' ');
                    
tempString.search('nowrap');
                }
                
                
tempString "<table>" +tempString+"</table>";
                var 
xml:XML XML(tempString);
                for(
0xml.children().length(); i++){
                    var 
location:String xml.child(i).child(0).child(0).toString();
                    var 
name:String xml.child(i).child(1).child(0).toString();
                    var 
url:String "https://my.usfirst.org/myarea/index.lasso?page=event_details&eid="+eid+"&-session=myarea:C77D640504fbb2FB82SVt2270655"
                    
var number:String xml.child(i).child(2).child(0).child(0).toString();
                    var 
service:EventService = new EventService();
                    
service.addMember(parseInt(eid),parseInt(number));
                } 
__________________
"Never let your schooling interfere with your education" -Mark Twain
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi