Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Abubakarsb

@Abubakarsb
About
Posts
134
Topics
67
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Calculate Bitrate of Stream?
    A Abubakarsb

    It is a playback bitrate and For a video stream. I want to check bitrate of streaming whether bitrate is good enough to play the movie or not? I still not clear plz ask again.

    C# question csharp javascript tutorial

  • Calculate Bitrate of Stream?
    A Abubakarsb

    Hello, Hope you all are doing great. Does anyone of you know that how can I calculate bit rate of a stream? I am using c# and javascript. Please guide. Thanks. Kind Regards, Abubakar

    C# question csharp javascript tutorial

  • Window Media Player stop() in Firefox
    A Abubakarsb

    Thanks for you reply. The thing is I need player in a complete different way. Infact I want to implement a technique which doesn't work with normal player that's y I added a layer on player and then control its functions. I have finished everything and its work great in IE6 and IE7 but not in Firefox. So I just need a button or image where I can call player functions "onClick" event. Thanks.

    ASP.NET hardware question

  • Solution for Use of Webservices in Firefox using Javascript
    A Abubakarsb

    I already voted your message. I posted a new message in forumn, may be you already read it if u didn't I am repeating here again. if you know its answer please reply its answer. Thanks. QUESTION I want to use embedded Window Media Player functions like stop(), pause() in Firefox. Does anyone have an idea? I checked following two ways. They are working good in IE6 and IE7 but not in Firefox. (1) document.Player.controls.pause(); (2) document.getElementById("Player").controls.pause(); Please tell me a solution in Firefox. Thanks. Abuabakr

    ASP.NET csharp javascript html tools xml

  • Window Media Player stop() in Firefox
    A Abubakarsb

    I want to use embedded Window Media Player functions like stop(), pause() in Firefox. Does anyone have an idea? I checked following two ways. They are working good in IE6 and IE7 but not in Firefox. (1) document.Player.controls.pause(); (2) document.getElementById("Player").controls.pause(); Please tell me a solution in Firefox. Thanks. Abuabakr

    ASP.NET hardware question

  • Solution for Use of Webservices in Firefox using Javascript
    A Abubakarsb

    This code has been checked in IE6, IE7 and Firefox and it works perfectly in all of them. Here is the Javascript code which you need to put within <script> tag. var req; var isIE; function initRequest() { if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { isIE = true; req = new ActiveXObject("Microsoft.XMLHTTP"); } } //url will be Web Service URL. function CallWebService(url,params) { initRequest(); req.onreadystatechange = processRequest; req.open("POST", url, true); if(params!=null)req.setRequestHeader("Content-length", params.length); req.setRequestHeader("Connection", "close"); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); req.send(params); } function processRequest() { if (req.readyState == 4) { if (req.status == 200) { var message = req.responseXML; //Result in XML. // Accessing the tag 'string' is name of node var myNodes=message.getElementsByTagName("string"); // Getting actual result of webservice and saving it in a variable which can be use anywhere in page. // alert("Result of webservice is : "+myNodes.item(0).firstChild.nodeValue);// Checking result var serviceValue=myNodes.item(0).firstChild.nodeValue; } } } Here is the Html code which you can put within <body> tag. <%--<input type="button" value="Call .NET Web Service!" onclick="CallWebService('http://pathOfYourServer/nameOfWebService.asmx/testWebService1',null)" /> <input type="button" value="Call .NET Web Service with parameters!" onclick="CallWebService('http://pathOfYourServer/nameOfWebService.asmx/testWebService2','a=Michael&b=5')" /> You can also pass dynamic values like below CallWebService("http://pathOfYourServer/nameOfWebService.asmx/testWebService2","name1="+value1+"&name2="+value2+"&name3="+value3+"") where name(1,2,3) is the name of your variable and value(1,2,3) is value of respective variable. Note: Number of variables you pass in above line must be same as you defined in the definition of webservice. Here is the webservice code which you need to enter in your webservice file. using System; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; /// /// Summary description for WebService /// [WebService(Namespace = "http://tempuri.org/")] [

    ASP.NET csharp javascript html tools xml

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    Hi, I used a new webservice now http://192.114.169.164/customers/nl/Hotmale/PPMService.asmx[^] and this is working really good in all the browsers. Today at night I will implement my real code and I hope it will work there as well. If not I will bother u again (Don't mind). If it works I will post its soution in the forums as well. Thanks a lot for your consistent help. GOD BLESS U. Bye

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    Friend, I put the project online. I put the same code in it which you sent me. You can also check urself, it is not returning right status. It is behaving dramatically different in IE and Firefox. In IE it is returning status value 500 while 411 in Firefox. I request you to check it in both IE and Firefox. In following file I am calling websevice by name only without full URL as both files (Webservice and .aspx file) exist in same folder. http://192.114.169.164/Customers/NL/testWebservice/Default.aspx[^] And in the following page I am calling webservice through full URL path with IP etc. http://192.114.169.164/Customers/NL/testWebservice/testWebService.aspx[^] One thing more both these files work perfectly on local computer but not on internet. Please check both links and tell me where I am doing wrong. Plz.

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    Sorry Brother I got little bit more excited. I am having this error message when I tried to use my code. "Problem:Internal Server Error" Do u know what could be reason? My webservice exists at following address and I am calling this from the same location. Here is code. <input type="button" value="Call .NET Web Service!" onclick="CallWebService('http://192.114.169.164/customers/nl/Hotmale/PPMService.asmx/testWebService','testVar=SUCCESS')" /> Any Idea? Please suggest. Thanks. Abubakar

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    OH, Brother It is working now in Firefox as well. This is great. Let me have some more tests tomorrow with my webservice then I will post final in the forum. Meanwhile If I have poblem I will come to you again please don't mind. In the end, I just want to say U a lot of THANKS for your time and nice replys. You don't know how much you help me. GOD ALWAYS BLESS U and KEEP U HAPPY. See U Tomorrow then, Have a nice Evening. Bye Abubakar

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    I tried same way as u said even with your code and I created a new project as well. It is really strange. I am using following statement. It works perfectly in IE6 and IE7 as well but unfortunately not in Firefox which I really need. Also tell me how can I get value from that specific xml tag but this is next step. function processRequest() { if (req.readyState == 4) { if (req.status == 200) { var message = req.responseXML; //Result in XML. alert(message.xml); } } }

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    Hi Friend, I just checked one thing, In following code I am getting status value 500 but not 200 which is require. so what could be wrong? function processRequest() { if (req.readyState == 4) { alert(req.status); } }

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    My project is not so big, I just need to call some webservices and return their data to javascript. That's all. I think it could be best solution which we are trying because It is almost done.

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    Thanks for code. So far It is great there in no javascript error in IE6 and Firefox as well. Only thing which I am missing is that I couln't find any code to receive value from webservice and use here in Javascript. Please tell me how can I catch value returned by webservice? I also tried this but in vain. function processRequest() { if (req.readyState == 4) { if (req.status == 200) { var message = req.responseXML; //Result in XML. alert(message); } } }

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    Thanks a lot for brief reply Michael, I checked it, this is so far so good. There is no javascript error which is great. Now I want to call a "WebMethod" named "testWebService" from my webservice and want to pass and get some values from "testWebService". How is it possible? Plz.

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    HI, Thanks for this article, I have already seen this article and tried as well. It gives me error on very first line. var p = new SOAPParameter(value, name); I think browser doesn't recognise this. I neither understand this line, It will be really nice if you explain this little bit more or give a short example; "The rest is business as usual: Instantiate the SOAPCall class, set the required properties, call encode(), call asyncInvoke(), implement a callback function, and you are done." Regards, Abubakar

    ASP.NET question help csharp javascript

  • Second Post but no Reply (Webservice in Firefox)
    A Abubakarsb

    Good Morning, Friends, This is first time that I haven't got any reply of my post even after 26 hours nomally I get within one hour. My question could be tricky but not lengthy (I think) so here I am repeating my question again. I hope I will get answer this time. Please. It is urgent. I am calling a .Net webservice in javascript by using "webservice.htc". It is working perfectly in IE 6 and 7 but unfortunately not in Firefox. I need to fix this problem in firefox. Please tell me solution how can I call a webservice using javascript in Mozilla Firefox browser? Please. Kind Regards, Abubakar

    ASP.NET question help csharp javascript

  • Call a Webservice in Firefox
    A Abubakarsb

    Hi Friend, I am calling an ASP.net 2.0 webservice in javascript by using "webservice.htc". It is working perfectly in IE 6 and 7 but unfortunately not in Firefox. I need to fix this problem in firefox. Please tell me solution of it. How can I fix it? Please. Kind Regards, Abubakar

    ASP.NET help question csharp javascript asp-net

  • Need really Urgent Plz (Next and Previous Button in Media Player)
    A Abubakarsb

    Hi Frinds, I really need your help. I am trying to fix a problem with media player for last 4 days but still I could not found any solution. Problem is that I have a media player on my web page. I am passing a playlist "Myplaylist.asx" to the player, this player just have one "Entry" inside it. I want when user clicks "Next" button then player should play the same media file. it works fine with "Previous" button but not with "Next". I don't know why? If I am able to find an event that could be fire when user clicks on "Next" and "Previous" button then it is also good. I am quite open to have solution. Please tell me anything if you know please soon. it is really urgent. Thanks Abubakar

    ASP.NET help question

  • Logout Automatically
    A Abubakarsb

    Hi, I posted this kind of thread a few days before as well although I got replies but unfortunately my problem is still there so here I am repeating my question. My requirement is that when user closes the browser window it should logout autmatically. The problem is that I am new in Visual Studio 2005 (Asp.net 2.0) and a developer already made this, I am just updating it. I don't have any idea how new login system works in VS2005. I really don't know how he is storing or checking that whether user is login or not? I have found following code in commonMaster page. if (Properties.IsLoggedIn) { string cookieName = FormsAuthentication.FormsCookieName; HttpCookie authCookie = Context.Request.Cookies[cookieName]; FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value); MembershipUser mu = Membership.GetUser(); Properties.EndUserGUID = mu.ProviderUserKey.ToString().ToUpper(); DateTime expiration = authTicket.Expiration.AddSeconds(-90); if (expiration < DateTime.Now) { mu.LastLoginDate = DateTime.Now; Membership.UpdateUser(mu); FormsAuthentication.SetAuthCookie(Context.User.Identity.Name, true, "/"); } } If anybody knows about it please help me! Thanks. Bye.

    ASP.NET csharp help question asp-net visual-studio
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups