Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > browser incompatibility

Reply
Thread Tools

browser incompatibility

 
 
cerr
Guest
Posts: n/a
 
      01-21-2012
Hi,

On www.pizzalita.com, I added a div layer that would ask people for an
email address and if you don't like to, you camn click the cross to
close that layer. This works just fine in Google Chrome but I today
realized that it doesn't work for other browsers, not in IE nor in
Firefox. Does anyone have any hints, suggestions and tips how to
resolve this to get it working properly in all browsers?

Thank you very much, help is appreciated!

Ron
 
Reply With Quote
 
 
 
 
Captain Paralytic
Guest
Posts: n/a
 
      01-21-2012
On Jan 21, 10:02*pm, cerr <ron.egg...@gmail.com> wrote:
> Hi,
>
> Onwww.pizzalita.com, I added a div layer that would ask people for an
> email address and if you don't like to, you camn click the cross to
> close that layer. This works just fine in Google Chrome but I today
> realized that it doesn't work for other browsers, not in IE nor in
> Firefox. Does anyone have any hints, suggestions and tips how to
> resolve this to get it working properly in all browsers?
>
> Thank you very much, help is appreciated!
>
> Ron


Check the javascript console. FireBug's console points directly to the
error.

You have a replace call that says:
s.replace(/^?/,'&')

The ^ is an anchor which matches the start of a string (the position
not the first character). The ? makes the preceding character
optional, but this cannot be used with the anchor.

I suspect that you want the character ? rather than the quantifier, so
you must escape it.

Chrome should not allow this.
 
Reply With Quote
 
 
 
 
cerr
Guest
Posts: n/a
 
      01-21-2012
On Jan 21, 2:36*pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On Jan 21, 10:02*pm, cerr <ron.egg...@gmail.com> wrote:
>
> > Hi,

>
> > Onwww.pizzalita.com, I added a div layer that would ask people for an
> > email address and if you don't like to, you camn click the cross to
> > close that layer. This works just fine in Google Chrome but I today
> > realized that it doesn't work for other browsers, not in IE nor in
> > Firefox. Does anyone have any hints, suggestions and tips how to
> > resolve this to get it working properly in all browsers?

>
> > Thank you very much, help is appreciated!

>
> > Ron

>
> Check the javascript console. FireBug's console points directly to the
> error.
>
> You have a replace call that says:
> s.replace(/^?/,'&')
>
> The ^ is an anchor which matches the start of a string (the position
> not the first character). The ? makes the preceding character
> optional, but this cannot be used with the anchor.
>
> I suspect that you want the character ? rather than the quantifier, so
> you must escape it.
>
> Chrome should not allow this.


Yep,

you got it! That was it! Thanks man!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser Incompatibility =?Utf-8?B?V2hpc2tleVJvbWVv?= ASP .Net 5 07-17-2007 03:59 PM
3620 to 3845 connection, NM-2FE2W-V2 incompatibility discovered? w2k3newbie@hotmail.com Cisco 0 01-23-2006 05:09 PM
DTD and CSS incompatibility? Attys Erebos HTML 4 11-01-2005 08:42 AM
netscape and IE incompatibility problem hannibal HTML 1 01-25-2004 03:06 AM
SQL Error caused by .NET Framework incompatibility Edward ASP .Net 1 07-18-2003 02:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57