This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Display the picture in [object HTMLImageElement] using PHTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Display the picture in [object HTMLImageElement] using PHTML" Watch "Display the picture in [object HTMLImageElement] using PHTML" New topic

Display the picture in [object HTMLImageElement] using PHTML

Koldo Urrutia
Ranch Hand

Joined: Dec 16, 2011
Posts: 85

I tried to access a cookie that has a [object HTMLImageElement] but I found out that cookies have a limit on size so Im trying to do this with pure Javascript

I can store the value of what I want in a hidden div and now I want to pass that div to another page. Ive tried constructing it manually and Firebug SHOWS that I pass not only the GET value but also the variable YET I cannot print it out. Why cant I?

3 "pages" are involved.

Page 1 has a link that when linking this link, I open a iframe
Page 2 is the iframe which contains the data I input (lets say my name) and puts this in a hidden div
When I close Page 1, Page 2 is shown again which already has this data (if I remove the hidden from the div, it shows there automatically updated)
Page 3 is the final destination of all of this. I mentioned that Firebug does indeed show that the POST variable has passed and it has data but putting something line (PHP) <?php print_r($_GET);?> shows Array() as if it was empty.

(Reverse) AJAX? Although I have no idea how I would implement it at all.........

Please ask if you need any information.

Thank you
I agree. Here's the link:
subject: Display the picture in [object HTMLImageElement] using PHTML
It's not a secret anymore!