473,396 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with Onclick javascript: Expected ';'

Hi - totally ignorant on javascript need some help, getting the above error, my code is;

Expand|Select|Wrap|Line Numbers
  1. if('{!Event.Audit_Id__c}' == '')
  2. window.location.href = 'https://eu1.salesforce.com/setup/ui/recordtypeselect.jsp?ent=01I20000000EQ62&retURL=%2Fa0F%2Fo&save_new_url=%2Fa0F%2Fe%3FretURL%3D%252Fa0F%252Fo&00N20000001ebQ6={!Event.Subject}&00N20000001ebQE={!Event.Id}'; 
  3. else 
  4. alert('Event already linked to an Audit record'); 
  5. }
Mar 18 '11 #1
0 948

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Julius Mong | last post by:
Dear all, according to the ASV3 manual known problem section, to make an <a> execute some Javascript onclick: ...
5
by: Mike | last post by:
In my previous post, I wrote: > ... > GOAL: (very simple) Provide a hyperlink which, when clicked, > calls a javascript function which opens a new URL. > ... > PROBLEM: The following code...
2
by: Piyu | last post by:
Hi I have problem with javascript code. Following is my code <div class="col1"><input name="loginName" type="text" class="txtbox" value="collins_sd@hotmail.com"></div> <div...
8
by: nkoriginal | last post by:
Hi: (this is a dummy question, I know, but I tried many times and I cant) I need to insert this javascript option inside the input, I can't insert any funtion in <head> I've this two...
5
by: Rabel | last post by:
I am a flash designer so I dont know a whole lot about the javascript submit buttons (I may not even be describing it right sorry) but here is the code I am using. <IMG name="Checkout"...
1
by: Andy Roelandt | last post by:
Andy Roelandt Newbie 1 Posts Today 12:32 PM #1 Printing problem with JAVASCRIPT + IE --------------------------------------------------------------------------------
3
by: sonsofsound77 | last post by:
Hi all I'm new to JavaScript and working my way through the Teach yourself JS 1.5 book. All of the scripts in the book work perfectly apart from the listing 20.3 piano example....
1
by: jobs | last post by:
re: Attributes.Add Onclick (javascript) trapping CANCEL Hello. The following asp.net/vb.net code produces a confirmation Submitbutton.Attributes.Add("onClick", "return confirm('Is this...
16
by: viki1967 | last post by:
Hi all. I have problem with this string javascript: onclick="if(confirm('Confirm?')) location.href('form.asp?A=terry.d'arby'); return false; The error javascript is: Error: Expected ')' ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.