i'm a newbie on jquery i'm studying it with the latest version, and following a book called "Learning Jquery" but iencountered a error, and i don't know what the problem is:
i copied the code from the book like this:$('a[@href^="mailto:"]').addClass('mailto'); to try to change the links which start with "mailto" to the new class "mailto" but there's a error reported: uncaught exception: Syntax error, unrecognized expression: [@href^="mailto:"]
I'm having a problem with the image swap javascript provided by Dreamweaver. Here are the versions of all software concerned:
Internet Explorer 6 Firefox 2.0.0.7 Dreamweaver 4 - function MM_swapImgRestore() { //v3.0 - function MM_preloadImages() { //v3.0 - function MM_findObj(n, d) { //v4.0 - function MM_swapImage() { //v3.0
The image swap works fine in Firefox. The problem occurs in IE6. The roll over image in the 4-6index.html page loads the onmouseover image of all the images over the schedule image at the bottom (see website).
When you follow one of the links, such as "see the activities" the image swap script fails completely on that page and produces an error, which is identified, in the debug brief, as being on line 2, character 5 (which, if i'm not mistaken is the character > )
I've created a test page using the same Dreamweaver code for 3 image roll overs and the code worked fine. Upon comparing the code from that test page and my website i see no difference. The Javascript in the header is identical and the code in the body follows the same structure. Code:
IM NEW AT THIS AND I'M WORKING ON MY FIRST WEBSITE. I USED iWED AND I DON'T UNDERSTAND WHY IT WON'T WORK. WHENEVER I TRY TO OPEN IT IT SAYS: Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_html/beto/index.html on line 1
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">[code].....
I'm receiving the following error: Error: uncaught exception: Syntax error, unrecognized expression: # However all the functionality of the script continues to work, I need to get rid of the error as it looks pretty bad on client's sites and want to make sure the script isnt doing anything funny. The basic set up is a number of Select boxes, When selecting an option in the select boxes, I loop through a JSON stock array to see if the item is in stock and to then enable / disable the relevant options in the other selects based on the stock record. The error (as far as I can see) appears on this line: $("#option" + nextid + " option").filter(function(){
I'm integrating google map to my site running under phpmydirectory.The google map display nicely in FF, however, there are alignment problems to all the controls (up, left, right, down buttons) and the map is not shown in the page.
I have a jquery Tree program. I got from the net written by Mauro. here we can drag and sort the node.To run this program, we need 2 JS file.
1) jquery.simple.tree.js 2) Jquery file.
For Jquery I used latest version. 1.4.2.When I ran the program, tree working fine, But when I start to drag, it dragged but displayed a JS error "Invalid Argument". I am using IE8. My project work only in IE8.So I tried it with Jquery previous version, in IE8, the drag working with Jquery 1.3.2.But I should use Jquery 1.4.2 (Latest version).The program is a attached herewith.how I can use it with Jquery 1.4.2 and jquery.simple.tree.js.
It is not a big program, only basic things are there. You can run with out any server.Please check it.and help me combinationhow i can run this program with out JS error with a jquery. simple.tree.js and jquery 1.4.2 in IE8.I think if it works on IE 8 with JQurey 1.4.2, lot of people can work with this and thanks for the script to original author Mauro.
I have this JavaScript that is supposed to show random products from my database, and show something different every time you refresh or revisit. But I keep getting an error - on my computer - that says Syntax Error in Line 2.
There is no error on most other computers, and the products show, but another script on the page, an article title scroller, stops - on most computers, but not all. It says "no articles available".
I've tried the script on an asp page and a htm page, all by itself, but it still doesn't work. I tried changing all kinds of settings in my browsers, but nothing helps. I'm on XP, SP2, which I've heard has some problems handling javascripts. I don't know if that's true, but if it is, I know that lots of other people will have the same problem as me when they view the page. Actually, I think it is a good thing, that my computer is pointing out this error. I get the error message in IE6, but in NS8 and FF, I just don't see the products. No error message.
Anyway, here are the first three lines of the script:
<% if TRIM(request.servervariables("http_referer")) = "" then %>
Using spellcheck, I found that referer is spelled wrong, it should be referrer. I don't know if that is right for javascript (or asp?), but correcting it didn't make a difference.
The script is JavaScript on an asp page, and it is called in an htm page.
I keep getting a syntax error on line 3 and 4 of this very simple script. Normally firebug would give me enough info to fix this but jQuery escapes me. I can see no reason for the errors. <script type="text/javascript"> $(".shipping-switch[name='shipping_switch']").click(function(){ var selector = "div#sub-address"; if($(this).val() === "1"){ $(selector).slideDown("fast"); } else { $(selector).slideUp("fast"); }}); </script>
I'm unable to find solution for dreamweaver reporting syntax error with the following page:
[URL]
I am revamping my website so the css is not set up for this page but that's okay. I have put in the various javascripts based on the product so the page is similar to a template. The syntax error is for the second set of boxes, the bracelet length options, and specifically for line with:
form.amount.value = 6.5 inches; from the following script-- <SCRIPT language=javascript> function BraceletLength(form) {
I have the below code and it works fine except the part where I need to access data.Picture. I know its a syntax error but I can't seem to understand what.
My website have object required error on line 166, and syntax error on line 4, I cant figure out this error. Here is the url 3gmobile.co.in and screenshot
I've done my first public XHTML / CSS page, and it looks fine, but in IE6 there's an error message when the page is first loaded that says there's a syntax error in line 2. If I reload the page the error message disappears. I don't have an XML prolog, just
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
I am using the following simple script for validatingmy form:
Code:
When the page is rendered I keep getting a 'Syntax Error'..and it is specific to the validation...but I do not know why. When i remove one of the textboxes from the validation script it works.
i get a syntax error message (line 43 character 82) for this line if (document.contest.month.selectedIndex=5 && document.contest.day.selectedIndex=31) { what am i doing wrong here (it is an alert message if the person's birthday is the 31st of may)
This is my first post to the group, so please be gentle :) For some unknown (to me at least) reason I'm getting a syntax error in IE from the following code
I want to have a textarea update a database column and then pull down the info from that column and display it, without refreshing. I'm using JQuery and AJAX and PHP and SQL to do this. So far I've been able to update the database row using my $.post() call. The strange thing is, my variables don't seem to be passing to the page - when I try to echo them or look at them they don't show up. Here is my simple index page and call (page names aren't indicative of what I'm trying to do, just placeholders):
I know I have a simple syntax error. Trying to call a function which changes the style of a div element on mouseover. Heres my code. Javascript function countermarker1(){ var box1 = document.getElementById('countermarker1box').style.display box1 = "block" } Variable is used cause I will have to use it more often later in the script.
HTML <div id="countermarker1"> <img src="countermarker.jpg" width="20" height="14" onmouseover = "countermarker1()"; /></div> CSS (know its not really relevant just to avoid questions about whether its right) #countermarker1box { height: auto; width: 80px; display: none; } JS and css is externally srced.
Basically, the script is an onMouseover slideshow which works fine. The problem is that in internet explorer, it says there is a syntax error relating to the javascript code. (this doesn't appear on chrome or firefox) here is the code:
Code: <script> <script language="JavaScript1.1"> var myimages=new Array() var gotolink="#" </script>
basically, by putting the script language here, IE8 is saying there is a syntax error! removing it stops the error but stops the script from working. What can I do here? If I put it in an external .js file instead (right now it is in the head of the HTML page) will this solve the problem?
I'm trying to diagnose/solve a problem with internet explorer, whereby sometimes the form submits, and other times IE produces an 'invalid syntax' error.
First, I have a form, and within the form is a button bar and a <div> block which contains a table of parameters. The div block is used to create a layer.
Now, when the table contains 15 or less rows in it, any button on the button bar which calls form.submit() works as it should, however, where the table has 16 or more rows, the form.submit generates an "invalid syntax" error. IE doesnt provide any more detail on this error. Code:
I am trying to create a javascript library in Lotus Notes , I am pasting in the jquery code into my library but it will not compile. Is this a jQuery syntax error or Lotus Notes error you think? I get the same problem with the 1.4.2 release of jQuery.
I'm passing a variable to a selector. I have found a few resources and tried to implement them but they're just not working for me. I am trying to find href that match my variable and am working with the following:
var itemLink = /site/Mario-Kart..etc. $("a[href=" + itemLink + "]").......etc.
I receive an error "Uncaught Syntax Error unrecognized expression: [href=/site/Mario-Kart..etc. ]" I have been placing the quotes in different places to correct the syntax but to no avail. Also, this works with JQuery v1.44 and earlier but not after.
Lots of submenus and such, and just can't get this going. Works fine if I remove the submenu aspects of the script, however with these, it returns the error: uncaught exception: Syntax error, unrecognized expression: #