Results 1 to 6 of 6

Thread: Image Processing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    manan.20 is offline Junior Member
    Last Online
    30th June 2020 @ 09:19 PM
    Join Date
    22 Jul 2015
    Age
    31
    Gender
    Male
    Posts
    20
    Threads
    3
    Credits
    939
    Thanked
    0

    Lightbulb Image Processing

    A.O.A Pheli bar post kar raha ho Yaha per koi image processing kar sakta ha .C# Mein image processing karna chahata ho .Koi Help kar sakta ha ?????

  2. #2
    AsifSattarvi's Avatar
    AsifSattarvi is offline Advance Member
    Last Online
    12th October 2022 @ 02:54 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,594
    Threads
    104
    Credits
    30,058
    Thanked
    960

    Default

    وعلیکم السلام
    -----
    کس وقت امیج پروسسینگ کرنی ہے؟ تھوڑی تفصیل سے مسلہ تحریر کیا کریں تاکہ ایکسپرٹس کو سوال کا جواب تحریر کرنے میں آسانی ہو
    صرف اتنی سی بات لکھنے سے پر رہنمائی کرنے والا اندھیر میں ہی تیر چلا سکتا ہے تو ہم بھی کوشش کیے لیتے ہیں
    شاید آپ کا کام بن جائے
    -----
    اس میں کچھ تبدیلی کر لیجیے گا اپنی ضرورت کے مطابق
    -------

    ASP.NET redirect a web page with AJAX loading indicator image
    Introduction

    There are times when the web pages that the web applications are redirecting to, might take some time to response or load. For instance, after the users successfully login into a web application, the application will redirect the request to the home page. Imagine that, if the mentioned page contains a dashboard and many personalized WebParts. The requested web page might take some time to respond depending on the users Internet connection speed and the amount of network traffic at any given time. Some users might get impatient and tempted to click on other buttons or links on the page, see figure 1. To overcome this problem, first, redirect the request to an intermediate page, and then load the requested page from there. The main purpose of the intermediate page is to display an AJAX loading indicator image (figure 2), while the users wait for the requested web page to respond.
    Figure 1 Figure 2
    no loading indicator with loading indicator

    Implementation

    Create an HTML page and name it Redirecting.html, add an image tag in the body section and wrap it in a div element. See listing 1

    Listing 1
    ?
    <div style='position:absolute;z-index:5;top:45%;left:45%;'>
    <img id="imgAjax" alt="loading..." title="loading..." src="images/ajax-loading.gif" style="width: 100px; height: 100px" /><br /> <br />
    </div>

    <div style='position:absolute;z-index:5;top:45%;left:45%;'>
    <img id="imgAjax" alt="loading..." title="loading..." src="images/ajax-loading.gif" style="width: 100px; height: 100px" /><br /> <br />
    </div>

    Add the JavaScript shown in listing 2 below the div tag. In this JavaScript, we have two global variables namely querystring and page, and a public function called toPage. After reading the JavaScript best practices article, I decided to employ the JavaScript module pattern. I have created a namespace called redirect to wrap the mentioned public variables and function. The variable querystring will return the query string value in the current URL. The page variable will return the substring of the querystring from index of "=" to the end of the string. The purpose of the function toPage() is to append a Header to refresh the web page for browsers other than Internet Explorer (IE). If the browser type is IE and its version is greater than or equal to 4, then use the location.replace function to replace the current URL with new location URL. The redirect.begin() will invoke the toPage() method.

    Listing 2
    ?
    <script type="text/javascript">
    /* <![CDATA[ */
    this.focus(); //focus on new window
    redirect = function() {
    var querystring = window.location.search.substring(1); //query string
    var page = querystring.substring(querystring.indexOf('=') + 1, querystring.length);
    function toPage() {
    if (page !== undefined && page.length > 1) {
    document.write('<!--[if !IE]>--> <head><meta http-equiv="REFRESH" content="1;url=' + page + '" /><\/head><!--<![endif]-->');
    document.write(' \n <!--[if IE]>');
    document.write(' \n <script type="text/javascript">');
    document.write(' \n var version = parseInt(navigator.appVersion);');
    document.write(' \n if (version>=4 || window.location.replace) {');
    document.write(' \n window.location.replace("' + page + '");');
    document.write(' document.images["imgAjax"].src = "images/ajax-loading.gif"');
    document.write(' \n } else');
    document.write(' \n window.location.href="' + page + '";');
    document.write(' \n <\/script> <![endif]-->');
    }
    }
    return {
    begin: toPage
    }
    } ();

    redirect.begin();

    /* ]]> */
    </script>


    <script type="text/javascript">
    /* <![CDATA[ */
    this.focus(); //focus on new window
    redirect = function() {
    var querystring = window.location.search.substring(1); //query string
    var page = querystring.substring(querystring.indexOf('=') + 1, querystring.length);
    function toPage() {
    if (page !== undefined && page.length > 1) {
    document.write('<!--[if !IE]>--> <head><meta http-equiv="REFRESH" content="1;url=' + page + '" /><\/head><!--<![endif]-->');
    document.write(' \n <!--[if IE]>');
    document.write(' \n <script type="text/javascript">');
    document.write(' \n var version = parseInt(navigator.appVersion);');
    document.write(' \n if (version>=4 || window.location.replace) {');
    document.write(' \n window.location.replace("' + page + '");');
    document.write(' document.images["imgAjax"].src = "images/ajax-loading.gif"');
    document.write(' \n } else');
    document.write(' \n window.location.href="' + page + '";');
    document.write(' \n <\/script> <![endif]-->');
    }
    }
    return {
    begin: toPage
    }
    } ();

    redirect.begin();

    /* ]]> */
    </script>
    Using the Code
    ?

    Response.Redirect("Redirecting.html?page=test.aspx ");

    <a href="Redirecting.html?page=test.aspx" target="_blank"> Redirect and Open on new page</a>

    //requested web page with multiple query string
    <a href="Redirecting.html?page=http://www.amazon.com/gp/offer-listing/059610197X?tag=asp-net-20&linkCode=sb1&camp=212353&creative=380553">
    Redirect with multiple query string</a>



    Response.Redirect("Redirecting.html?page=test.aspx ");

    <a href="Redirecting.html?page=test.aspx" target="_blank"> Redirect and Open on new page</a>

    //requested web page with multiple query string
    <a href="Redirecting.html?page=http://www.amazon.com/gp/offer-listing/059610197X?tag=asp-net-20&linkCode=sb1&camp=212353&creative=380553">
    Redirect with multiple query string</a>
    Points of Interest

    When I tested this JavaScript on browsers other than Internet Explorer, the image did not render correctly. Injecting a Header to refresh the page instead of calling the location.replace or location.href solves the problem.

    I encapsulated the JavaScript in a HTML page because the whole process does not require server side programming and I can reuse it in others web applications that are written in different programming languages.

    On IE 6, the order of the lines shown below is very important. If we place 2 before 1, the image will not display on IE 6. The current order works fine on both the IE 6 and 7.
    1) document.write(' \n window.location.replace("' + page + '");');
    2) document.write(' document.images["imgAjax"].src = "images/ajax-loading.gif"');

    Conclusion

    I hope someone will find this tips useful. If you find any bugs or disagree with the contents, please drop me a line and I'll work with you to correct it. I would suggest downloading the demo and explore it in order to grasp the full concept of it because I might have left out some useful information. Tested on IE 6.0/7.0, Firefox, Google Chrome, Apple Safari 4.0.4, Verizon BlackBerry Storm

    Tested on IE 6.0/7.0/8.0, Google Chrome, Firefox, Safari

    Name:  loading.png
