14 Aug, 2010

Drupal http response object

Articles related to drupal http response object

JSON- Javascript Object Notation

http://digitalpbk.blogspot.com/2007/06/json-javascript-object-notation.html response, we have to use the following notation,Suppose we are returning an XML response from a server using Ajax. The common method to extract the useful information is :var xml = xmlHttp.responseXML;var list= xml.getElementsByTagName("TAG");for(i=0;i {// loop through and extract the values}This can be replaced with the new JSON object notation byvar strobj = xmlHttp.responseText;var obj = eval("("+strobj+")");obj.an_array[0];obj.a_multi_array[0][0];// ....The Notation ...
Published 4 years, 7 months ago

Remove Flash Tracking on AddThis module on Drupal 5

http://digitalpbk.com/drupal/remove-flash-tracking-addthis-module-drupal-5 Remove Flash Tracking on AddThis module on Drupal 5 If you use AddThis module on drupal, you might have noticed that a 1px by 1px flash object is created which sets tracking cookies on your pages. This is transparent to the user most time and you will see it only under generated source view. The flash button is added dynamically by the addThis module on the top of the page. This sometimes can be annoying since a white bar can appear at the top of the page due to this. In drupal 6, the flash ...
Published 2 years, 3 months ago

List of Publically accessible drupal sites you can play around with

http://digitalpbk.com/2009/12/list-publically-accessible-drupal-sites-you-can-play-around .com Anonymous content creation spencerhargiss.com/drupal noentryloadmutualfund.com www.greenactionleeds.org.uk http://cakwak.com/sandbox/ clean.freestylesystems.co.uk sandbox.webtolife.org spencerhargiss.com kawazs.net whyprohibition.ca iphonecasinogames.eu abudhabietf.com Oh I'm tired of adding to this page. There are loads guys ... :D List of Publically accessible drupal sites you can play around with Drupal Security ...
Published 2 years, 1 month ago

My First useful PERL program

http://digitalpbk.blogspot.com/2007/05/my-first-useful-perl-program.html My First useful PERL program #!/usr/bin/perl -w$username = $ARGV[0];$username = "s28arunpbk" if(!$username); ## Get the username from the first command line argument# If null assign my user id.#use LWP;use LWP::UserAgent;## Initialize objects#$ua = LWP::UserAgent->new;$ua->agent("Checkmap/1.0");my $req=HTTP::Request->new(GET => "http://sitemeter.com/?a=stats&s;=$username&r;=0");my $res = $ua->request($req);## Send a request and grab ...
Published 4 years, 9 months ago

Apache Solr MySQL Sample Data Config

http://digitalpbk.com/apachesolr/apache-solr-mysql-sample-data-config Solr using java -jar start.jar. Hit the full-commit url (http://SERVER:PORT/solr/dataimport?command=full-import) and your website would start getting indexed. 0 0 data-config.xml full-import idle 1 1056 0 2010-02-22 14:46:35 Indexing completed. Added/Updated: 1056 documents. Deleted 0 documents. 2010-02-22 14:46:42 2010-02-22 14:46:42 1056 0:0:6.562 This response format is experimental. It is likely to change in the future. :) N documents fetched 0 documents processed ...
Published 1 year, 11 months ago

Welcome to digitalpbk.com

http://digitalpbk.com/2009/10/other-welcome-digitalpbkcom Welcome to digitalpbk.com Well just to have something to get started. :) This is my experiment with drupal. I got somehow drupal to run, figured out and tinkered it as far as I know. I am a drupal 5 developer, has written a few modules in it, for the company SmartCrowds for which I work for. Drupal 6 is a little bit different. So if you find it a little plain and have ideas to improve, help me out. Just Ignore the above, its pretty old and historically true, But now it runs on Django ...
Published 2 years, 3 months ago

Django SocialAuth Fix Google Email Open id attribute exchange

http://digitalpbk.com/django/django-social-auth-fix-google-open-id-email a stable release yet. One of the issues is the bug in open id attribute exchange of the "email" field when using Google for authentication. The fix is pretty simple, Google requires the type_uri of email to be set to http://axschema.org/contact/email. Thus we have to change the OPENID_AX settings in localsettings.py to OPENID_AX = [{"type_uri": "http://axschema.org/contact/email", "count": 1, "required": True ...
Published 1 year, 9 months ago

Perl Script to send Free SMS to any mobile number in INDIA using way2sms

http://digitalpbk.com/perl-sms/perl-script-send-free-sms-any-mobile-number-india-using-way2sms = WWW::Mechanize->new(); my $username = ""; #fill in username here my $keyword = ""; #fill in password here my $mobile = $ARGV[0]; my $text = $ARGV[1]; $deb = 1; print length($text)."\n" if($deb); $text = $text."\n\n\n\n\n" if(length($text) get("http://wwwl.way2sms.com/content/index.html"); unless($mech->success()) { exit; } $dest = $mech->response->content; print "Fetching...\n" if ...
Published 2 years, 2 months ago

Free Light weight Social media sharing javascript for Facebook, Twitter, Stumble Upon, Digg and Reddit

http://digitalpbk.com/javascript/free-light-small-social-media-sharing-javascript-facebook-twitter-stumble-upon-digg-and-r page load slow as well as bring in unintentional 3rd party javascript code ( or flash tracker ) which runs on your blog. So it is always safe to use your own script or scripts which you can read understand and verify it just does what it is suppose to do. :) Javascript Object for Social Media Sharing var share = { fb:function(title,url) { this.share('http://www.facebook.com/sharer.php?u=##URL##&t=##TITLE##',title,url); }, tw ...
Published 1 year, 10 months ago

How to change root admin user password in Drupal ?

http://digitalpbk.com/drupal/how-change-drupal-root-user-password How to change root admin user password in Drupal ? In order to reset the root or superadmin password on a drupal system, login into the database by looking at the settings.php. You can use phpMyAdmin or any other MySQL utilities like SQLYog, or MySQL command line. Run the following query to reset the password. UPDATE users SET pass = MD5('password') WHERE uid = 1 The user id of administrator is always 1. Password field in drupal is stored as MD5 of the actual string password. So ...
Published 1 year, 10 months ago

Related help topics for drupal http response object More keywords like drupal http response object
More pages for drupal http response object


Email Newsletter
Email:
Popular Posts
Recent Posts
Tags
Random photo
Tender Coconut water anyone ? Tender Coconut water anyone ? in Havelock Island Andaman
On Facebook
Recent Comments


digitalpbk