Welcome Developers!

in

Welcome!

in

POST DATA

Last post 05-05-2009 1:22 AM by Portcard. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-12-2009 11:48 AM

    POST DATA

    Hello, I am trying to POST a form to my server but it does not work. Because I have to always use this method to go from page to page, right ? :
     function goToPage(page){
            var container = MyOpenSpace.MySpaceContainer.get();
            var qryString = container.getQueryString();
            window.location = page + "?" + qryString;
        }
    
    so in my form, action is something like this :
     
    
    
    But it does a redirect it does not submit the data !! What should I do ? Does someone manage to use forms with their IFrame - Rest app ? Thank you.
  • 03-12-2009 1:20 PM In reply to

    Re: POST DATA

    I found out. just need to append the container qryString to the form action. I used that :
    
    function getActionUrl(action) {
            var container = MyOpenSpace.MySpaceContainer.get();
            var qryString = container.getQueryString();
            return action + "?" + qryString;
    
        }
    
        function submitForm(form,action) {
            form.action = getActionUrl(action);
            form.submit();
        }
    
    
  • 05-05-2009 1:22 AM In reply to

    Re: POST DATA

     Now in my app I use this method of submit form, but i can't publish it cuz the support team did not allow me to use this, they adviced to use requestnNavigateTo,

    did solve this?

     

Page 1 of 1 (3 items)