Click here to Skip to main content
16,004,833 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Dynamic Controls with Javascript and the Browser Back Button Pin
Luay.Essa7-Jul-07 19:08
Luay.Essa7-Jul-07 19:08 
QuestionPaging using valuelist library in struts. Pin
Amutha Surianarayanan3-Jul-07 2:20
Amutha Surianarayanan3-Jul-07 2:20 
Questionpaint board in php Pin
yasar khan3-Jul-07 1:56
yasar khan3-Jul-07 1:56 
AnswerRe: paint board in php Pin
Michael Sync3-Jul-07 17:17
Michael Sync3-Jul-07 17:17 
QuestionDynamic datadisplay Pin
sidbaruah3-Jul-07 1:00
sidbaruah3-Jul-07 1:00 
AnswerRe: Dynamic datadisplay Pin
DanB19833-Jul-07 1:25
DanB19833-Jul-07 1:25 
QuestionCross domain tracking [modified] Pin
GilbertLiddell2-Jul-07 22:09
GilbertLiddell2-Jul-07 22:09 
AnswerRe: Cross domain tracking Pin
Justin Williams5-Jul-07 5:10
Justin Williams5-Jul-07 5:10 
The image URL should work like any normal ASP.NET page, just set the cookie, probably based upon the GET variables. (Look up Response.Cookies and Request.QueryString.)

Using an tag seems a little bit like a hack and therefore I wouldn't guarantee it would be totally future proof though. Instead I would just use a hidden IFrame, which expects a normal HTML source instead of an image. In domain2 you just set your cookie like normal .

If clicking the button is what sends the user to domain2, why not skip any cross domain cookie access and just POST the data ala a form to domain2 when they click the button instead of it being a vanilla link. That would seem to me to be the cleanest approach. Domain2 can then set its cookie appropriately based on the POST (see Request.Form).
<br />
<form action="http://www.domain2.com" method="post"><br />
  <input type="hidden" id="setThisCookie" value="default value" /><br />
  <input type="submit" value="Go to Domain2" /><br />
</form><br />

QuestionStandalone HTTP Communication Pin
mollasadra2-Jul-07 8:22
mollasadra2-Jul-07 8:22 
QuestionASP.net GridView1_SelectedIndexChangin Pin
hifiger20042-Jul-07 6:22
hifiger20042-Jul-07 6:22 
QuestionAsp.net website Pin
Mohit Dwivedi2-Jul-07 4:18
Mohit Dwivedi2-Jul-07 4:18 
AnswerRe: Asp.net website Pin
Vasudevan Deepak Kumar2-Jul-07 5:06
Vasudevan Deepak Kumar2-Jul-07 5:06 
QuestionHelp positioning tags? Pin
cptHotKeys2-Jul-07 3:04
cptHotKeys2-Jul-07 3:04 
QuestionContentType "pdf" Pin
Socheat.Net2-Jul-07 0:38
Socheat.Net2-Jul-07 0:38 
AnswerRe: ContentType "pdf" Pin
kubben2-Jul-07 2:10
kubben2-Jul-07 2:10 
GeneralRe: ContentType "pdf" Pin
Socheat.Net2-Jul-07 15:50
Socheat.Net2-Jul-07 15:50 
GeneralRe: ContentType "pdf" Pin
kubben3-Jul-07 1:26
kubben3-Jul-07 1:26 
Question'Attempted to read or write protected memory.This is often an indication the other memory is corrupt' Pin
ind_coder1-Jul-07 23:54
ind_coder1-Jul-07 23:54 
AnswerRe: 'Attempted to read or write protected memory.This is often an indication the other memory is corrupt' Pin
Luay.Essa4-Jul-07 2:33
Luay.Essa4-Jul-07 2:33 
Questionclient certificate for all users Pin
Roland Bär1-Jul-07 21:44
Roland Bär1-Jul-07 21:44 
QuestionNeed Code for 'Click link to continue to content' Javascript or HTML Pin
devintm01-Jul-07 21:29
devintm01-Jul-07 21:29 
AnswerRe: Need Code for 'Click link to continue to content' Javascript or HTML Pin
Guffa2-Jul-07 14:50
Guffa2-Jul-07 14:50 
GeneralRe: Need Code for 'Click link to continue to content' Javascript or HTML Pin
devintm02-Jul-07 17:18
devintm02-Jul-07 17:18 
AnswerRe: Need Code for 'Click link to continue to content' Javascript or HTML Pin
Guffa2-Jul-07 19:47
Guffa2-Jul-07 19:47 
GeneralRe: Need Code for 'Click link to continue to content' Javascript or HTML Pin
devintm03-Jul-07 10:02
devintm03-Jul-07 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.