Skip Navigation

[Resolved] Accessing view in Javascript

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by igorL-3 2 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#2081335

Tell us what you are trying to do? I have a view that outputs a number of names. I need to access the output of this view in JS without displaying the view on the page. I can call the view and hide it on the page but is it possible to read the output of a view directly into JS?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#2081611

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Igor,

Thank you for getting in touch.

Unfortunately no this is not possible, you will need to output the view information on the page itself in order to pass the data into javascript.

Thanks,
Shane

#2084411

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.