Views: 360
Size:  1.5 KB
    output


  3. #3
    AsifSattarvi's Avatar
    AsifSattarvi is offline Advance Member
    Last Online
    12th October 2022 @ 02:54 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,594
    Threads
    104
    Credits
    30,058
    Thanked
    960

    Default

    باقی ایکسپرٹس کا انتظار فرمائیں وہی بہتر ریپلائی دے سکیں گے اس حوالے سے
    تب تک اس کو سمجھیں اور چیک کریں شاید ہمار ی کوشش آپ کے کام آسکے

  4. #4
    AAMIR987654's Avatar
    AAMIR987654 is offline Senior Member+
    Last Online
    7th March 2020 @ 08:14 PM
    Join Date
    01 Feb 2012
    Age
    31
    Gender
    Male
    Posts
    31
    Threads
    1
    Credits
    1,111
    Thanked
    0

    Default

    hello dear members mein yaha pe c++ sy software banany ke tutorial shura karna chahta hun kya mujhy shuru karny chahye mein ne aj tak kisi forum pe is tarha ka koi course nai dekha hai ap mjhy mere is number per bta sakty hain kyun ke mein forum pe buhat kam online hota hun
    zero 3 four 4 seven 4 three 6 three 1 four

  5. #5
    Akmal Hussaini is offline Junior Member
    Last Online
    21st June 2017 @ 02:23 PM
    Join Date
    16 Jun 2017
    Location
    Gujranwala
    Gender
    Male
    Posts
    3
    Threads
    0
    Credits
    147
    Thanked
    0

    Default

    Jee Bro Jee Neiki Aur Pooch Pooch, Karein Shuru Mein Bhi Seekhna Chahta Hon

  6. #6
    zahra098's Avatar
    zahra098 is offline Senior Member+
    Last Online
    22nd August 2019 @ 04:20 PM
    Join Date
    01 Dec 2017
    Age
    32
    Gender
    Male
    Posts
    306
    Threads
    12
    Credits
    1,383
    Thanked
    7

    Default

    nice sharing its amazing one keep posting
    any site link is not allowed in signatures.

Similar Threads

  1. need book fundamentals of parallel processing
    By sameermengal in forum E-Books
    Replies: 3
    Last Post: 20th September 2015, 11:51 AM
  2. Textile Processing
    By Rizwan Anjum in forum Classes
    Replies: 4
    Last Post: 11th February 2015, 11:22 PM
  3. exception processing message error
    By PARIKHAN in forum Ask an Expert
    Replies: 2
    Last Post: 14th September 2011, 01:09 PM
  4. DIP ( Digital image processing )
    By itshakeel23 in forum Introduction
    Replies: 7
    Last Post: 16th January 2010, 03:24 AM
  5. Urdu Language Processing
    By imran sdk in forum General Discussion
    Replies: 3
    Last Post: 20th November 2009, 03:38 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •