Solved

jQuery dialog not defined

Posted on 2012-03-25
6
571 Views
Last Modified: 2012-03-26
I am hoping that someone might be able to help me understand why I can't get the jQuery dialog.  When I try to load the page: http://www.adreflex.com/portal/annademo/test_photo.cfm I get the following error:

$("#dialogWarning").dialog is not a function

Also, if anyone can give me a suggestion of what to add so that the arrows are positioned on either side of the photo that would be very much appreciated.

Thanks for any help that you can provide
0
Comment
Question by:WestCoast_BC
  • 2
  • 2
  • 2
6 Comments
 
LVL 13

Expert Comment

by:stergium
ID: 37764579
hello.
the error that i'm receiving is this
$("#slider").easySlider is not a function

for starters move this
<script type="text/javascript">
$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true
});
});
</script> 

Open in new window

in the head section and not inside the body.
0
 
LVL 13

Expert Comment

by:stergium
ID: 37764587
and i also have some questions.
why do you use so many times so different versions of jquery? one is enough (the latest probably)
where is your js of easy slider? did you forgot to include it?
0
 
LVL 7

Expert Comment

by:Lalit Chandra
ID: 37764608
you link gives the following error
 $("#slider").easySlider is not a function

Have you added the easySlider plugin reference on your page.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:WestCoast_BC
ID: 37766096
My apologies, my sample page was not correct.  Can you please try it again.  The text at the bottom of the screen that says that the session is about to expire should not be displayed.

http://www.adreflex.com/portal/annademo/test_photo.cfm
Thanks again
0
 
LVL 7

Accepted Solution

by:
Lalit Chandra earned 500 total points
ID: 37766807
There are multiple times you have defined the jquery js version,  Ui , css.
So,Remove all jquery js files,jquery css files and Jquery ui js files.

simply add the following at the head section in the sequence defined below

   <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
       

This will remove all the problem and get your page running.
0
 

Author Comment

by:WestCoast_BC
ID: 37766926
Thanks, looks like I have some clean up to do.

Anyone know what I can do to get the arrows to display on either side of the picture?
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now