473,473 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IE JScript Error "Expected Identifier"; What does it actually mean?

1 New Member
I'm new to jquery, and hoping it will make my client side coding more friendly (particularly with regards to ie).
As is usually the case, I've got some code that works nicely in ff, but kicks out an "Expected Identifier" error.
So, I've got two questions:
  1. What exactly does that mean? What is an "Identifier," particularly within the context of Internet Explorer and JScript?
  2. Why am I getting it? The code that is producing the error is below:
Expand|Select|Wrap|Line Numbers
  1. $.getJSON('pages.json.php', function(data) {
  2.         var myLive = " ";
  3.         var myDelete = " ";
  4.         var html = "";
  5.         for (var i=0; i<data.sections.length; i++) {
  6.  
  7.             if (!data.sections[i].golive.length) {
  8.  
  9.             } else {
  10.                 myLive = '<a href="#" onclick="$(\'#';
  11.                 // Code breaks on the above line
  12.                 ...
  13.             }
  14.             ...
  15.         }
  16.         ...
  17. });
  18.  
The above code is part of an anonymous function that gets called by $.getJSON('....', function(data){...}). I do declare myLive as local within that function: var myLive = "&nbsp;";
May 19 '10 #1
1 3648
Plater
7,872 Recognized Expert Expert
It looks like you're doing some funky quotations there.
myLive = '<a href="#" onclick="$(\'#';
I cannot even figure out what you are shooting for with that string.
May 20 '10 #2

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

Similar topics

6
by: craigbeanhead | last post by:
Hi, I'm teaching myself C from K&R2. I've come across something that I really don't understand. When I try to compile the following code (in VC++7), I get an "undeclared identifier" error. When...
6
by: Jim H | last post by:
I have an app I working on that was working fine a few days ago. Now I get a jscript error: Microsoft JScript runtime error: Object expected in a part of the code that has not been modifed or...
11
by: westplastic | last post by:
This one is driving me insane. The script works perfect on Firefox, but Internet Explorer keeps complaining about "Error Object Expected" and stuff like that. I've run it through Firefox's Java...
7
by: Tony Tone | last post by:
I am having trouble resolving this issue: Server Error in '/test' Application. -------------------------------------------------------------------------------- Compilation Error Description:...
6
by: thistleryver | last post by:
I thought it meant that I hadn't declared a variable but I have. int DoubleNumbers(int seq, int *digitNum) { int i, j; for (i = 0; i = 9; i++) for (j = i + 1; j = 9; j++) if (seq...
13
by: hn.ft.pris | last post by:
Hi: I have the following simple program: #include<iostream> using namespace std; int main(int argc, char* argv){ const double L = 1.234; const int T = static_cast<const int>(L); int arr;
8
by: trappedIntoCode | last post by:
Hi Everyone, Here is a part of javascript code that works well in FF2 but shows above error in IE6 and error "missing name after . operator" . function...
4
by: CodeTilYaDrop | last post by:
I am still pretty new to programming, and I sometimes can not figure something out. I am getting an error with this line in my program: Public void count_syllables(int count_syllables) I get...
9
by: Rohit | last post by:
I am trying to initialize an array whose initializers depend on value of Enums. I take enum and then decide the initializer value, so that even if enum value changes because of addition to list...
5
by: nina01 | last post by:
Hi! I'm working on a mini compiler with flex and bison. The ".l" and ".y" files are generated successfully. However, when I try to compile the hole thing using the command "gcc -o comp comp.tab.c...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.