Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296519

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:02:56+00:00 2026-06-08T15:02:56+00:00

I have some odd experience with my browser here. this code below already uploaded

  • 0

I have some odd experience with my browser here. this code below already uploaded to this URL : http://roberthanson.net/index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function($) {
        $('ul li').click(function() {
            $('input#shareto').val($(this).data('val'));
        });
    });​
</script>
</head>

<body>

<form>
<ul>
<li data-val="0-1">
<a href="#" title="" class="selected"><span class="to-admin">Administrator</span></a>    
</li>

<li data-val="1-1">
<a href="#" title=""><span class="to-finance">Finance</span></a>    
</li>

<li data-val="1-0">
<a href="#" title=""><span class="to-technician">Technician</span></a>
</li>

<li data-val="0-0">
<a href="#" title=""><span class="to-lawyer">Legal</span></a>    
</li>
</ul>
<input id="shareto" type="text" value="1-0" name="shareto">
​
​</form>​​​​​​​​

</body>
</html>

when I open with Microsoft Internet Explorer and Firefox on Linux, those code works perfectly. the value changes based on LI tag clicked. but I don’t see this behavior happen on my Mac. All my browser (Safari, Chrome and even Firefox itself) installed on my Mac doesn’t give same result as I have on IE or Firefox.

Am I the only one who have this experience? or do we have some extra code to make it works for Mac? thanks before.

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:03:00+00:00Added an answer on June 8, 2026 at 3:03 pm

    Ok, I tried your code, and it doesn’t work for me on Chromium on Linux.

    The error I get is Unexpected token ILLEGAL on line 12.

    I copy pasted your code to vim to check things like bracket matching and other stuff that can cause these issues. upon doing so I saw this in my vim buffer:

    `<200b>`
    

    Which is what vim does when it can’t render a character. A quick look on Wikipedia shows that U+200b is a ZWSP, or a Zero-Width SPace. I have no idea how an invisible character come into your code, but it seems that JavascriptCore, the Webkit javascript engine doesn’t like those characters, but V8 and SpiderMonkey(I think? The FF one anyway) are fine with it.

    In short, the fix is to delete the invisible character after the }); at the end of the script block. You can do this the same way you delete any character, you just won’t see a difference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this asp.NET web site that for some odd reason doesn't want to
Something odd going on here. I have some JS that posts to a ASP.NET
I have a rather odd scenario here, hoping someone might have some insight. I
I am having some odd issues here.... I have the two following scripts: First,
I have some rather odd behavior in my D program that I've narrowed down
Ok, I have some rather odd behavior in one of my Projects and I'm
Ok, so I have some problems with C++ iostreams that feels very odd, but
I have some code on two systems running kernel 2.4.20 and kernel 2.4.38 .
I have some code that will change the background color of a specific label
I have found some odd behaviour while I was using the PHP function in_array()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.