Pages

Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Saturday, 26 November 2011

Email address extractor with jQuery Regex and jsBin

All these years I've received a lot of those emails that says kind of "send this to ten close friends...". Well, now I found an interesting application for those emails, I am currently working in an email campain with Mail Chimp and I need a lot of email addresses for setting this up. Then I checked out all these mass emails and created a text file with all the content, then I needed to extract from that content, all email addresses for the campaing.

Using jsBin and jQuery I created this simple yet useful email addresses extractor, I hope you find this gr8 code as useful as I did.

http://jsbin.com/aribic/14

Enhanced by Zemanta

Wednesday, 13 April 2011

On Using jQuery Deferred and Promises


Julian Aubourg and Addy Osmani provide a very comprehensive explanation on Creating Responsive Applications Using jQuery Deferred and Promises, worth check it out.

Thursday, 7 April 2011

How to modify an IFrame behaviour with jQuery

This post is about how I used jQuery to work out a situation regarding two existing
applications.


The situation is this. We have two applications MainApp and SubApp,
MainApp loads SubApp in a IFrame and passes two out of three querystring parameters.


Now the SubApp was modified to use the third parameter but the MainApp is not currently
passing it and we are not allowed to perform any change to MainApp because it is
a legacy application compiled with framework 1.1. So, what we did was edit the MainApp.aspx
file and add the next lines:
<script language="javascript" src="jquery.min.js"></script>
<script language="javascript" src="querySt.js"></script>
<script language="javascript">
    $(document).ready(function () {
        var $frame = $("#IFrameForSubApp");
        var address = $frame.attr('src');
        address = address + 
                '&ThirdParameter=' + querySt('ThirdParameter');
        $frame.attr(
                'src', address);
    });
</script>
 
That's it, this is how The Code Saved The Day.