Can't send Tokbox "signals" on Firefox - javascript

I can send use Tokbox to send "signals", i.e., text messages, on Chrome v36 but not Firefox v32.
Unfortunately Tokbox's JS library TB.min.js is minified so I can't easily figure out the problem. Here's the errors I'm seeing:
no element found ClientEvent:1
TypeError: c is undefined TB.min.js:331
Line 331 of TB.min.js:
c.updateStream(a,b,d)}.bind(this),destroyStream:function(a){c.destroyStream(a)}.bind(this)};this.signal=function(a,b){c.signal(a,b)};

Just tested OpenTokRTC chat (built 100% with OpenTok) on firefox and chrome, they seem to be working
Here's the sample code of how OpenTokRTC is using signaling for chat: https://github.com/opentok/OpenTokRTC/blob/master/public/js/room.js#L297

Related

RecordRTC audio+canvas recording does not run

I am trying to implement the RecordRTC javascript library, the audio+canvas recording one in particular, but for some reason the demo code does not run on my browser at all. I have tried chrome, IE, and Firefox.
The demo is: https://www.webrtc-experiment.com/ffmpeg/audio-plus-canvas-recording.html
My console shows this message:
console
I tried using this previous help RecordRTC.js:37 Uncaught MediaStream is mandatory
That fixed the console error I got, but the demo still didn't do anything.
Console always ends at audio/wav -> 246 KB.
Please help.Thanks.

TypeError: e.postMessage is not a function

I'm trying to call window.postMesage from my java application for cross-origin communication with qlikview.
I am getting below mentioned java scrip error when I ma usinf latest Firefox 23 or 24
TypeError: e.postMessage is not a function
But same code work for Firefox version 10.
Can any one help? Let me know what i m missing. Is firefox has removed postMessage support or the api has been changed

enabling Firefox 5.0 javascript dump()

I'm going through firefox extension writing bootcamp and somewhere along the way the video's author is speaking about switching browser.dom.window.dump.enabled in about:config to true. This option is no longer present in firefox 5.0. From what I read during my google searches, in ff 4.0 you had to create this preference yourself, and it seems like in firefox 5.0 it doesn't work anymore - I can't seem to dump information to firefox error console any more (regardless of whether console2 is enabled or not).
Relevant code:
Here's how I'm launching the browser:
/usr/bin/iceweasel -profile /some/path -no-remote -jsconsole
And here's the code that only shows the alert, without writing anything to the error console:
onCommand: function(event) {
toJavaScriptConsole("toJavaScriptConsole: hello world");
dump("Hello world!\n");
alert("Hello world!\n");
}
Any idea what I can do to have working dump() called from the ff extension I'm working on in firefox 5.0?
You confused the error console with plain linux console - if you run firefox from terminal you should see the dumps right there.
in-depth explanation
This preference was never present by default - you always had to create it and set to true. Also, the output doesn't go to Error Console, it is rather visible in the terminal you start Firefox from. If you happen to test on Windows you should specify -console command line flag to open a terminal window for the output, on Linux simply starting Firefox from a terminal window will do.

(NS_ERROR_DOCUMENT_NOT_CACHED) through firefox same code works for safari

I am getting (NS_ERROR_DOCUMENT_NOT_CACHED) error when I try to access the Javascript code through firefox.I get this error in the contents tab of HTTPFOX.
I googled and set the parameters of browser in config file as specified in this site but it still doesn't work.
http://code.google.com/p/httpfox/issues/detail?id=20
Can somebody suggest whats going wrong since the same code works fine for safari browser..
If anyone is interested in a solution to this, I believe it's to do with the plugin noscript. Disabling it fixed this, but I have yet to work out what part of noscript was causing the issue. Will update if I find out.
Edit:My issues was with a twitter auth callback. In the Advanced settings of noscript under ABE, in the SYSTEM ruleset, on the line "Accept from LOCAL" I added "*.twitter.com". This allowed callback requests from *twitter.com to return to a local address.
On my macbook I had to uninstall firefox completely to correctly get the content of an ajax response with httpfox. This also implies to remove the firefox profile bij removing this Firefox folder (I could only find it via the terminal and not via Finder):
/Users/<YOURUSER>/Library/Application Support/Firefox
Then install firefox again and install the httpfox add-on.
I tried many cache settings also by entering about:config in the firefox URL however without succes. Be aware that removing the profile settings like I describe will also remove all your personal firefox customization. It concerned firefox 18.0.2 and httpfox 0.8.11.
We used to get the same error when our JavaScript made an XMLHTTPRequest to the server. On the server side, we had java, and the java response, the content type was not explicitly set to "text/html". When that was done
resp.setContentType("text/html");
the error went away.

Why doesn't these links work in IE7?

I don't understand why I cannot click the tags on top in IE7 on this website
It says javascript error but I debugged with Firefox and I don't get any error...
Could you give me some help ?
Here is where it crashes on IE :
document.getElementById("").SetReturnValue(__flash__toXML("http://www.sanstitre.ch/drupal/sites/default/files/files/projects/WM 1976/videos/P1030297.flv","460","345")) );
document.getElementById("") returns null
You can try debug this problem with Internet Explorer Developer Toolbar http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038 or Fiddler tool (see http://www.fiddler2.com/fiddler2/) which works as a proxy and can help also in the most of situation. At least you will see whether and what HTTP trafic IE send.
With fiddeler you will be able compare HTTP trafic in IE7 with the trafic in Firefox.

Categories