Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

embeding href attributes

Status
Not open for further replies.

tamkag

Programmer
May 22, 2006
2
US
Hello

document.write("<font class='DataIconText'><A HREF=<WS:FormatODSCond hasValue='yes'>'javascript:windowOpenInsight(\"<WS:FormatURL/>\",\"<WS:FormatURLTarget/>\")'</WS:FormatODSCond><WS:FormatODSCond hasValue='no'>'<WS:FormatURL/>' target='<WS:FormatURLTarget/>'</WS:FormatODSCond> title='<WS:FormatMetaTypeName/>'><WS:FormatMetaType/></A></font>");

you can see what is my problem. I have this long href line and it is not working. I think the problem is in the javascript: attribute.

Please note that any tag that has WS is a special tag for some product.

Sorry for the unclarity of this line of code but its driving me crazy. Any help is highly appreciated.

Thanks
 
If you really think that the javascript: attribute is screwing up your code then try this:
Code:
document.write("<font class='DataIconText'><A HREF=<WS:FormatODSCond hasValue='yes'>'java[!]" + "[/!]script:windowOpenInsight(\"<WS:FormatURL/>\",\"<WS:FormatURLTarget/>\")'</WS:FormatODSCond><WS:FormatODSCond hasValue='no'>'<WS:FormatURL/>' target='<WS:FormatURLTarget/>'</WS:FormatODSCond> title='<WS:FormatMetaTypeName/>'><WS:FormatMetaType/></A></font>");

I have no clue if that will work because I have no way of testing it, and I almost never use document.write.

-kaht

[small]How spicy would you like your chang sauce? Oh man... I have no idea what's goin' on right now...[/small]
[banghead]
 
What are all the WS tags from? What generates those? I couldn't find anything in a Google search, and haven't seen those before.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top