Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 17th, 2015, 05:58 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2015
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Smile file transfer

hi i need a code for file transfer

i wrote the code like this

Server.connection.si_filetransfer.send(
/* jshint +W106 */
data.to,
sid,
data.filename,
data.file.size,
data.file.type,
function(err) {
if (err) {
return console.log(err) //the error is coming here
}
Server.connection.ibb.open(cn(data.to), sid, Cryptocat.otr.chunkSize, function(err) {
if (err) {
return console.log(err)
}


the error is coming like that

"Error: [object Element]
at Object.Strophe.addConnectionPlugin._fail (http://127.0.0.1:58889/http-services...sfer.js:107:10)
at Object.eval [as handler] (http://127.0.0.1:58889/http-services...min.js:2:19333)
at Object.f.Handler.run (http://127.0.0.1:58889/http-services...min.js:2:15804)
at eval (http://127.0.0.1:58889/http-services...min.js:2:22417)
at Object.f.forEachChild (http://127.0.0.1:58889/http-services....min.js:2:8457)
at Object.f.Connection._dataRecv (http://127.0.0.1:58889/http-services...min.js:2:22250)
at Object.Strophe.Bosh._onRequestStateChange (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp//C/Users/Administrator/AppData/Local/XDK/xdk-scratchdir/2b05c0c1-bf27-465a-9ddb-da90dcdb5336/platforms/ios/www/Js/strophe.min.js:3:6555)"

can any one tell tell me waht is the problem in my code

i am using local server only
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
file transfer using servlets aristrocat.29@gmail.com Servlets 2 February 14th, 2012 07:15 AM
File Transfer Swati Chari Beginning VB 6 1 March 17th, 2008 08:07 AM
File transfer between servers. vskalyan ASP.NET 2.0 Professional 1 September 12th, 2007 08:25 PM
Which is better for file transfer aliirfan84 .NET Web Services 1 April 12th, 2007 09:20 AM
File Transfer PT C# 1 October 24th, 2005 02:12 AM



All times are GMT -4. The time now is 12:47 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.