2

Is there any way to set the src attribute of an iframe without the iframe generating an http request? If not, is there a way to format the request headers before the request is sent?

edit: I just need the src to match the path of a cookie, but I don't ever want that cookie sent to the server. See my comments on this question.

8
  • I'm curious exactly what you are trying to accomplish. Commented Dec 7, 2008 at 18:59
  • I want to use cookies to store some data that's global to the browser but never send that data to the server. If the cookie path is /somepath and the iframe src is /somepath and the iframe never sends the cookie to the server, problem solved. Commented Dec 7, 2008 at 19:05
  • I want this feature but don't want to wait for the HTML 5 storage API. Commented Dec 7, 2008 at 19:05
  • Also see the question 'use cookies without sending them back to the server'. tiny.cc/X7dkt Commented Dec 7, 2008 at 19:08
  • Can you have it load a real page, thats just a static html file (blank.html) and just never send that page back to the server? Another idea is to use the page loaded in the iframe to have the script that sets the cookies since it knows its own url. Commented Dec 7, 2008 at 19:19

1 Answer 1

3

No there is not a way to do this.

Sign up to request clarification or add additional context in comments.

Comments