Jump to content

DrTrans

Members
  • Posts

    179
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

DrTrans's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Looking to do a inline java parse onblur="return parseUrl()"; function parseUrl() { // val = http://test.com/test/john/1/2/3; var val = $(this).val(); i need it to return the "john/1/2/3" part } any assistance would be appreciated , thanks in advance.
  2. I have a base64 encoded image -> http://pastebin.com/698ES5t0 Im trying to export this as a png file. $picture = {data on paste bin}; $picture = base64_decode($picture); file_put_contents('/home/picture.png', $Picture); Now this creates a file picture.png and i can open it in Preview/Gimp etc. However, if i upload the file to my website, the image does not render in chrome/firefox, however it does render in Safarai. It seems that there is no height/width/depth data.
  3. $('#giftname').on('click', function() { $(this).html("Searching..."); var name = $('#gift_name').val(); $.get('../action.php', { action: "giftuuid", giftname: name }, function(data) { giftitem(data); }); }) function giftitem(data) { var nullkey = '00000000-0000-0000-0000-000000000000'; if(data == nullkey) { alert("got a invalid key"); } else { alert("got a valid key"); } } For some reason i get the got a valid key every time as if its not comparing the strings.
  4. Looking on how to format this: $string = "(215.354100, 218.613800, 2501.263000)" into (215,218,2501)
  5. I can't seem to figure it out with explode, because of the multi character, and whole number. please assist further if you could.
  6. $string = "<214.27080, 204.10100, 2500.51300>"; need it parsed into 214/204/2500
  7. Thanks. I have fixed this. added $("#ReportModal").on('shown', function () { });
  8. Heres the second part .. don't know why its doing it. custom.js $("#GetReport").click( function (data) { ReportID = $('#reportID').val(); data.preventDefault(); $('#ReportModal').modal({content: data}); });
  9. So i have 2 files I'm working with I need to get ReportID to the Modal.php ajax handler modal.php <! Request Application !> <div class="modal small hide fade" id="ReportModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="pull-right btn " data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Get Report</h3> </div> <div class="modal-body"> <script type="text/javascript"> $.ajax({ cache: false, type: 'POST', url: 'ajax/getReport.php', data: 'id='+reportID, success: function(invdata) { $('#report').show().html(invdata); } }); </script> <div id="report"></div> </div> </div>
  10. .littleNumber { position: fixed; font-size: 9px; color: white; font-weight: bold; display: inline-block; background: red; top: 3px; padding-left: 3px; padding-right: 3px; -moz-border-radius:1px 1px 0px 0px; -webkit-border-radius:1px 1px 0px 0px; -khtml-border-radius:1px 1px 0px 0px; border-radius:1px 1px 0px 0px; }
  11. only way you can disable a checkbox is to either .. us js.. ( $('#id-of-form-item').disabled(); or in php you can if ($value == "$DB_VALUE") { $disabled = " disabled"; } else { $disabled = ""; } html: <input type="radio" value="" name="" <?php echo $disabled; ?>" /> // Edited for Radio button, Re-read post. Originally had it as checkbox.
  12. mail($to, $subject1, $message1, $headers); // Send our email < don't need to redeclare variables...
  13. That would do every url that way that i pass to it. basically what I'm trying to do is... $text = " Im hanging out at http://blah.domain.com/directory/INFINITA/76/98/23" ; $text would return = "Im hanging out at INFINITA " with the "INFINITA" being hyperlinked to the original url. However, if $text = "Go look at this thread: http://forums.phpfreaks.com/topic/284414" it doesn't bother it.
  14. I want to do something like this: http://gyazo.com/dfee0f77931b6041f6b13ec8aee0effd How do i get the number on top of the image. my code looks like this: <a href="#" class="dropdown-toggle pull-right" data-toggle="dropdown"><img src="iconset/allfriends.png" class="headicon img-circle"><div class"littleNumber"><?php echo $amount; ?><b class="caret"></b></a>
×
×
  • 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.