Jump to content


Photo

URL Links


  • Please log in to reply
4 replies to this topic

#1 hschir

hschir

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:New South Wales, Australia
  • Interests:I have a degree in Engineering (electronics major) and am currently studying for MSc in Physics

Posted 14 April 2012 - 09:02 PM

Is there someway I can put a link to a URL on a DC page (a sort of back button to the html page with the embedded link in it that calls the page for display on my server) ?

#2 AzeoTech

AzeoTech

    Guru

  • Administrators
  • PipPipPipPipPip
  • 4641 posts

Posted 15 April 2012 - 08:19 PM

Sure, in the click event put:

document.location = "http://www.myDomain.com"

#3 hschir

hschir

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:New South Wales, Australia
  • Interests:I have a degree in Engineering (electronics major) and am currently studying for MSc in Physics

Posted 16 April 2012 - 11:36 AM

Even though the other method outlined by me in another post worked - I'll give this a go as well (less code).

The question remains - how would I know that document.location ="" is a valid command?

#4 AzeoTech

AzeoTech

    Guru

  • Administrators
  • PipPipPipPipPip
  • 4641 posts

Posted 16 April 2012 - 05:52 PM

Everything in DAQConnect is javascript, and document.location = "" is a standard javascript command. You can google it. The trick is usually understanding where this javascript gets executed. It runs in a sandbox that makes it easier for you to access certain things, but harder for you to access others (that you probably should touch). That's why document.write() that you queried about won't work, among other reasons...

#5 hschir

hschir

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:New South Wales, Australia
  • Interests:I have a degree in Engineering (electronics major) and am currently studying for MSc in Physics

Posted 16 April 2012 - 06:08 PM

Thanks - I Googled it earlier ...