Jump to content

dotkpay

Members
  • Posts

    126
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

dotkpay's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Hello, I accidentallly deleted several mysql records using a php script before backing up. Is it possible to a see a mysql log of what was deleted whether from php or sql or the local xampp server itself. Thanks in advance.
  2. Hello, I recently lost some data when my pc cashed and I happened to lose the file with database tables for my php program. Now I can't install my program because I dont have the sql statements to structure my db tables. Any ideas how I can form an sql text file without having to go through the php code file by file, line by line? Thanks in advance
  3. Hello, I have been trying to print a div with jqPrint plugin but I always get a blank paper rolling out of my printer. Could anyone please show me why I cant get the div printed. I copied and pasted jquery.jqprint-0.3.js into the head section. Thanks in advance <html> <body> <head> <style type="text/css"> body{ color:#000; font-size:18px; } #printarea{ position:absolute; top:50px; left:10px; } @media print{ #printarea { background-color: white; height: 100%; width: 100%; position: fixed; top: 0; left: 0; margin: 0; padding: 15px; font-size: 14px; line-height: 18px; } } </style> <script type="text/javascript"> // ----------------------------------------------------------------------- // Eros Fratini - eros@recoding.it // jqprint 0.3 // // - 19/06/2009 - some new implementations, added Opera support // - 11/05/2009 - first sketch // // Printing plug-in for jQuery, evolution of jPrintArea: http://plugins.jquery.com/project/jPrintArea // requires jQuery 1.3.x // // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php //------------------------------------------------------------------------ (function($) { var opt; $.fn.jqprint = function (options) { opt = $.extend({}, $.fn.jqprint.defaults, options); var $element = (this instanceof jQuery) ? this : $(this); if (opt.operaSupport && $.browser.opera) { var tab = window.open("","jqPrint-preview"); tab.document.open(); var doc = tab.document; } else { var $iframe = $("<iframe />"); if (!opt.debug) { $iframe.css({ position: "absolute", width: "0px", height: "0px", left: "-600px", top: "-600px" }); } $iframe.appendTo("body"); var doc = $iframe[0].contentwindow.document; } if (opt.importCSS) { if ($("link[media=print]").length > 0) { $("link[media=print]").each( function() { doc.write("<link type='text/css' rel='stylesheet' href='" + $(this).attr("href") + "' media='print' />"); }); } else { $("link").each( function() { doc.write("<link type='text/css' rel='stylesheet' href='" + $(this).attr("href") + "' />"); }); } } if (opt.printContainer) { doc.write($element.outer()); } else { $element.each( function() { doc.write($(this).html()); }); } doc.close(); (opt.operaSupport && $.browser.opera ? tab : $iframe[0].contentWindow).focus(); setTimeout( function() { (opt.operaSupport && $.browser.opera ? tab : $iframe[0].contentWindow).print(); if (tab) { tab.close(); } }, 1000); } $.fn.jqprint.defaults = { debug: false, importCSS: true, printContainer: true, operaSupport: true }; // Thanks to 9__, found at http://users.livejournal.com/9__/380664.html jQuery.fn.outer = function() { return $($('<div></div>').html(this.clone())).html(); } })(jQuery); </script> <title>Jquery jqPrint Plugin</title> </head> <body> <div> <u>Jquery jqPrint Plugin</u></p> </div> <div id="printarea"> Should Print this Only </div> <script type="text/javascript"> $(document).ready(function(){ $('#printarea').jqprint(); }); </script> </body> </html>
  4. Hello, I have been trying to get background-size to work in internet explorer but failed. I tried using -ms-filter property but couldn't get it to work, any ideas what I should do? Thanks in advance
  5. Hello, Am trying to position a png image on a jquery popup so that it will act as a close button. The button should protrude out of the popup at the top right corner. So how should I position this png image from the css layout file without having to include it in my html content. Remember the main popup frame which is actually <div> has other child elements with content. So how do I make this button a direct child of the popup frame and not its other child elements. Thanks in advance.
  6. Hello, I have been developing a website that uses the jquery .load function to open files inside <div> tags of the main page. All works well on my local server but I get problems when I upload to my host. Some links in a particular folder do not open inside the <div> tags and information is not displayed whereas other links work normally. What do you think is the problem after uploading? Thanks in advance.
  7. Hello, Am writing a php program that is supposed to send data (POST or GET) to a remote website and get a reply. Should I use curl or should I just load the remote file with GET variables inside a <div> using jquery?
  8. Am trying to load different pages into one main index page.
  9. Yes, Am trying to send arguments to .load just like a normal js function works so that I can have many items calling the same .load instance Currently you would need a different .load function for every call.
  10. Hello, I have been trying to use a js function to call the jquery load utility. This helps me prevent multiple load items on the same page since the single load will be using variables passed on from html. So incase I have a page like the one below, how do I go about this... <html> <head> <script src="http://code.jquery.com/jquery-latest.min.js"></script> </head> <body> <button id="button">click</button> <div id="area"></div> <script type="text/javascript"> $(document).ready(function() { $('#button').click(function() { $('#area').load('example.html'); }); }); </script> </body> </html> Place your own file in the example.html spot Thanks in advance
  11. Thanks Jcbones, you saw this thread through all by yourself. 3 days of barcoding...
  12. Unfortunately the above script can't display the encoded text below the barcode, I run into similar code at http://www.techrepublic.com/article/add-barcodes-to-your-web-apps-using-pear-and-php/5692389 but looks like it needs configuring just like the one I first posted cause it displays only errors. Someone please tell me what's wrong... <?php require_once("Image/Barcode/Code39.php"); $code = 56364357543745; $bc = new Image_Barcode_Code39('',2,4); $bc->draw($code, 'png', true, 120); ?>
  13. Thanks Jcbones, Ican see the barcode now. And does error_reporting(0) turn off the errors for just the script or...
  14. The script is processed exactly the way I posted it in this topic, I can't get it to work even when I comment the header line. I was wondering if it worked when you run it on your local server, @Jcbones
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.