UMB-CS-682-Team-03 / tracker

0 stars 0 forks source link

Parse the classhelp link to get the parameters from the href, and use them in webcomponent #5

Closed patel-malav closed 6 months ago

patel-malav commented 7 months ago

Currently the classhelper uses frameset to open a new window and show the template, the link for this new window is an anchor tag href attribute.

From Javascript parse this href to get the parameters required to open a new window using the explore javascript in Issue https://github.com/UMB-CS-682-Team-03/tracker/issues/4

patel-malav commented 7 months ago

Using browser API URLSearchParams to parse the url that is being read from the class help link

patel-malav commented 6 months ago

Using Browser API - (URL)[https://developer.mozilla.org/en-US/docs/Web/API/URL] to parse the helpUrl, however there url is incomplete as it needs to be of format "{protocol}://{host}/{path}?{queryParameters}"

The path provided in URL is just the resourse path, so a base url needs to prepended.

"{protocol}://{host}/{tracker}/{rest/data}/{resource path}?{queryParam}"

patel-malav commented 6 months ago

Issue - do we have to fix the return properties on nosy list return table?