My contemplations and diurnal novelties are publicized here


  1. You can cast string in jQuery like this

    String(1) + String(2);

    In php you can do it as follow

    $myText = (string)$myVar;

        

  1. You can use Ctrl + Shift + J in chrome to look at debugging panel
  2. XHR means XMLHTTPRequest
  3. XHR debugging enable by default in Chrome.
  4. You can use variable in following manner when having an ajax call in jquery

    $(“#filter”).live(‘click’,function(){

            

            $params = “param1=abc&param2=200”;    

            $.ajax(

                 {

                 type: “POST”,

                 url: “yoururl“,

                 data: $params,

                     success: function(data) {

                        $(“#iframeid”).attr(‘src’, String(data));

                 }

                 }

                 );

    });

  5. You can set an iframe location using following code in jquery

    $(“#iframeid”).attr(‘src’, url);

  6. You can use iframe with following code

    <iframe
    id=”iframeid” src=”https://hellowahab.wordpress.com&#8221;

    width=”710px”

    height=”700px”

            longdesc=”Unable to see this”

            frameborder=1

            scrolling=’no’

            >            

            </iframe>

 

Still missed several other observations K

 

References:-

  1. http://stackoverflow.com/questions/3814205/passing-ajax-call-to-variable-jquery

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: