• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

poliscarhire.com BOOK-IT Button does not work in firefox only

 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
poliscarhire.com BOOK-IT Button does not work at: http://www.poliscarhire.com/ , go ahead and try get quote after press BOOKIT...in a car...with firefox 3/4...

well I designed the site, but work in Opera, Safari and ie7+ but not in firefox, any suggestion make it work in firefox... but still continue work in all other browsers?

This is also posted and here: https://support.mozilla.com/en-US/questions/800709#answer-174362
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
error console says form0 is not defined.

look at all the javascript code on that page. every element is addressed by document.something.something...
so...

form0.submit should be

document.forms["form0"].submit()

or

document.form0.submit()
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That mode of addressing is fragile and antiquated. Add an id value to addressable elements and use document.getElementById().

Welcome to the 21st century!
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
YOU MEAN BETTER USE id of form tag rather than, name of form tag?
name is only take data from fields?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, using id's is the best practice.
 
reply
    Bookmark Topic Watch Topic
  • New Topic