Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

[SOLVED] IE8 Javascript validator bug ? 06 Oct 2011 13:26 #132

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
Like I said earlier, [edited by admin : MOVED from HERE ]
it looks more like either a joomla or IE issue cos a fresh install of joomla still won't let me save a new user in joomla's user manager while using IE8.

Firefox is fine.

With the component generated with cook I also cannot save a new item on the frontend in IE8.

But I can save an item in back end with IE8

I get the error on page as follows.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET CLR 1.1.4322)
Timestamp: Thu, 6 Oct 2011 15:24:49 UTC


Message: Expected identifier
Line: 521
Char: 13
Code: 0
URI: MySite/test/administrator/components/com_members/js/formvalidator.js


Message: Expected identifier
Line: 521
Char: 13
Code: 0
URI: MySite/test/administrator/components/com_members/js/formvalidator.js


Message: Object doesn't support this property or method
Line: 298
Char: 1
Code: 0
URI: MySite/test/index.php/members/membersitem/showmember?cid[0]=45

Please Log in or Create an account to join the conversation.

Last edit: by admin.

IE8 Javascript validator bug ? 06 Oct 2011 13:56 #133

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
Please try it out yourself in Internet explorer.

swanz . co . uk / test

login as

user = temp
password = password

Please Log in or Create an account to join the conversation.

IE8 Javascript validator bug ? 06 Oct 2011 17:54 #140

  • doob
  • doob's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 2
I pretty sure its because mootols is loaded after ... validation.js

Please Log in or Create an account to join the conversation.

IE8 Javascript validator bug ? 06 Oct 2011 21:26 #147

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
I see lots of issues with buttons not working with IE8 on joomla forum.

I followed one and after upgrading to joomla 1.7.1 I emptied my cache and restarted the browser.

It fixed the problem with joomlas buttons to add a user but I'm still having the same issue with my cook components save button

Please Log in or Create an account to join the conversation.

IE8 Javascript validator bug ? 06 Oct 2011 21:45 #148

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
After searching through many forums it seems like This and This are describing the issue.

Please Log in or Create an account to join the conversation.

IE8 Javascript validator bug ? 07 Oct 2011 12:03 #157

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
In facts
Validation is called after, but finish loading before Mootools.
So, because the calls seems to be asynchronous, MooTools is not ready when validation.js ask for it.

If somebody know how to load synchronously the JS file, it should solve this issue.


For Cook Builder, i had to merge the files to solve this.
It can also be nice to integrate this in Cook... With a compressor, too.


What do you think ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

IE8 Javascript validator bug ? 07 Oct 2011 20:25 #163

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
OK now you're going way over my head.

I just hope I can resolve this cos it is a problem for me.

Maybe I'll just leave you mootools and java guru's look into it.

I will keep searching to see if I can help.

Please Log in or Create an account to join the conversation.

IE8 Javascript validator bug ? 09 Oct 2011 05:48 #168

  • doob
  • doob's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 2
You can try to check is some last function from mootools loaded ...

Please Log in or Create an account to join the conversation.

IE8 Javascript validator bug ? 09 Oct 2011 18:36 #173

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
I've been searching for a reason or a solution for my save button causing errors in IE8.

It seems there have been a few cases which have been resolved.

It seems that the errors were caused by defining objects with a trailing comma at the end of the last field.

e.g.
variable1: 'Some value',
variable2: 'Another value',

maybe caused when the last variable was removed.

Apparently IE has an issue parsing it and decides to stop executing scripts on the page altogether.

Any idea if this could be it and where I could look.

Please Log in or Create an account to join the conversation.

Re: IE8 Javascript validator bug ? 25 Oct 2011 20:56 #349

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
Anyone have any new information on this topic.

I'm still unable to save a form on my cook component using IE8.

Actually

Joomla 1.5.24 = Cannot save frontend or backend
Joomla 1.7.2 = Cannot save frontend but save works on backend

I have tried on several pc's and all have the same issue.

Surely I would think this is a huge drawback seeing as we cannot be sure which browsers people are using to view our websites.

If anyone has any advice I would be very greatful

Please Log in or Create an account to join the conversation.

Re: IE8 Javascript validator bug ? 26 Oct 2011 15:02 #352

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
It's a big problem.

In your hand, what are the javascript errors ?


We'll inform as soon as possible when we'll treat this.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: IE8 Javascript validator bug ? 26 Oct 2011 18:31 #355

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
In my case, using IE8 with my component built with cook the item layout displays with my form but I have the yellow triangle showing there are

Errors on this webpage might cause it to work incorrectly

The error details are as follows ;

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Wed, 26 Oct 2011 20:25:45 UTC


Message: Expected identifier
Line: 521
Char: 13
Code: 0
URI: mywebsite/administrator/components/com_fishingcompetition/js/formvalidator.js

I can fill in the form ok and all the validation warnings seem to work, but, when I try to save I get the yellow triangle again.

This time The error details are as follows ;

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Wed, 26 Oct 2011 20:28:06 UTC


Message: Expected identifier
Line: 521
Char: 13
Code: 0
URI: mywebsite/administrator/components/com_fishingcompetition/js/formvalidator.js


Message: Object doesn't support this property or method
Line: 174
Char: 1
Code: 0
URI: mywebsite/index.php/entry-form

I really hope this can be resolved, because if visitors cannot use my pages with IE then this is (as you say) a big problem.

Please Log in or Create an account to join the conversation.

Last edit: by Kevin.

Re: IE8 Javascript validator bug ? 29 Oct 2011 08:19 #373

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
I can get around this issue in IE8 by commenting out the $submitAction line in

administrator/components/my_component/dom/html/toolbar/button.php
switch ($task)
		{
			case 'save':
			case 'apply':
//	$submitAction = "return document.formvalidator.submitform(document.adminForm, '" . $task . "', function(pressbutton){return submitform(pressbutton);});";
				break;

		}

It now works great but I would just like to check if i will have any other issues by removing this line.

Please Log in or Create an account to join the conversation.

Last edit: by Kevin.

Re: IE8 Javascript validator bug ? 09 Nov 2011 19:17 #454

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Hey Kevin,

I think I got it !

Please rebuild your component.


Solved since 1.4.3
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: IE8 Javascript validator bug ? 09 Nov 2011 21:20 #459

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
Yes, just rebuilt and works great,,,thanks for that, it was a big drawback.

Was it anything to do with the line I was removing?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.092 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started