1

I have called one asp page inside the iframe

You can check here: https://www.fiestacups.com/ProductDetails.asp?ProductCode=DUMMY

If customer select font and select clip art image or upload image for clip art then I have store all that values in cookies.

Now I want to get that cookies values in java-script variable on the another page.

How can I do this? Please help me....

0

3 Answers 3

2

Using jquery cookies plugin is quiet simple:

// read $.cookie('whatever') // write $.cookie('whatever', 'my whatever value') 
Sign up to request clarification or add additional context in comments.

2 Comments

OK ..and can you please tell me the way that how can I do the same in Java Script?
cookies = document.cookie.split('; '). But it's in string representation
0
function get_cookie ( cookie_name ) { var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' ); if ( results ) return ( unescape ( results[2] ) ); else return null; } function set_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure ) { var cookie_string = name + "=" + escape ( value ); if ( exp_y ) { var expires = new Date ( exp_y, exp_m, exp_d ); cookie_string += "; expires=" + expires.toGMTString(); } if ( path ) cookie_string += "; path=" + escape ( path ); if ( domain ) cookie_string += "; domain=" + escape ( domain ); if ( secure ) cookie_string += "; secure"; document.cookie = cookie_string; } set_cookie ( "iframeURL", "hello" ); var test=get_cookie ( "iframeURL" ); 

1 Comment

here the way from pure javascripts
0

on another page you can use to read the value stored in cookie :-

var value = document.cookie("name_of_cookie"); 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.