Solved

changing javascript tag

Posted on 2010-11-29
2
521 Views
Last Modified: 2012-05-10
i have a following javascript :

<script type="text/javascript">

cmSetClientID("60375269",false,"testdata.xxx.com","yyy.co.uk");
cmCreateConversionEventTag("OWNER", "1", "CONTACT US", "0", "", "");
</script>

I want to change the value of OWNER to GUEST in the javascript using the onfocus on the form on the same page.. Is this posible ?best if I can use Mootool..
0
Comment
Question by:bcv2010
2 Comments
 
LVL 6

Accepted Solution

by:
Codebot earned 500 total points
ID: 34229834
yes this is possible  just put argument as a gloabl variable and then you can change its value in any function.
var fargu="OWNER"

then
<script type="text/javascript">

cmSetClientID("60375269",false,"testdata.xxx.com","yyy.co.uk");
cmCreateConversionEventTag(fargu, "1", "CONTACT US", "0", "", "");
</script>
on onfocus function change value of fargu to Guest
0
 

Author Closing Comment

by:bcv2010
ID: 34238408
clear and easy to follow
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JScript Error 2 55
I.E. 9 JQuery Menu disapears when page is refreshed? 3 99
Joomla 3 insert link 1 30
Converting dates in JavaScript 2 35
Change Joomla Logo Graphic This tutorial goes over the steps to change the Joomla Logo in the template you are using. For this example we will be assuming you are using the rhuk_milkyway Joomla Template which is installed by default. You will …
Here is a tutorial for making your own Joomla templates. Note before reading, you should have some existing knowledge of web development using HTML and CSS. Design Layout: Design your template in a graphics program like Adobe PhotoShop or Corel…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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