hi there i am trying to run the lightbox and a slider on a single page the light box is working allrigh but when i try to include the slider in the same page it generates error because i have to include the jquery.js file to run it .i think it is a problem with the order of the file include. the error which i receive is here
and on the prototype.js which is included for the lightbox i am stucked please any one here
error:
element.dispatchEvent is not a function
[Break on this error] element.dispatchEvent(event);
my code is here -
<!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">
-
<head>
-
<meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET;?>" />
-
<title><?=SITE_TITLE;?></title>
-
<style type="text/css">
-
img, table, tr, td { behavior: url(iepngfix.htc) }
-
</style>
-
<link type="text/css" rel="stylesheet" href="includes/styles.css" />
-
<link type="text/css" rel="stylesheet" href="includes/lightbox.css" media="screen" />
-
<script type="text/javascript" src="includes/methods.js"></script>
-
<script type="text/javascript" src="includes/prototype.js"></script>
-
<script type="text/javascript" src="includes/scriptaculous.js?load=effects,builder"></script>
-
<script type="text/javascript" src="includes/lightbox.js"></script>
-
<script type="text/javascript" src="includes/jquery.js"></script>
-
<script type="text/javascript">
-
$(function(){
-
$("#mostrar").click(function(event) {
-
event.preventDefault();
-
$("#caja").slideToggle();
-
});
-
-
$("#caja a").click(function(event) {
-
event.preventDefault();
-
$("#caja").slideUp();
-
});
-
});
-
</script>
-
<body style="background:url(images/img-01.jpg) no-repeat top left; background-attachment:fixed;" onload="MM_preloadImages('images/home-active.gif','images/aboutus-active.gif','images/product-active.gif','images/newarrival-active.gif','images/philosphy-active.gif','images/contactus-active.gif','images/s-1-s.gif','images/s-2-s.gif','images/s-3-s.gif','images/s-4-s.gif','images/s-5-s.gif')">
-
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
-
<tr class="text-white-11">
-
<td align="left" width="15"><img src="http://bytes.com/images/arrow-1.gif" width="12" height="5" border="0" alt="" /></td>
-
<td align="left"><a href="#" id="mostrar">Details</a><div id="caja"><p>Lorem ipsum dolor sit amet,...</p></div></td>
-
</tr>
-
</table>
-
</body>
-
</html>
-
regards,
omer aslam
hey thanks alot got it fixed
regards,
omer @acoder 3 5868
hey thanks alot got it fixed
regards,
omer @acoder
No problem. Glad it's working.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Darrel |
last post by:
I'd like to use the jquery datepicker.
I have a asp.net 1.1 application set up with forms authentication protecting
an admin directory:
<location path="admin">
<system.web>
<authorization>...
|
by: liketofindoutwhy |
last post by:
I am learning more and more Prototype and Script.aculo.us and got the
Bungee book... and wonder if I should get some books on jQuery (jQuery
in Action, and Learning jQuery) and start learning about...
|
by: Aaron Gray |
last post by:
There does not seem too be anyway to test if two jQuery references are the
same element.
Given :-
... <div id="1"></div ....
Then :-
alert( $("#1") == $("#1"))
|
by: RobG |
last post by:
Do some of the regulars here need to re-think their (sometimes
strident) opposition to libraries? Both Microsoft and Nokia have
announced support for jQuery.
It seems to have gained quite a bit...
|
by: souporpower |
last post by:
Hi All
I am trying to print some HTML using JQUERY. I am posting the code. I
don't
see the alert. It seems as though the function is not registered when
the
document is loaded. Can someone...
|
by: souporpower |
last post by:
Hello All
I am trying to activate a link using Jquery. Here is my code;
<html>
<head>
<script type="text/javascript" src="../../resources/js/
jquery-1.2.6.js"</script>
<script...
|
by: metaphysics |
last post by:
I am using a jQuery script called LocalScroll, and I have a quick problem that needs fixing. The demo for the script is here: jQuery.LocalScroll - Regular Demo, and the documentation is here: Ariel...
|
by: pradeepjain |
last post by:
<html>
<head>
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.rating.js" type="text/javascript" language="javascript"></script>
<link...
|
by: jrod11 |
last post by:
hi,
I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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...
|
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: 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...
| |