Passing data to an object or iframe |
[eluser]JWarren[/eluser]
Hi, guys- This question isn't directly related to CI, but hopefully someone can help me anyway. I'm trying to insert some code between domains with a little data attached to it. I've thought about an iframe: Code: <iframe src="http://someotherdomain.com/class/function"></iframe> Code: <object data="http://someotherdomain.com/class/function" type="text/html"></object> My question is how do I pass some data to the page on the other domain? I just need the remote page to know that foo=bar in this case. On another page foo could = bat, etc. Hopefully that makes sense. Thanks in advance.
[eluser]Colin Williams[/eluser]
How does someotherdomain accept data? URI parameters? Query string?
[eluser]JWarren[/eluser]
I'd rather not use URI parameters or a query string because of special characters. Hopefully this is more clear: Code: <object data="http://someotherdomain.com/class/function" type="text/html">
[eluser]Colin Williams[/eluser]
Everything available will be in the request header, so check the header. I doubt you'll get anything though.
[eluser]kiedis[/eluser]
sophisticated way XML-RPC and XML-RPC Server Classes simple way (the other domain use CodeIgniter) Code: <frame src="http://someotherdomain.com/class/function/bar"></iframe> or the other domain don't use CodeIgniter Code: <iframe src="http://someotherdomain.com/somepage.php?foo=bar"></iframe> |
Welcome Guest, Not a member yet? Register Sign In |