Solved

Javascript Error Help

Posted on 2012-03-24
3
244 Views
Last Modified: 2012-04-03
I'm getting an error with this code, can you please tell me if you see anything wrong.  The error is only in IE8.  Chrome and FF work just fine.

  // AUDIO:
    $('#jplayer_music_link').click(function(){

    	window.open($(this).attr('for-lable'), "My Musics", "width=275,height=500");

    }); // end of jplayer_music_link block

Open in new window

0
Comment
Question by:deputycheek
3 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 37761812
try this:

 // AUDIO:
    $('#jplayer_music_link').click(function(e){
        e.preventDefault();
    	window.open($(this).attr('for-lable'), "My Musics", "width=275,height=500");

    }); // end of jplayer_music_link block

Open in new window

0
 

Author Comment

by:deputycheek
ID: 37761819
What is it doing?
0
 
LVL 7

Expert Comment

by:Lalit Chandra
ID: 37763485
Remove spaces from the second argument of the window.open i,e change

My Musics
to
My_Musics

OR
if it still does't work then make the second argument( "MY Music" to empty).

Note : In window.open function,  Microsoft does not support a name as second argument. When you look at the official documentation page, you see that Microsoft only allows the following arguments, If using that argument at all:

_blank
_media
_parent
_search
_self
_top
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Capture logon name 13 73
how can i count words? 2 44
Performance for Office 365 6 49
How can I repeat this modal box over and over again...? 2 19
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

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