A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Yahoo (was How to lookup from file)

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    10
    Yes Sussed it
    I have purched 3.51 and using JS as below

    <SCRIPT TYPE = "text/javascript">
    <!--
    var erlang = (av_call * no_calls) / 3600 ;

    if ( erlang > 0.01 ) lines = 100 ;
    if ( erlang > 0.15 ) lines = 13.33333333 ;
    if ( erlang > 0.46 ) lines = 6.52173913 ;
    if ( erlang > 0.87 ) lines = 4.597701149 ;
    if ( erlang > 1.36 ) lines = 3.676470588 ;
    if ( erlang > 1.91 ) lines = 3.141361257 ;

    no_lines_1 = lines * erlang ;

    no_lines =Math.ceil(no_lines_1) ;

    //-->

    </SCRIPT>

    and this works great the value is compared to the script and the value returned and displayed.

    it seems faster this way as well

    see http://www.winterkit.net/cyber/voipcalc.html

    it still work in progress but its getting there.


  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    Great

    Originally posted by Ian Plain
    Yes Sussed it
    I have purched 3.51 and using JS as below

    <SCRIPT TYPE = "text/javascript">
    <!--
    var erlang = (av_call * no_calls) / 3600 ;

    if ( erlang > 0.01 ) lines = 100 ;
    if ( erlang > 0.15 ) lines = 13.33333333 ;
    if ( erlang > 0.46 ) lines = 6.52173913 ;
    if ( erlang > 0.87 ) lines = 4.597701149 ;
    if ( erlang > 1.36 ) lines = 3.676470588 ;
    if ( erlang > 1.91 ) lines = 3.141361257 ;

    no_lines_1 = lines * erlang ;

    no_lines =Math.ceil(no_lines_1) ;

    //-->

    </SCRIPT>

    and this works great the value is compared to the script and the value returned and displayed.

    it seems faster this way as well

    see http://www.winterkit.net/cyber/voipcalc.html

    it still work in progress but its getting there.

    You don't need
    Code:
    <SCRIPT TYPE = "text/javascript">
    <!--
    when doing JS inside 3dfa

    Knew javascript was the way to go here!
    Glad it worked for you. This was even simpler than what I was thinking, but I thought you had more data.


  3. #3
    Junior Member
    Join Date
    Feb 2002
    Posts
    10

    Re: Great


    You don't need
    Code:
    <SCRIPT TYPE = "text/javascript">
    <!--
    when doing JS inside 3dfa

    Knew javascript was the way to go here!
    Glad it worked for you. This was even simpler than what I was thinking, but I thought you had more data.

    [/B][/QUOTE]

    Hi Thanks for the info
    Oh the data part is actually about 100 lines long I edited it for this. but i built the datapart in excel and exported it to text then pasted it (Nice and easy :-) )

    Now ive just got the interface to tidy up.

    Ian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center