Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid argument in IE showing up in CSS file

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am using a tutorial at Google maps API tutorial to provide google maps functionality on a website.The only problem is that on Internet Explorer 7/8 I am getting a script error.The problem is that the error makes no sense to me.I am using the debugging feature of IE 8 to determine where the error is.What is confusing is that clicking on the error in the debugger highlights a line in my CSS file.Removing the style declaration on that line causes it to break on the next declaration.The declaration is a valid one too.It looks like this:

.treatmentsPageWrapper {
margin-top:10px;
}

Please can someone assist me?I don't want to have to use the static maps, it won't look nice on the site.Please reproduce the error via the following steps and advise me....

1.Open IE8 and press F12 for developer tools.Click on the 'script' tab and 'break-on-error'
2. Go to http://drfishspamorningside.co.za
3.Click 'Contact us'
4.Click 'start debugging' in the developer tools
5.Click 'View Map' on the web page

I will be so grateful if you figure this out!!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know that the site is horrible. How in the world can I send that contact page to my friend? I can not since you are using Ajax to load the page and not doing anything to make sure the user can link/bookmark to it.

The bug is you can not have spaces in the window name on window.open

Eric
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Eric!

But how can I allow the user to bookmark the page while still using AJAX?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into jQuery history plug-ins

Eric
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will do.

The reason why I chose to use AJAX was that I didn't to choose to use a framework that provides me with a 'theme' functionality.This meant that the menu would have to be reloaded every time a user navigated to a different page.In hindsight I really should have opted for glassfish hosting and done the thing in Java.But then again, the only Java technology that I know of/am slightly familiar with that offers such functionality is Liferay.

Is there any such functionality that can be easily implemented on only a glassfish server or would I definitely need to go the portlet route?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic