Hi, When I call Serialize() under Safari 3.0.2 (523.12.2), the function crashes with the following error : Value undefined (result of expression $(element).getValue) is not an object. I do have some hidden fields in my forms. It runs fine under Firefox. Anyone encountered this issue? Is there a workaround? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
More info on this bug : It seems that the problem is that I have an IFRAME element within the form itself. If I remove the IFRAME element, then serialize() will work fine. However, shouldn''t the function be a bit more boiler plate? On Jan 7, 7:58 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote:> Hi, > > When I callSerialize() under Safari 3.0.2 (523.12.2), the function > crashes with the following error : > > Value undefined (result of expression $(element).getValue) is not an > object. > > I do have some hidden fields in my forms. It runs fine under Firefox. > > Anyone encountered this issue? Is there a workaround?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Does your page validate? If you''re using a Strict DOCTYPE, it probably won''t, because that doesn''t allow iframes. Safari may be getting huffy about that part. Walter On Jan 8, 2008, at 1:46 PM, Edovia wrote:> > More info on this bug : > > It seems that the problem is that I have an IFRAME element within the > form itself. If I remove the IFRAME element, then serialize() will > work fine. However, shouldn''t the function be a bit more boiler plate? > > > > On Jan 7, 7:58 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: >> Hi, >> >> When I callSerialize() under Safari 3.0.2 (523.12.2), the function >> crashes with the following error : >> >> Value undefined (result of expression $(element).getValue) is not an >> object. >> >> I do have some hidden fields in my forms. It runs fine under Firefox. >> >> Anyone encountered this issue? Is there a workaround? > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
moving futher past the error code... would any form elements in the iframe even be recognized as part of that form? I guess what I am getting at is: consider why are you using an iFrame and is there something else you can use to replace it with? maybe the object tag? or if the iframe is loaded conditionally if the user clicks a help link to find out what is supposed to be there perhaps loading the content to a div via ajx instead? Ultimately I think in this case it comes down to: are you using the best tool for the job? good luck, i''d like to hear what you do, or figure out what the problem is. On Jan 8, 2008 2:00 PM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> > Does your page validate? If you''re using a Strict DOCTYPE, it > probably won''t, because that doesn''t allow iframes. Safari may be > getting huffy about that part. > > Walter > > On Jan 8, 2008, at 1:46 PM, Edovia wrote: > > > > > More info on this bug : > > > > It seems that the problem is that I have an IFRAME element within the > > form itself. If I remove the IFRAME element, then serialize() will > > work fine. However, shouldn''t the function be a bit more boiler plate? > > > > > > > > On Jan 7, 7:58 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: > >> Hi, > >> > >> When I callSerialize() under Safari 3.0.2 (523.12.2), the function > >> crashes with the following error : > >> > >> Value undefined (result of expression $(element).getValue) is not an > >> object. > >> > >> I do have some hidden fields in my forms. It runs fine under Firefox. > >> > >> Anyone encountered this issue? Is there a workaround? > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Brian, Basically, I use an IFRAME so the user can upload an image within the form. Since the form is submitted with Ajax.Request, I have to "pre- upload" the image so that the form can be submitted correctly. The IFRAME is transparent so it looks like it''s a part of the form. I could use a pop-up window instead but then I guess I would still need an IFRAME. If anyone has a suggestion for replacing the IFRAME, feel free to share! Luc On Jan 8, 2:42 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> moving futher past the error code... would any form elements in the iframe > even be recognized as part of that form? > > I guess what I am getting at is: consider why are you using an iFrame and is > there something else you can use to replace it with? maybe the object tag? > or if the iframe is loaded conditionally if the user clicks a help link to > find out what is supposed to be there perhaps loading the content to a div > via ajx instead? > > Ultimately I think in this case it comes down to: are you using the best > tool for the job? > > good luck, i''d like to hear what you do, or figure out what the problem is. > > On Jan 8, 2008 2:00 PM, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: > > > > > Does your page validate? If you''re using a Strict DOCTYPE, it > > probably won''t, because that doesn''t allow iframes. Safari may be > > getting huffy about that part. > > > Walter > > > On Jan 8, 2008, at 1:46 PM, Edovia wrote: > > > > More info on this bug : > > > > It seems that the problem is that I have an IFRAME element within the > > > form itself. If I remove the IFRAME element, then serialize() will > > > work fine. However, shouldn''t the function be a bit more boiler plate? > > > > On Jan 7, 7:58 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: > > >> Hi, > > > >> When I callSerialize() under Safari 3.0.2 (523.12.2), the function > > >> crashes with the following error : > > > >> Value undefined (result of expression $(element).getValue) is not an > > >> object. > > > >> I do have some hidden fields in my forms. It runs fine under Firefox. > > > >> Anyone encountered this issue? Is there a workaround?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Couldn''t you just move the iframe outside of the form? On Jan 9, 2:48 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote:> Hi Brian, > > Basically, I use an IFRAME so the user can upload an image within the > form. Since the form is submitted with Ajax.Request, I have to "pre- > upload" the image so that the form can be submitted correctly. The > IFRAME is transparent so it looks like it''s a part of the form. > > I could use a pop-up window instead but then I guess I would still > need an IFRAME. > > If anyone has a suggestion for replacing the IFRAME, feel free to > share! > > Luc > > On Jan 8, 2:42 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > moving futher past the error code... would any form elements in the iframe > > even be recognized as part of that form? > > > I guess what I am getting at is: consider why are you using an iFrame and is > > there something else you can use to replace it with? maybe the object tag? > > or if the iframe is loaded conditionally if the user clicks a help link to > > find out what is supposed to be there perhaps loading the content to a div > > via ajx instead? > > > Ultimately I think in this case it comes down to: are you using the best > > tool for the job? > > > good luck, i''d like to hear what you do, or figure out what the problem is. > > > On Jan 8, 2008 2:00 PM, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: > > > > Does your page validate? If you''re using a Strict DOCTYPE, it > > > probably won''t, because that doesn''t allow iframes. Safari may be > > > getting huffy about that part. > > > > Walter > > > > On Jan 8, 2008, at 1:46 PM, Edovia wrote: > > > > > More info on this bug : > > > > > It seems that the problem is that I have an IFRAME element within the > > > > form itself. If I remove the IFRAME element, then serialize() will > > > > work fine. However, shouldn''t the function be a bit more boiler plate? > > > > > On Jan 7, 7:58 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: > > > >> Hi, > > > > >> When I callSerialize() under Safari 3.0.2 (523.12.2), the function > > > >> crashes with the following error : > > > > >> Value undefined (result of expression $(element).getValue) is not an > > > >> object. > > > > >> I do have some hidden fields in my forms. It runs fine under Firefox. > > > > >> Anyone encountered this issue? Is there a workaround?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I guess I could do that, but I''d prefer having the possibility to display the iframe anywhere within the form... On Jan 9, 1:05 pm, Wizz <woutaw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Couldn''t you just move the iframe outside of the form? > > On Jan 9, 2:48 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: > > > Hi Brian, > > > Basically, I use an IFRAME so the user can upload an image within the > > form. Since the form is submitted with Ajax.Request, I have to "pre- > > upload" the image so that the form can be submitted correctly. The > > IFRAME is transparent so it looks like it''s a part of the form. > > > I could use a pop-up window instead but then I guess I would still > > need an IFRAME. > > > If anyone has a suggestion for replacing the IFRAME, feel free to > > share! > > > Luc > > > On Jan 8, 2:42 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > moving futher past the error code... would any form elements in the iframe > > > even be recognized as part of that form? > > > > I guess what I am getting at is: consider why are you using an iFrame and is > > > there something else you can use to replace it with? maybe the object tag? > > > or if the iframe is loaded conditionally if the user clicks a help link to > > > find out what is supposed to be there perhaps loading the content to a div > > > via ajx instead? > > > > Ultimately I think in this case it comes down to: are you using the best > > > tool for the job? > > > > good luck, i''d like to hear what you do, or figure out what the problem is. > > > > On Jan 8, 2008 2:00 PM, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: > > > > > Does your page validate? If you''re using a Strict DOCTYPE, it > > > > probably won''t, because that doesn''t allow iframes. Safari may be > > > > getting huffy about that part. > > > > > Walter > > > > > On Jan 8, 2008, at 1:46 PM, Edovia wrote: > > > > > > More info on this bug : > > > > > > It seems that the problem is that I have an IFRAME element within the > > > > > form itself. If I remove the IFRAME element, then serialize() will > > > > > work fine. However, shouldn''t the function be a bit more boiler plate? > > > > > > On Jan 7, 7:58 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: > > > > >> Hi, > > > > > >> When I callSerialize() under Safari 3.0.2 (523.12.2), the function > > > > >> crashes with the following error : > > > > > >> Value undefined (result of expression $(element).getValue) is not an > > > > >> object. > > > > > >> I do have some hidden fields in my forms. It runs fine under Firefox. > > > > > >> Anyone encountered this issue? Is there a workaround?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Did you try changing the DOCTYPE of the page? Walter On Jan 9, 2008, at 1:21 PM, Edovia wrote:> > I guess I could do that, but I''d prefer having the possibility to > display the iframe anywhere within the form... > > > > On Jan 9, 1:05 pm, Wizz <woutaw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Couldn''t you just move the iframe outside of the form? >> >> On Jan 9, 2:48 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: >> >>> Hi Brian, >> >>> Basically, I use an IFRAME so the user can upload an image within >>> the >>> form. Since the form is submitted with Ajax.Request, I have to "pre- >>> upload" the image so that the form can be submitted correctly. The >>> IFRAME is transparent so it looks like it''s a part of the form. >>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
The doctype is presently set at <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> On Jan 9, 1:26 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> Did you try changing the DOCTYPE of the page? > > Walter > > On Jan 9, 2008, at 1:21 PM, Edovia wrote: > > > > > I guess I could do that, but I''d prefer having the possibility to > > display the iframe anywhere within the form... > > > On Jan 9, 1:05 pm, Wizz <woutaw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Couldn''t you just move the iframe outside of the form? > > >> On Jan 9, 2:48 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: > > >>> Hi Brian, > > >>> Basically, I use an IFRAME so the user can upload an image within > >>> the > >>> form. Since the form is submitted with Ajax.Request, I have to "pre- > >>> upload" the image so that the form can be submitted correctly. The > >>> IFRAME is transparent so it looks like it''s a part of the form.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Oh well, blows that theory. Walter On Jan 9, 2008, at 1:31 PM, Edovia wrote:> > The doctype is presently set at <!DOCTYPE HTML PUBLIC "-//W3C//DTD > HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> > > > On Jan 9, 1:26 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: >> Did you try changing the DOCTYPE of the page? >> >> Walter >> >> On Jan 9, 2008, at 1:21 PM, Edovia wrote: >> >> >> >>> I guess I could do that, but I''d prefer having the possibility to >>> display the iframe anywhere within the form... >> >>> On Jan 9, 1:05 pm, Wizz <woutaw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>> Couldn''t you just move the iframe outside of the form? >> >>>> On Jan 9, 2:48 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: >> >>>>> Hi Brian, >> >>>>> Basically, I use an IFRAME so the user can upload an image within >>>>> the >>>>> form. Since the form is submitted with Ajax.Request, I have to >>>>> "pre- >>>>> upload" the image so that the form can be submitted correctly. The >>>>> IFRAME is transparent so it looks like it''s a part of the form. > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ok... from my quick experiment the iframe doesn''t need to be within the form tags. i can share the url later, I have to run to town now, but mostly i need to secure it - right now it allows uploading of any file and thats not good. On Jan 9, 2008 8:48 AM, Edovia <lvandal-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote:> > Hi Brian, > > Basically, I use an IFRAME so the user can upload an image within the > form. Since the form is submitted with Ajax.Request, I have to "pre- > upload" the image so that the form can be submitted correctly. The > IFRAME is transparent so it looks like it''s a part of the form. > > I could use a pop-up window instead but then I guess I would still > need an IFRAME. > > If anyone has a suggestion for replacing the IFRAME, feel free to > share! > > Luc > > > On Jan 8, 2:42pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > moving futher past the error code... would any form elements in the > iframe > > even be recognized as part of that form? > > > > I guess what I am getting at is: consider why are you using an iFrame > and is > > there something else you can use to replace it with? maybe the object > tag? > > or if the iframe is loaded conditionally if the user clicks a help link > to > > find out what is supposed to be there perhaps loading the content to a > div > > via ajx instead? > > > > Ultimately I think in this case it comes down to: are you using the best > > tool for the job? > > > > good luck, i''d like to hear what you do, or figure out what the problem > is. > > > > On Jan 8, 2008 2:00 PM, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: > > > > > > > > > Does your page validate? If you''re using a Strict DOCTYPE, it > > > probably won''t, because that doesn''t allow iframes. Safari may be > > > getting huffy about that part. > > > > > Walter > > > > > On Jan 8, 2008, at 1:46 PM, Edovia wrote: > > > > > > More info on this bug : > > > > > > It seems that the problem is that I have an IFRAME element within > the > > > > form itself. If I remove the IFRAME element, then serialize() will > > > > work fine. However, shouldn''t the function be a bit more boiler > plate? > > > > > > On Jan 7, 7:58 pm, Edovia <lvan...-aNPgXiA7Rq7QT0dZR+AlfA@public.gmane.org> wrote: > > > >> Hi, > > > > > >> When I callSerialize() under Safari 3.0.2 (523.12.2), the function > > > >> crashes with the following error : > > > > > >> Value undefined (result of expression $(element).getValue) is not > an > > > >> object. > > > > > >> I do have some hidden fields in my forms. It runs fine under > Firefox. > > > > > >> Anyone encountered this issue? Is there a workaround? > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---