Current location: Hot Scripts Forums » General Web Coding » JavaScript » open a session with a web app in a different domain


open a session with a web app in a different domain

Reply
  #1 (permalink)  
Old 06-21-09, 09:42 AM
amosmj amosmj is offline
Newbie Coder
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
open a session with a web app in a different domain

SHORT VERSION
Problem:
I have a web form that submits to a webapp but I need to be able to open a session in that app before submitting or it fails. The app is not in the same domain as my web form. I don't have the ability to add code to the webapp's page.

Tried solutions:
frames - same origin policy breaks this in IE but not in FF. We're an IE shop for the most part though

Possible solutions?
I know the admin of the web app, I may be able to put my forms in the same domain as the app. It's not a perfect solution but it might work. I'm looking for different solutions though.


LONG VERSION
I should start by saying I probably have under 100 hours of real experience with Javascript so this is a beginner asking this question.
Here is my dilemma, my boss decided to use an issue managements package that is owned by another department at my place of employment. It sits in a different domain than our pages. We decided we would like to have our own input forms so we could build in some extra validation and that sort of thing. The forms are all built but we quickly found that even if we have our forms behind our SiteMinder system (login validation for the whole company) which handles the login for the issue management app as well, we were getting dumped into an error in the app.
I asked some folks around me who know more about these things than I do and they said it was because I didn't have a session open in the app prior to sending the issue data. They suggested a hidden frame. It turns out that on FF with a hidden frame to the app, this works perfectly. Unfortunately IE is the standard at my place of business. This doesn't work for IE.
I thought I might use a full frameset and flip the frames back and forth. I would bring up the app login page. Once I read that the page had progressed to the actual app, I would hide that frame and show my form. Then I would let the user submit the form and either break out of the frames and dump them directly into the app or I would keep the frames and flip back to a now blank form, in case they want to enter more. I hadn't decided on that entirely.
Unfortunately because of the same origin policy it doesn't seem that I am able to read the url to know that the user had gotten validate. Since learning this on Wednesday or Thursday I've been tinkering with a bunch of javascript thingies but to no avail. In my department I'm the closest thing we have to a programmer so unless we hire someone in, I'm it.



What else could I try, I'm all for low tech solutions if they're available.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JS script not working properly on IE but working on Firefox!!! sujata_ghosh JavaScript 4 05-21-07 06:46 AM


All times are GMT -5. The time now is 01:27 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.