PeteGoo / Pushqa

An HTTP push messaging library with oData and Linq subscriptions for server side filtering of reactive events
MIT License
51 stars 10 forks source link

Sample Web #7

Closed beatsm closed 11 years ago

beatsm commented 11 years ago

Stock Ticker sample no longer works!

PeteGoo commented 11 years ago

Thanks for reporting it. Seems good here. Can you give me more info? The WPF sample or the javascript one? Errors?

beatsm commented 11 years ago

Hi Peter,

Thanks for the response. I am trying to run the Stock Ticker example in VS 2012. When the page starts nothing happens. Even when I try unchecking the boxes nothing is displayed.

I don't see any errors.

Regards

PeteGoo commented 11 years ago

Hmmm, sounds a bit weird. Can you open the developer tools for your browser (press F12 for chrome) and check the console tab to see if there are any javascript errors?

beatsm commented 11 years ago

Hmm

No Javascript errors but I do have the following which explains why nothing is happening.

Don't know why though!

Failed to load resource: the server responded with a status of 400 (Bad Request) http://localhost:14844/events/Stocks//negotiate?%24filter=(Name+eq+'AMZN')+or+(Name+eq+'AAPL')+or+(Name+eq+'GOOG')+or+(Name+eq+'MSFT')&_=1371722800902

IanYates commented 11 years ago

I've just tried on my machine - seems to be behaving properly for me. VS2012 (running as administrator - not tried as a non-admin although I don't see why it wouldn't work). I've tried IE 10 and chrome whatever - both are happy.

Apart from JS errors are there any errors reported by VS in the output tab? Is your VS set to stop on all exceptions? If not, set it to do so in case there's some exception being raised that's going unnoticed.

beatsm commented 11 years ago

Thanks for your help, could not find any errors but looking at the url. I noticed a double // before negotiate.

changed var connection = $.connection('../events/Stocks/'); to var connection = $.connection('../events/Stocks');

All now works fine.

PeteGoo commented 11 years ago

Nice catch! The connection object comes from the SignalR jQuery extension. Might be worth raising over there.

IanYates commented 11 years ago

I saw your double / and dismissed it - serves me right for not knowing my javascript all that well. Do you know why it affected you and not us? (I'm very far from a javascript expert - my use of Pushqa at the moment is in the beginnings of a client/server ASP.Net / WPF app - C# top to bottom)

beatsm commented 11 years ago

No idea, I just grabbed the whole project and tried to run the examples as I think this would be good for real time Session Storage updates for items a user is interested in.

PeteGoo commented 11 years ago

I've removed the trailing slashes from the connection urls. Still seems to work fine so better be safe this way. Any objections?

IanYates commented 11 years ago

None from me :+1:

beatsm commented 11 years ago

Looks good to me with the new SignalR bits.