Solved

popupMsg

Posted on 2006-11-22
2
271 Views
Last Modified: 2012-06-27
hello
I have a pop up on my page. in the middle of an if else statement it works if I have this
<a href="javascript:;" onClick="MM_popupMsg('Login to view National Associates!&nbsp;&nbsp;&nbsp;')">

but if I have this it fails what can I do to make it work. I know there is a value for <%=proper(Recmostofu.Fields.Item("firstname_usr").Value)%>.


    <a href="javascript:;" onClick="MM_popupMsg('Login to view <%=proper(Recmostofu.Fields.Item("firstname_usr").Value)%>'s National Associates!&nbsp;&nbsp;&nbsp;')">

regards

Kenny
0
Comment
Question by:thatelvis
2 Comments
 
LVL 30

Accepted Solution

by:
third earned 125 total points
ID: 17994473
\'

<a href="javascript:;" onClick="MM_popupMsg('Login to view <%=proper(Recmostofu.Fields.Item("firstname_usr").Value)%>\'s National Associates!&nbsp;&nbsp;&nbsp;')">
0
 
LVL 3

Expert Comment

by:viveksg
ID: 17994505
C#
==
Assign  proper(Recmostofu.Fields.Item("firstname_usr").Value)  to a hidden field or a public varaible;

SCRIPT
=====
function MM_popupMsg()
{
  var sValue = '<%=myValue>'; // public variable

  alert('Login to view ' + sValue + ' National Associates');
}

HTML
====
<a href="javascript:;" onClick="MM_popupMsg()">
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question