CY5's Profile User Rating: *----

Reputation: 16 Tradesman
Group:
Active Members
Active Posts:
398 (0.41 per day)
Joined:
28-September 12
Profile Views:
8,971
Last Active:
User is offline Today, 03:29 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   CY5 has not set their status

Posts I've Made

  1. In Topic: How to extract string in regex

    Posted 25 May 2015

    i get outptut now as

    var a="input_[2][invoiceNO]";
        var patt = new RegExp('\[(.*?)\]');
        var res = patt.exec(a);
    



    Array [ "[2]", "2" ]
    


    i want ouptut as invoiceNo there's something wrong with my regex please help
    how to skip first occurence of pattern
  2. In Topic: How to extract string in regex

    Posted 25 May 2015

    after using RegExp() i still get null value

    var a="input_[2][invoiceNO]";
        var patt = new RegExp('\[(.*?)\]');
        var res = patt.exec(a);
    
  3. In Topic: Login problem

    Posted 22 May 2015

    My Account Tag is gone
    Note:i was also able to see active user at bottom at index page of every forum, which shouldn't been seen by Guest user, anyways now i don't face that glitch
  4. In Topic: HTML to PDF converter opensource

    Posted 2 May 2015

    Quote

    You can hide the inputs and have an element to hold their values, you would change that before calling the html method, then change it back after.

    @ArtificialSoldier I appreciate your idea but i cannot convert it to jquery can you give me an example

    i tried this but my form is not getting posted


    jQuery('.btn-print').click(function(event){
    jQuery(".form1").find(':input').each(function(){
    				 		if(jQuery(this).val() && jQuery(this).attr('type') !== 'hidden'){
    
    				 			jQuery.trim(jQuery(this).replaceWith('<u>'+jQuery(this).val()+'</u>'));
    				 		}
    				 		else if(jQuery(this).val()===''){
    				 			jQuery(this).replaceWith('________');
    				 		}
    					});
    
    });
    



      <form class="form1">
         <input type="text" value="ABC"/>
         <input type="text" value="DEF"/>
         <select name="acces_specfi" class="selectpicker" data-size="10" data-style="btn-info">
                        <option value="public">public</option>
                        <option value="private">private</option>
                    </select>
        <button type="submit" class="btn-print"/>
    
    
  5. In Topic: HTML to PDF converter opensource

    Posted 29 Apr 2015

    I'm able to convert it to pdf but the pdf contain input textbox which i don't want so i was thinking replacing all input type and select type with their respective value something about here

    jQuery('.btn-print').click(function(){
    				 	var pr_data=jQuery('.tc').html();[u]//replace input,select with their value [/u] 
    				 	jQuery.post('../controller/register.php',{'pr_data':pr_data},function(result){
    				 		console.log(result);
    				 	});
    			 	 });
    
    


    is it possible to replace input,select with their respective value before sending to server

    Quote

    If you don't mind using command line tools, you could try wkhtmltopdf. I've used that one quite successfully before.

    @Atli I'm going to try wkhtmltopdf but is it free for commercial purpose.

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

CY5 hasn't added any friends yet.

Comments

CY5 has no profile comments yet. Why not say hello?