• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AW: WOFileUpload and Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: WOFileUpload and Safari


  • Subject: AW: WOFileUpload and Safari
  • From: Helge Staedtler <email@hidden>
  • Date: Thu, 22 Sep 2005 09:19:46 +0200

Hi Greg,

I asked myself just one question reading your problem & solution: Why does
one need to target a submit-action to a *hidden* iframe? Is it beacuse you
are from " framedphotographics.com" so you just must frame it? :-)

And secondly what will your sumbit do if the browser does not support
iframes? (This is beasically what I thought of first ;-) but I personally
avoid DHTML as much as possible and use it only as an *add-on*
functionality)

regards,
helge

Am 22.09.2005 5:07 Uhr schrieb "Greg" unter
<email@hidden>:

> I have been able to track down a resolution to this. It seems safari
> must have a problem with doing "too much" in a form submit handler. I
> originally had it set the hidden field value, then swap a couple of
> divs from hidden to show themselves. What I did was put the div stuff
> in another method and called that method with a delay in the form
> submission handler.
>
> eg. setTimeout("showDivs();", 200);
>
>
> And now safari works again. Woohoo.
>
> Greg
>
> On 22/09/2005, at 11:06 AM, Greg wrote:
>
>
>> I have a component that has a single form in it with only 1
>> WOFileUpload. I am using a hidden iFrame as the target of the
>> upload and the page that gets returned to the iframe calls a
>> javascript method to refresh its parent. It was working fine in
>> Safari and Firefox and then all of a sudden it stopped working with
>> Safari. It is now causing it to have an exception in the WOFileUpload:
>>
>> ERXNSLogLog4jBridge.java:41  -
>> <com.webobjects.appserver._private.WOComponentRequestHandler>:
>> Exception occurred while handling request:
>> java.lang.IllegalStateException: <er.extensions.ERXPatcher
>> $DynamicElementsPatches$FileUpload> No form data left for
>> WOFileUpload!
>>  [2005-09-22 10:57:06 EST] <WorkerThread3>
>> java.lang.IllegalStateException: <er.extensions.ERXPatcher
>> $DynamicElementsPatches$FileUpload> No form data left for
>> WOFileUpload!
>>     at
>> com.webobjects.appserver._private.WOFileUpload.takeValuesFromRequest
>> (WOFileUpload.java:183)
>>     at
>> com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFro
>> mRequest(WODynamicGroup.java:81)
>>     at
>> com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest
>> (WODynamicGroup.java:89)
>>
>> This is just the top part of the stack trace. I searched the
>> archives and there were other people in the past that were having
>> difficulties with it. I originally was just binding the data
>> binding to an NSData object, but then tried the streaming binding
>> and converted that to an NSData object. Both ways produce the same
>> exception in Safari. I should mention that the form has a hidden
>> field that I set before commencing the upload. It is before the
>> WOFileUpload component. In the upload method I extract that value
>> using the context().request().stringFormValueForKey() call after I
>> have created the NSData object from the stream, as in previous
>> peoples issues, this was suggested as a possible cause.
>>
>> Would anyone have any other suggestions to try to solve this issue?
>>
>> Any help is greatly appreciated.
>>
>> Regards,
>> Greg
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> 40framedphotographics.com
>>
>> This email sent to email@hidden
>>
>>
>>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: WOFileUpload and Safari (From: Greg <email@hidden>)

  • Prev by Date: NSDictionary to NSData
  • Next by Date: AW: NSDictionary to NSData
  • Previous by thread: Re: WOFileUpload and Safari
  • Next by thread: NSDictionary to NSData
  • Index(es):
    • Date
    • Thread