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

TOPIC:

Showing Class with JDOM 15 Feb 2013 09:05 #6761

Hi Chaps,

I need another quick tip :)

Its in relation to www.j-cook.pro/forum/6-interface-online-...-generated-code#6334

I'm trying to add a class or id in a fly block field so I can grab its value with jQuery.

I'm in components/com_mycom/views/member/memberfrontend_fly.php

To render a class attribute- do I need to add an array element here?
<dd>
 <?php echo JDom::_('html.fly', array(
	'dataKey' => '_company_id_membership_number',
	'dataObject' => $this->item,
	'route' => array('view' => 'company','layout' => 'companyfrontend','cid[]' => $this->item->company_id)
	));
	?>
</dd>

Cheers
Chris
Just call me Chris :)

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

Last edit: by organicwebs.

Re: Showing Class with JDOM 15 Feb 2013 15:21 #6767

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Hi Chris,

Yes, right on the money! However, I cannot remember off the top of my head which...

Let me take a look and get back to you... it's either attribs or selectors (I think)... :unsure:

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

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

  • Page:
  • 1
Time to create page: 0.056 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started