• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

active desktop

Tinman

OSNN One Post Wonder
#1
I have a question, I have just spent days on trying to fix a problem , but I was trying to fix the wrong problem.

Active destop script by Matt:
<a onClick="exec('sol.vbs'); return false;" href="java script:void(0)">Launch Solitare</a>
I am using Xara's webstyle4 to generate a navbar for me.I have a "url" field and a "target" field to work with.the only way I can get a little bit of result is if Itype in the url field "javascript:exec('sol.vbs') target="_self"But that doesn't work properly, and I don't know how to enter the rest of Matt's line into my URL field.I usually just use a window.open function and then tupejavascript:fullwin('music.htm') for webstyle's nav bar "url" field.Can anyone help me with this please?Thank you so much,Ryan
 

madmatt

Bow Down to the King
Political User
#2
The URL field is probably equal to HREF=

Can you manually edit the file this webstyle4 creates? If so you can add the onClick statement in yourself.

Also, have you tested this inside IE. Usually a good way to debug any issues.
 

Tinman

OSNN One Post Wonder
#3
madmatt said:
The URL field is probably equal to HREF=

Can you manually edit the file this webstyle4 creates? If so you can add the onClick statement in yourself.

Also, have you tested this inside IE. Usually a good way to debug any issues.
I can manually edit the .js file, which I used to be able to do because earlier version, the JS was a lot more simple.
This version is over my head.
I also always try it in IE first before seeing if it works in active desktop.

If it's not an easy fix, I do not wish to take up any of your time,
I only used the nav bar program because I thought it would save me the time of writing one, it turns out it's been my biggest headache.
I have also tried to find the answer in Xara's help forum with no avail.

Here's a cpl lines from the .js file:
if(typeof(loc)=="undefined"||loc==""){var loc="";if(document.body&&document.body.innerHTML){var tt=document.body.innerHTML;var ml=tt.match(/["']([^'"]*)menu_.js["']/i);if(ml && ml.length > 1) loc=ml[1];}}

mainMenuItem("menu__b4",".gif",26,93,"javascript:fullwin('music.htm')","_self","tunes",2,2,"menu__plain");

submenuItem("Summer tunes",loc+"file:///C:/Personal/My Playlists/Playlist1.wpl","","menu__plain");

these lines work.

I have spent this evening trying to figure out how to insert your href in there, with no luck I am afraid.

one last thought, is there a way to write this line in question, as a js function?
then i could just have the navbar call the function in the URL field.?

Thanks for your interest.
Ryan
 
Last edited:

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,240
Members
89,015
Latest member
loxioalix