Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Problem toolbox

Re: Problem toolbox 14 Nov 2011 19:00 #500

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
See my firebug.

He points out that some files were not found. But I looked in the server folder and the files are there!

Why did he put "5%" in the code?

The administrator has disabled public write access.

Re: table entry problem 14 Nov 2011 22:36 #502

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 15
  • Karma: 6
I have noticed a similar problem, data entry is OK from the front end but the Save, Apply, Delete and Cancel buttons do nothing from the backend. The problem only occurs under xampp, it works OK on the production server running LAMP.
The administrator has disabled public write access.

Re: table entry problem 15 Nov 2011 10:24 #505

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I found !!

In the hepler of your component, you'll find this source :
	function headerDeclarations()
	{
		$app = JFactory::getApplication();
		$doc =& JFactory::getDocument();

		$siteUrl = JURI::root(true);

		$componentUrl = $siteUrl .DS. 'components' .DS. 'com_xxxx';
		$componentUrlAdmin = $siteUrl .DS. 'administrator' .DS. 'components' .DS. 'com_xxxx';


		//Javascript
		$doc->addScript($siteUrl .DS. 'includes' .DS. 'js' .DS. 'joomla.javascript.js');
		$doc->addScript($componentUrlAdmin .DS. 'js' .DS. 'formvalidator.js');


		//CSS
		if ($app->isAdmin())
		{
			$doc->addStyleSheet($componentUrlAdmin .DS. 'css' .DS. 'xxxx.css');
			$doc->addStyleSheet($componentUrlAdmin .DS. 'css' .DS. 'toolbar.css');

		}
		else if ($app->isSite())
		{
			$doc->addStyleSheet($componentUrl .DS. 'css' .DS. 'xxxx.css');
			$doc->addStyleSheet($componentUrl .DS. 'css' .DS. 'toolbar.css');
		}

	}



This is the call of the headers of your component. (JS and CSS)



DS means Directory Separator. It is the char constant for '/' on UNIX or '\' on Windows.

BUT : I used DS for the url !!
What is totaly wrong because on Win it will transform in '\'


Upgrade to come..
Coding is now a piece of cake
Last Edit: 15 Nov 2011 10:25 by admin.
The administrator has disabled public write access.

Re: table entry problem 15 Nov 2011 12:09 #510

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Should be solved since 1.4.4

Can you confirm ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [SOLVED] Problem toolbox 15 Nov 2011 15:33 #512

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 15
  • Karma: 6
Yes it works, thank you very much.
Last Edit: 15 Nov 2011 15:36 by twev.
The administrator has disabled public write access.

Re: [SOLVED] Problem toolbox 15 Nov 2011 15:49 #515

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
Hi,
Progress was made but unfortunately there are still problems.
Note that now the cancel button appears but still missing the rest of the toolbar. Where are the add and edit buttons?

There is still also an error in the url of the script file:

"NetworkError: 404 Not Found - http://localhost/dev%5Cadministrator%5Ccomponents%5Ccom_reservas%5Cdom%5Cassets%5Cjdom.js"


The following screen shot ... missing toolbar :-(
The administrator has disabled public write access.

Re: [SOLVED] Problem toolbox 15 Nov 2011 16:11 #516

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Ok.

Please retry, now...
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [SOLVED] Problem toolbox 15 Nov 2011 16:23 #517

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
I removed the component of my joomla, I downloaded and installed again but still did not work.

The problem remains the same.
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 17 Nov 2011 14:56 #529

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
Any solution for it?
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 17 Nov 2011 15:03 #530

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I don't forget you.

The problem come from dom.php when calling the js files.
It is a problem between "/" and "\" on windows.


Am solving another issue, and before tomorow, I hope your problem solved.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 17 Nov 2011 16:45 #531

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
ok, thank you!
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 18 Nov 2011 14:50 #533

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Should be ok now.

Solved since 1.4.5.

Please confirm.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 18 Nov 2011 20:42 #539

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
Hello,

The bugs disappeared in firebug but still save and apply buttons do not appear in the toolbar.

See the image:

The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 18 Nov 2011 21:12 #540

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 15
  • Karma: 6
I think the last change might have broken something. I have created a new project and the Save and Edit buttons on a frontend form no longer do anything! I am testing on Jooomla 1.7.3 running on LAMP but works OK in the sandbox. The buttons work OK on the backend.

Trevor
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 19 Nov 2011 08:52 #541

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Well.

I don't understand.

cpicoli, trevor, can you insert this line in your layout file (where you want) and print me a shot :
<?php echo("<pre>"); print_r($this->lists['toolbar']); echo("</pre>"); ?>

If you look the source code of the cancel button, it sould look something like this :
<ul><li class="button" style="list-style: none outside none; float: left;" id="toolbar-cancel">
		<div class="toolbar" style="cursor: pointer;" onclick="javascript:return Joomla.submitform('cancel');">
			<div class="icon-16 icon-16-task-cancel">
			</div>
			<span class="text">Cancel</span>
		</div></li></ul>


How many <li> do you have in <ul> ?



Trevor, do you see the tasks ? You said that it don't do anything ? You have a JS bug ?


Infinite thanks for your help.
I offer you 400 pts for both of you when this ticket closed.
Coding is now a piece of cake
Last Edit: 19 Nov 2011 09:35 by admin.
The administrator has disabled public write access.
Time to create page: 0.094 seconds

Get Started