Welcome, Guest
Username: Password: Remember me

TOPIC:

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

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?

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

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

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 62
  • Thank you received: 15
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.

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

Last edit: by admin.

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

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

Can you confirm ?
Coding is now a piece of cake

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

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

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 62
  • Thank you received: 15
Yes it works, thank you very much.

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

Last edit: by twev.

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

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 :-(

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

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

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

Please retry, now...
Coding is now a piece of cake

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

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

I removed the component of my joomla, I downloaded and installed again but still did not work.

The problem remains the same.

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

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

Any solution for it?

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

ok, thank you!

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

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

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

Solved since 1.4.5.

Please confirm.
Coding is now a piece of cake

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

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

Hello,

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

See the image:

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

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

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 62
  • Thank you received: 15
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

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

Last edit: by admin.
Time to create page: 0.095 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started