How to use HTML target in Joomla..

Locked
erikleirdal
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Apr 21, 2011 12:40 pm

How to use HTML target in Joomla..

Post by erikleirdal » Sun Jul 29, 2012 4:48 pm

I want the result of a search module to end up in another position in my Joomla site.

I've been trying to use a variety of Custom Code HTML Modules.

I've got one module in the left side in my page. The code include a target=, so the result from this module (when clicking Search) should end up in my mainbody-bottom position. I've tried target="mainbody-bottom" offcourse, but the result keep on showing up in the left position.

How can I do this?

User avatar
stutteringp0et
Joomla! Ace
Joomla! Ace
Posts: 1389
Joined: Sat Oct 28, 2006 11:16 pm
Location: Texas
Contact:

Re: How to use HTML target in Joomla..

Post by stutteringp0et » Sun Jul 29, 2012 4:52 pm

The target attribute is used to target other windows, frames or iframes. You can't use it to target a tag.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.

erikleirdal
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Apr 21, 2011 12:40 pm

Re: How to use HTML target in Joomla..

Post by erikleirdal » Sun Jul 29, 2012 4:56 pm

Thanks for the reply!

Any idea how I can accomplish what I'm trying to do? Any extension out there you are aware of?

User avatar
stutteringp0et
Joomla! Ace
Joomla! Ace
Posts: 1389
Joined: Sat Oct 28, 2006 11:16 pm
Location: Texas
Contact:

Re: How to use HTML target in Joomla..

Post by stutteringp0et » Sun Jul 29, 2012 5:46 pm

You would need to retrieve the search results and then place them with javascript.

Ideally, you would want to retrieve them as JSON formatted data, but you could retrieve raw output.

I know there are several live search extensions - but they have their own display methods. You might look at one of those for inspiration.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.


Locked

Return to “Malaysian Forum”