Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~6K People Reached
Favorite Tags
Member Avatar for dawbin

I've been using file_get_contents on the same URL for years and now suddenly it fails. After reading of similar issues I've tried using various context flags with no luck. The really odd thing is that I can load the URL from any browser with no issues but file_get_contents fails. Does …

Member Avatar for cereal
0
2K
Member Avatar for dawbin

I'm trying to display an image on an HTML page using a PHP script in the image/src tag, but the image is broken. When I hard-code the output of getimage.php into the HTML it shows up just fine so I know the base64 encoding is correct. The page that shows …

Member Avatar for Tpojka
0
1K
Member Avatar for dawbin

I need to dynamically create two DIVs and an item to drag/drop between the two. If I code static HTML this works fine but dynamically I am missing something. Has someone been able to define drag events dynamically and have them work? <html> <head> <script> function main() { //SOURCE var …

Member Avatar for AleMonteiro
0
323
Member Avatar for dawbin

I am dynamically adding Child DIVs to a Parent DIV, but appendChild() inserts the new child DIV at the end and I want new insertions to be at the top. I understand inserBefore(), but initially there are no children in the DIV. Is ther an easy way to do this?

Member Avatar for diafol
0
77
Member Avatar for dawbin

Trying what I thought was a simple way to extract html tags. In this example I'm expecting an array with 4 elements but I get only one... am I missing something? var htm="<a></a><b></b>"; var patt = /<.*?>/gim; var a = patt.exec(htm); alert(JSON.stringify(a)); Expected: ["<a>","</a>","<b>","</b>"] But I get: ["<a>"]

Member Avatar for Johnny1
0
134
Member Avatar for dawbin

I need to get user manipulated data out of my WinJS listview and convert it to JSON, but I can't figure how to access the data? Any help would be appreciated!

0
216
Member Avatar for dawbin

Does anyone have a pure JavaScript sample of an http GET that works in the Microsft Edge browser?

0
92
Member Avatar for dawbin

Has anyone seen/does anyone have a native PHP implementation of the TEA Tiny Encryption Algorithm?

Member Avatar for pritaeas
0
76
Member Avatar for dawbin

I cant find any decent examples of implementing the WinJS.UI.DatePicker control. Specifically I am not able to retrieve the "current" attribute from the "change" event. In my example below "eventInfo.current" is undefined? <h2>Date Picker Control</h2> <label for="datePickerDiv"> Enter A Date: </label> <div id="date" data-win-control="WinJS.UI.DatePicker"></div> <div id="datePickerOutput"></div> //datePicker Control var date …

Member Avatar for dawbin
0
390
Member Avatar for dawbin

This simple onlick event works in IE and Chrome but not in FireFox (latest version). Is there some syntax issue? <html> <head> <script> function scroll() { alert(1); } </script> </head> <body> <a href="#" onclick="javascript:scroll();" />Click Here</a> </body> </html> Thanks in advance!

Member Avatar for DaveAmour
0
214
Member Avatar for dawbin

I'm trying to write a javascript routine to crawl an XML document (of unknown elements) and parse out name/value pairs where "<nodename>nodevalue</nodename>" would come out as "nodename=nodevalue". What I have works great through the second element, then it stops traversing. I feel like I'm close but I just cant get …

Member Avatar for Airshow
0
291
Member Avatar for stevenson.nelli
Member Avatar for dawbin

I'm trying to extract an array of "<div>" and I am confounded by why this these two patterns work... preg_match_all('/<div class="date">.*?/m',$htm,$a); preg_match_all('/<div.*?</div>/m',$htm,$a); But this one does not return anything... preg_match_all('/<div class="date">.*?<\/div>/m',$htm,$a); Is there some regular expresion magic I am missing?

Member Avatar for dawbin
0
252
Member Avatar for dawbin

What is the most efficient way to get the number of rows from a table? I'm able to do it with the following code, but looping through a recordset of one row seems inefficient. Is there a better way to do this? <?php $con=mysqli_connect("0000000000","0000000000","0000000000","0000000000"); $sql = 'SELECT count(*) AS t …

Member Avatar for iamthwee
0
228
Member Avatar for dawbin

I'm an experienced ASP/MSSQL programmer trying to make the move to PHP/MYSQL and I've been able to wrangle my way up to now. I have a simple SQL query that works great in mymcadmin but gets lost in PHP. I've simplified it a bit here but this is the actual …

Member Avatar for iamthwee
0
218