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

  • Home
  • SEARCH
  • 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 8782431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:33:29+00:00 2026-06-13T20:33:29+00:00

This is my HTML beginning: <!DOCTYPE html> <html> <head> <script type=text/javascript src=/Scripts/jquery-1.8.2.min.js></script> <script src=/Scripts/jquery.signalR-0.5.3.js

  • 0

This is my HTML beginning:

<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="/Scripts/jquery-1.8.2.min.js"></script>
    <script src="/Scripts/jquery.signalR-0.5.3.js" type="text/javascript"></script>
    <script src="/Scripts/MyScript.js" type="text/javascript"></script>

    <title>Some title</title>
</head>

I tried adding just before </head>:

<script type="text/javascript" src="/signalr/hubs"></script>

But it doesn’t help.

I also tried to remove everything besides jQuery and signalR scripts.

Please note: All scripts, including jquery.signalR-0.5.3.js (and hubs, if I add it) are loaded successfully (I can single step it with Chrome “Developer Tools”).

So why I don’t have $.connection object defined ?

Edit:

I cleaned all unnecessary code, and found out meanwhile that:

  1. $.connection does exist when I’m in MyScript.js, but I tried to test it first using the chrome console. In the console it does not exist… I don’t understand why.
  2. I save $.connection for the moment, in order to test it, in someGlobalObj:

    someGlobalObj = $.connection;
    

    and that works…

So my updated question would be: how-come $.connection is visible during my script, but invisible in the chrome console ($, or jQuery are globals) ?

  • 1 1 Answer
  • 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-13T20:33:30+00:00Added an answer on June 13, 2026 at 8:33 pm

    how-come $.connection is visible during my script, but invisible in the chrome console ($, or jQuery are globals)?

    There are only two explanations: Something that executes after your script (a timeout, some other script)…

    • …deletes the connection property of the jQuery object
    • …overwrites the global $ (and even jQuery?) variables with similiar object(s) which don’t have the connection property.

    The second one could be the case if you also use other libraries (like Prototype).

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

Sidebar

Related Questions

this is a simple html file: <!DOCTYPE html> <html> <head> <title>Test Uploading Func.</title> <script
I have a PHP code: if($billing_total>$limit_to_send){ echo '<script type=text/javascript> window.onload = function() { alert(Sorry,
Given this structure for a websinte <html> <head> <!-- CSS at the beginning--> <link/>
I am working with this script: http://www.cforcoding.com/2009/05/supercharging-javascript-part-4-caching.html Basically the instructions recommend not to use
I'm trying to use jQuery SVG plugin http://keith-wood.name/svg.html And in the very beginning I
This works: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd> <html xmlns=http://www.w3.org/1999/xhtml xml:lang=en lang=en>
I can do this in JS, but I'm beginning to use JQuery and would
I need to know what is the use of <html> tag from the beginning
On this page: http://flowplayer.org/tools/tabs/slideshow.html Halfway down the page I find this code under the
i have this html page: Code: <html> <!-- ... -->or explicity set the background-color

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.