• Page:
  • 1

Using JRoute() inside Javascript

OFFLINE

Using JRoute() inside Javascript

1 week, 2 days ago
Hello Team,

If want to pass link to JRoute inside Javascript,
you can try using

	<script>
        var link = "index.php?option=com_invoices&controller=quote&task=edit&cid[]="+check;
	// 'check' is a javascript variable 
        
	var sef_link = '<?php echo JRoute::_("'+link+'")?>';
	</script>

Hope this helps...
Last Edit: 1 week, 2 days ago by Abhinav Jaiswal.
ONLINE

Re: Using JRoute() inside Javascript

1 week, 2 days ago
I do not think this will work....instead just put the non sef url in JavaScript
OFFLINE

Re: Using JRoute() inside Javascript

1 week, 2 days ago
Yes Sir.. figured that
  • Page:
  • 1
Moderators: Pooja Menon

Upcoming Events

No events found.

Who's Online

7 users online