- This topic has 17 replies, 5 voices, and was last updated 13 years, 1 month ago by
support-michael.
-
AuthorPosts
-
stv1234MemberThis message has not been recovered.
December 26, 2011 at 3:03 pm #321969
stv1234MemberThis message has not been recovered.
December 27, 2011 at 11:43 am #321995
support-michaelKeymasterThis message has not been recovered.
December 28, 2011 at 7:33 am #322006
stv1234MemberThis message has not been recovered.
December 28, 2011 at 8:07 am #322007
support-michaelKeymasterThis message has not been recovered.
December 28, 2011 at 11:11 am #322009
stv1234MemberThis message has not been recovered.
December 28, 2011 at 11:26 am #322011
support-vadimParticipantThis message has not been recovered.
April 18, 2012 at 3:39 am #325356
JohnJakeMemberHello support.
Can you please provide the complete new version (including Wayne’s workaround) in a zip file?! I followed several threads but couldn’t finally make it work using MobiOne 1.5. Have there been changes in the latest version(s) according the cross site problem?
Thx in advance. John
BTW. I need to add a special char set and this should be done by setting properties of the Request Header. I need charset ‘charset=ISO-8859-1’…..
April 18, 2012 at 3:24 pm #325387
JohnJakeMemberHi there.
Parts of this threads are based upon the issue to get plain html data from a diferent website. Here is the link to that older thread:
http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=1686&hilit=http+requestBased upon that Wayne stated, that in the shortness of time he did not yet find a solution for the cross domain problem, so he made a copy of the html/asp file from he server and put it among the local files.
Yann added later on, that he found a solution and posted that. But that solution didn’t work for me.And in this thread, the cross domain problem still persists. But here I found a work-around sent by Wayne on December 28th, 2011, to change the Request and also work with redirection. The next comment “That nailed it” seems to work. So I adapted my code as well, but this didn’t work either.
So I would like you to provide a little project “remote-dataset” (the one of the above mentioned topic) containing the work-around of Wayne. Just to see if it still works with Version 1.5 or if I made a typo or any other mistake.
Can you please do that for me/us?
Thx in advance.
John.April 18, 2012 at 4:04 pm #325389
support-michaelKeymasterThanks for the details clarification. Will see what we can do. Digging out after a hiatus working on MobiOne 2.0M1 that rolled out last night.
April 24, 2012 at 8:23 am #325506
JohnJakeMemberIs there any chance that you provide an updated remote-data sample to read content of a different domain’s web page?!
Actually I need to read html content that is provided by a rather simple php file.
It seems that the sample of Yann and stv1234 is just working with URLs containing a .html file. Testing the same with a .php file did not work.Also the .html URL solution doesn’t run without problems since the request.readyState and the request.status say, that there was an error while reading.
I could not get any other samples to work. So, please send me/us just an updated and simple sample that is reading the html content of a URL like this http://www.somedomain.tld/folder/website1.phpThx in advance.
April 25, 2012 at 1:09 am #325533
JohnJakeMemberThx, that sample works.
Sorry, for some reason I did not find that example in my searches.John
May 29, 2012 at 9:22 am #326442
JohnJake2MemberHello support (Wayne, Octavio).
As posted earlier on April, 18th, I need to use a certain charset in order to get the right characters while requesting information from a different web site.
In my case I need charset ‘charset=ISO-8859-1’……
How can this be done?Thx in advance, JohnJake(2)
May 29, 2012 at 5:16 pm #326464
support-michaelKeymasterWe need a few more details. How are you interfacing with your server/webservice? Are you doing an http form submission, some type of ajax request, … other? If not a form submission, what is the structure of your data submission?
Feel free to share snippet of code if that will be more efficient to get us up to speed.
May 31, 2012 at 1:03 am #326529
JohnJake2MemberHi Wayne.
It is just the simple page submission from your sample. So I put in the URL of a php page into the form’s properties and handling the submit action in the forms custom.js file:*/
phoneui.postSubmitForm_m1_myform = function(isSuccess, data) {
// add custom postubmission processing code here,
// e.g., parse and process results & update UI controls with data as needed
// return false to terminate form processing
var result = true;
if (isSuccess) {
// process data
doSomeThing(data);
result = true;
} else {
// submit failed
// data = error msg
result = false;
}
return result;
}The code works, but I am not dealing with UTF-8, an ISO-8859-1 charset is required for displaying the correct accents.
Thx in advance.
JohnJake(2) -
AuthorPosts