Buying I will pay $25 to first person to post a fix for javascript error in my page.

Discussion in 'Programming' started by webnetsecure, Jun 28, 2010.

  1. #1
    Here is a quick $25 for a small syntax error regarding a semi-colon in javascript on one of my pages.

    I am getting the error below. I don't have time to go track it down right now so I will pay first person with a solution. The answer must be posted to this thread and not PMed to me so its clear to everyone who was first.

    Thanks, Doug

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C)
    Timestamp: Mon, 28 Jun 2010 14:35:30 UTC


    Message: Expected ';'
    Line: 994
    Char: 16
    Code: 0
    URI: http://www.webnetsecure.com/How_to_stop_wig_from_moving_on_head-qna34817.html


    Message: Expected ';'
    Line: 994
    Char: 16
    Code: 0
    URI: http://www.webnetsecure.com/How_to_stop_wig_from_moving_on_head-qna34817.html


    Message: Expected ';'
    Line: 994
    Char: 16
    Code: 0
    URI: http://www.webnetsecure.com/How_to_stop_wig_from_moving_on_head-qna34817.html

    Message: Syntax error
    Line: 1043
    Char: 15
    Code: 0
    URI: http://www.webnetsecure.com/How_to_stop_wig_from_moving_on_head-qna34817.html
     
    webnetsecure, Jun 28, 2010 IP
  2. andysyme

    andysyme Member

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Looking fine on mine - both IE and FF. Do I win? :p
     
    andysyme, Jun 28, 2010 IP
  3. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #3
    <script type='text/javascript'>
    at every place

    Change this to
    <script type="text/javascript">
     
    kmap, Jun 28, 2010 IP
  4. Orbital

    Orbital Peon

    Messages:
    107
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 2
    As Buyer:
    100% - 0
    #4
    looks good here too.. I'm using Chrome
     
    Orbital, Jun 28, 2010 IP
  5. codemaster263

    codemaster263 Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Fine on FF 3.6.3/Ubuntu as well as Chromium/Ubuntu
     
    codemaster263, Jun 28, 2010 IP
  6. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #6
    <input type="submit" name="btnSubscribe" value="Subscribe" onClick="javascript:subscribeuser('34817','', this.form);return false"/>
    replace it by
    <input type="submit" name="btnSubscribe" value="Subscribe" onClick="javascript:subscribeuser('34817','', this.form);return false;"/>

    Regards

    Alex
     
    kmap, Jun 28, 2010 IP
  7. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    take a look at the code shown here:

    <textarea id="newtext" onchange="showval(34817,,1)" onfocus="intervalID = setInterval('showval(34817,0,0);', 2000);" onblur="clearInterval(intervalID);" rows=4 style="width:400px;font-family:arial,helvetica,verdana;font-size:12px"></textarea>

    it should have a value like:
    showval(34817,123,1)
     
    gapz101, Jun 28, 2010 IP
  8. kishore415

    kishore415 Well-Known Member

    Messages:
    1,462
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    160
    As Seller:
    100% - 0
    As Buyer:
    25.0% - 1
    #8
    <textarea id="newtext" onchange="showval(34817,,1)" onfocus="intervalID = setInterval('showval(34817,0,0);', 2000);" onblur="clearInterval(intervalID);" rows=4 style="width:400px;font-family:arial,helvetica,verdana;font-size:12px"></textarea>

    on the above line..the below code should be changed

    onchange="showval(34817,,1)"

    to

    onchange="showval(34817,'',1)"

    for

    Message: Syntax error
    Line: 1043
    Char: 15
    Code: 0

    if the parameter doesn't have any value please enclose it with just ''
     
    kishore415, Jun 28, 2010 IP
  9. webnetsecure

    webnetsecure Active Member

    Messages:
    168
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    Hey guys i dont have the time to try stuff. Really wish I did. I am swamped. Simply do a save-as to your local HD and try out your solutions and post when Internet Explorer doesn't give this error. (I think its an ie specific error). Then you can report that you have a solution. Right now its just a guess, which I can do too, but I just don't have the time. I am really under the gun.
     
    webnetsecure, Jun 28, 2010 IP
  10. kishore415

    kishore415 Well-Known Member

    Messages:
    1,462
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    160
    As Seller:
    100% - 0
    As Buyer:
    25.0% - 1
    #10
    Yes..frnd..I did the same thing..saved it from your source and verified...if you fix the above code it works without any errors..
     
    kishore415, Jun 28, 2010 IP
  11. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #11
    <TEXTAREA id=newtext onblur=clearInterval(intervalID); style="FONT-SIZE: 12px; WIDTH: 400px; FONT-FAMILY: arial,helvetica,verdana" onfocus="intervalID = setInterval('showval(34817,0,0);', 2000);" rows=4 onchange=showval(34817,,1)></TEXTAREA>

    replace by

    <TEXTAREA id=newtext onblur=clearInterval(intervalID); style="FONT-SIZE: 12px; WIDTH: 400px; FONT-FAMILY: arial,helvetica,verdana" onfocus="intervalID = setInterval('showval(34817,0,0);', 2000);" rows=4 onchange='showval(34817,0,1);'></TEXTAREA>
    error is gone now

    I have tested it


    Regards

    Alex
     
    kmap, Jun 28, 2010 IP
  12. webnetsecure

    webnetsecure Active Member

    Messages:
    168
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    Kishore 415 posted the first working solution that was tested although others were certainly on the same track. Please pm me your paypal so I can send payment.
     
    webnetsecure, Jun 28, 2010 IP
  13. kishore415

    kishore415 Well-Known Member

    Messages:
    1,462
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    160
    As Seller:
    100% - 0
    As Buyer:
    25.0% - 1
    #13
    Thanks...paypal sent to your PM...
     
    Last edited: Jun 28, 2010
    kishore415, Jun 28, 2010 IP
  14. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #14
    ?? i thought i was first :D
     
    gapz101, Jun 29, 2010 IP