Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing QR #99

Open
sooriyaoli opened this issue Jul 25, 2017 · 0 comments
Open

Printing QR #99

sooriyaoli opened this issue Jul 25, 2017 · 0 comments

Comments

@sooriyaoli
Copy link

I have called the generated QR in a Modal Box with other text values. I am unable to print the QR from the modal box with the other values .

Modal Section:

Calling Print:

$('#print').click(function(){

	var id = $('#user_id').val();
	
	$.ajax({
		url:'updatecount.php',
		type:'POST',
		data:{id:id},
		success:function(data){
		
		}
	
	
	});

	var original = $('body').html();
	var printcontent = $('#print_section').html();
	$('body').css('margin-top','45%');
	$('body').html(printcontent);
	window.print();
	window.location.href="index.html";

});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant