Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Problem with lookup button in new safari browser (IOS 5)

Post Reply
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Problem with lookup button in new safari browser (IOS 5)

Unread post by Fike »

I have been using nuBuilder for 2 months to manage my databases and it works just great.

I am able to update my databases's records from an ipad with IOS 4. However I recently tried to use an Ipad 2 with IOS 5 and something wen t wrong when trying to use the lookup button.

In the Edit Screen, when I click the any lookup button, the form to lookup opens correctly. Then I select a record from this form and instead of closing this form and update the record, the Edit Screen closes, the lookup form stays opened and the record is not updated.

It seems that the new tabbed browsing on IOS 5 for IPAD does not change the focus of the window to the form to lookup. The focus of the window remains on the Edit Screen and thats why this tab gets closed.

Is there anyway to fix this either on the IOS 5 settings or at the nuBuilder code?
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Re: Problem with lookup button in new safari browser (IOS 5)

Unread post by Fike »

More details on the Lookup button problem:


I opened the Safari Ipad's debug console and it threw 2 errors when I selected a record from the form opened by the lookup button.

These errors were:

- JavaScript: Error at line 1. Refused to set unsafe header "Content-lenght"
- JavaScript: Error at line 1. Refused to set unsafe header "Connection"


Therefore I think something is not working properly inside the JavaScript function: getRecordFromList(pRecordID, pPrefix, pNewID).

I found two lines at the end of this function that might be causing the edit screen to close instead of the form opened by the lookup button:

window.opener.parent.focus();
window.close();


But I don't know if changing these lines would solve the problem or it would actually cause more problems.

It's strange because it only happens in Safari IOS 5. I do not get any errors from the debug console in Iphone and Ipad wiht IOS 4, and everithing works fine in these versions.

Please advise if there is something I could change in the getRecordFromList(pRecordID, pPrefix, pNewID) function to make it work in Safari IOS 5 without causing any other problem.

Thanks
Post Reply