User Profile

Collapse

Profile Sidebar

Collapse
omerbutt
omerbutt
Last Activity: Jan 31 '18, 10:43 PM
Joined: Nov 17 '06
Location: Lahore, Punjab, Pakistan
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • what approach are you using @ikrama , js or php. you can use javascript
    Code:
    string.replace()
    method with a regex to do this .
    See more | Go to post

    Leave a comment:


  • your question is not desriptive enough , none can get what you are saying
    See more | Go to post

    Leave a comment:


  • first of all from your code i can see that you are using relative urls for ajax calls not absolute .

    Secondly when you say
    the application will be used in various departments with varioius urls but same website structure.
    i assume that you are trying to say that your application is not hosted on the web and is accessible within the intranet or the local network only, and you have this application hosted on different computers...
    See more | Go to post

    Leave a comment:


  • omerbutt
    started a topic Gmail SMTP Limit
    in PHP

    Gmail SMTP Limit

    Hi guys i am working on a project in codeigniter and i have configured a gmail account to send emails from that application.

    Now what i want to ask is that gmail has its own limit for sending emails, i have a story to work on in which i have to send email burst to all members, just like any announcement, promotion or new feature, now if i select to send a single email by adding all the members in the BCC, and there are 1000 members ...
    See more | Go to post

  • omerbutt
    replied to Phake Framework and Stripe
    in PHP
    Thanks for the reply dormilich, yes you are right about hte mocking in PHPunit , but it appears to be that stripe has not yet supported to mock its methods , it works purely on static methods and calls , and there is no way yet that we could mock it yet
    regards,
    Omer Aslam
    See more | Go to post

    Leave a comment:


  • omerbutt
    started a topic Phake Framework and Stripe
    in PHP

    Phake Framework and Stripe

    i have a situation where i have to test the functionality of my site's user subscriptions on stripe. i have to do integration testing for the cancel plans functionality on my site using php unit and php-facebook-webdrivers, according to my knowledge it is not a good practice to create users on stripe from within my test cases, i heard the term mocking, what it does that it stubs the function and returns whatever you want to return for any method...
    See more | Go to post

  • Done,

    The problem was with the format of FileList object that was provided to the myZone.addFile( ).If you open dropzone.js file and go to Dropzone.protot ype.initfunctio n in there you will see a check

    if (this.clickable Elements.length ) {

    inside this check dropzone creates & configures the hidden file input and then attaches that input element to the body document.body.a ppendChild(_thi s.hiddenFileIn...
    See more | Go to post

    Leave a comment:


  • Dropzone.js : add file to queue without File Browser dialouge

    i am using dropzone.js in my project , what i want to do is add file manually to queue without opening the file browser dialogue, the dropzone is intialized on a page and i am trying to run the following script to add the file
    Code:
    Dropzone.autoDiscover=false;
        var myZone=Dropzone.forElement('.imageDropzone');
        var fileList=$("input[accept='image/jpg,image/gif,image/png,image/jpeg']")[0].files;
    ...
    See more | Go to post

  • omerbutt
    replied to Get attribute value of parent node
    in PHP
    hi
    what is the output that is appearing on the front where you are rendering this dropdown, can you please paste here ?.
    Regards,
    Omer Aslam
    See more | Go to post

    Leave a comment:


    • FIRST of all what are you really trying to do :D

    what is this thing doing in the whole code
    Code:
      
    if( isset($_POST['Submit']) 
        && !$errors) {
         header("location:aboutus.php?msg=success"); 
     }
    and your sql insert query is written after this if condition so when ever you submit any thing via post on this page and the file is uploaded the page will redirect to aboutus.php...
    See more | Go to post

    Leave a comment:


  • you tell me ?
    regards,
    omer aslam
    See more | Go to post

    Leave a comment:


  • omerbutt
    replied to Undefined index: learner_id
    in PHP
    the page where you are trrying to show the message the expression
    Code:
    <?php $_GET['learner_id']?>
    the page cannot detect any set index named learner_id in the $_GET array , verify that when you land or access that page are you sending the learner_id via GET, either you are using form , or using the query string please show the complete code.
    regards,
    Omer Aslam
    See more | Go to post

    Leave a comment:


  • have you been able to open another page (form.php) by clicking on the textarea in the view.php, what procedure have you followed , did you redirected your current ppage to the new page form.php, used window.popup() or used a thickbox / lighbox interface to open the new form.php page
    regards,
    Omer Aslam
    See more | Go to post

    Leave a comment:


  • omerbutt
    replied to remove onbeforeunload event
    no i dont immediately remove it the document.ready part run when chat loads, i actually am using it to prevent any accidental close of the chat window or tab , and the unloading part is actually a part of the logout method , where i throw an ajax call update tables and then in readyStateChang e method redirect the page to the couch ratings form that the client has to fill up after his Text Chat appointment, at this point the prompt that i had loaded...
    See more | Go to post

    Leave a comment:


  • omerbutt
    replied to remove onbeforeunload event
    the simplest one was rather the right thing to do. cheers.
    regards,
    Omer Aslam
    See more | Go to post

    Leave a comment:


  • omerbutt
    replied to remove onbeforeunload event
    No i wanted to prompt whenever user clicks accidently on the window or TAB close button but not when i intentionally want to redirect like in the logout method, i rewrote the whole scenario now it is done see below hope this helps some one out
    [code=javascript]
    $(document).rea dy(function(){
    // Initialise window close prompter
    window.onbefore unload = function (evt) {
    var message...
    See more | Go to post

    Leave a comment:


  • omerbutt
    replied to remove onbeforeunload event
    Hope i am getting you write but then it wont be calling the prompt on close if i remove it.
    regards,
    Omer Aslam
    See more | Go to post

    Leave a comment:


  • omerbutt
    started a topic remove onbeforeunload event

    remove onbeforeunload event

    Hi
    i am working on a chat module in Yii and implemented the window close prompter function as follows
    [code=javascript]
    $(document).rea dy(function(){
    // Initialise window close prompter
    addEvent(window , \'load\', addListeners, true);
    });
    /*WINDOW CLOSE PROMPTER CODE*/
    // Cross browser event handling for IE 5+, NS6+ and Gecko
    function addEvent(elm,...
    See more | Go to post
    Last edited by omerbutt; Aug 7 '14, 01:29 PM. Reason: typo

  • omerbutt
    replied to Help getting image url from data base
    in PHP
    hi do you have a link to this code running
    See more | Go to post

    Leave a comment:


  • include jquery.js to your page and use

    Code:
    <script type='text/javascript'>
    ('#fieldname').toggle();
    </script>
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...