User Profile

Collapse

Profile Sidebar

Collapse
ahmetsan
ahmetsan
Last Activity: Apr 12 '13, 02:43 PM
Joined: Jan 14 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ahmetsan
    started a topic save a canvas locally in IE JavaScript

    save a canvas locally in IE JavaScript

    Hi I want to save a canvas locally in IE with execCommand("Sa veAs"). Here is my code.
    Code:
     var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");     
     window.win = open (img);
     setTimeout('win.document.execCommand("SaveAs")', 1000);
    However when new window opened the page cannot be displayed. data:image/octet-stream;base64.. . How can I solve this...
    See more | Go to post

  • ahmetsan
    replied to Send email with attachment
    Thank you for your help.
    See more | Go to post

    Leave a comment:


  • ahmetsan
    replied to Send email with attachment
    I meant my target users mostly use IE and have outlook. That is why I am trying to do that.
    See more | Go to post

    Leave a comment:


  • ahmetsan
    replied to Send email with attachment
    Most users will be using IE and for minority I will advice to attach manually.
    See more | Go to post

    Leave a comment:


  • ahmetsan
    started a topic Send email with attachment

    Send email with attachment

    Hi, I want to send email with attachment by using activex for IE.
    I would like to add an element such as <img> or <canvas> which is on my page. How can I do that? here is some code.
    Code:
    var img = canvas.toDataURL("image/png");
    var objO = new ActiveXObject('Outlook.Application');     
    mItm.Attachments.Add(); // should add img??
    Thanks for your helps..
    See more | Go to post

  • $.ajax async:false doesn't work in IE and Firefox, works in Chrome/Safari

    I am trying to measure download speed with ajax call. Here is the my code
    Code:
    var start = new Date();
    $.ajax ({
        url: 'https://www.example.com/perftest/dummyFile1024',
        cache: false,  
        success : function() {
            var total = (new Date() - start)
            alert(total)    
        },
        error : function(jqxhr, status, ex) {}
    })
    It doesn't wait until whole file loaded....
    See more | Go to post

  • ahmetsan
    replied to Download speed test
    Hi Anas, I tried your solution to measure bandwidth test, It works perfect. Thank you.
    Moreover I found something with my code I mentioned above, at the ajax call when I set async:false, anymore it waits to download whole file what was my problem, so I am able to measure download speed with this method as well. However internet explorer and firefox is still the same. chrome, safari works well now. Do you have any idea why it is happening?...
    See more | Go to post

    Leave a comment:


  • ahmetsan
    replied to Download speed test
    That is perfect. I will give a try and let you know about result. Thank you very much...
    See more | Go to post

    Leave a comment:


  • ahmetsan
    replied to Download speed test
    Sorry I am not good for web development and my question with your method how can I load pictures from different servers. for example your code loads 'myimg' which is located at same place with the webpage.
    Code:
    var img = document.getElementById('myimg');
    I use at my methods different URL's to call the files in different servers. Could you give advice how to do that with images. Thanks for your answer...
    See more | Go to post

    Leave a comment:


  • ahmetsan
    replied to Download speed test
    I want to measure download speed not for one server. There will be 3 regions that client can measure download speed from these 3 servers located in these regions. How can I use this image onload property for different servers?
    See more | Go to post

    Leave a comment:


  • ahmetsan
    started a topic Download speed test

    Download speed test

    Hi I am trying to measure download speed from server with ajax call and xmlwebrequest, I download a 1 mb file and check the total time. However it shows just response time from server and doesn't wait until all file loaded for 2 methods I showed below. What am I doing wrong? Any other ways are welcome. Thanks...

    First method I am tring is

    Code:
    var start = new Date();
    $.ajax ({
    url: 'https://www.example.com/perftest/dummyFile1024',
    ...
    See more | Go to post
No activity results to display
Show More
Working...