[Proto-Scripty] Re: Error in prototype js

2009-05-22 Thread mohd

hi mahen

can let me know whats the solution as i have got the same problem?

thanks

On May 21, 11:17 pm, mahen chiku.4...@gmail.com wrote:
 Hi All

 I got the solutions thanks everbody!!

 Mahendra Varandani
 Software Engineer
 IDes Solutions
 Gurgaon
 Ph-9990869026

 On Thu, May 21, 2009 at 6:08 PM, mahi chiku.4...@gmail.com wrote:

  Hi All

  i am working on a site where i wanna to use jquery and prototype js on
  same page but when i add both of the scripts on same page then
  prototype js will give this error

  Error: element.dispatchEvent is not a function
  Source File: /lib.js/prototype.js
  Line: 4072

  and when i remove the jquery.js from the page then the prototype js
  works fine ..

  pl help me why these both files are conflicting each other?? how do  i
  resolve both even both files are necessary to me.

  Thanks in Advance

  Warm  Regards
  Mahendra Varandani

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Error in prototype js

2009-05-22 Thread Chris

Hi,

prototype and jquery may not be compatible (as far as I know at
least), because they share some common functions (for exampe the $()-
function). There is a way to force jquery to noconflict mode (http://
docs.jquery.com/Using_jQuery_with_Other_Libraries), so both libraries
may work on the same website. I never tried it out for myself.

Greetings from Germany,
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Error in prototype js

2009-05-22 Thread mahen
hi

yup chirs is correct both libraries are using same functions so i just added
these lines

script type=text/javascript src=../lib.js/jquery.js/script
script language=javascript
 jQuery.noConflict();
/scriptscript type=text/javascript
src=../lib.js/prototype.js/script


and in place of* $ ONLY FOR JQUERY FUNCTION* i had user jQuery. tht's it

happy Coding

Mahendra Varandani
Software Engineer
IDes Solutions
Gurgaon
Ph-9990869026


On Fri, May 22, 2009 at 4:46 PM, Chris c...@clicksports.de wrote:


 Hi,

 prototype and jquery may not be compatible (as far as I know at
 least), because they share some common functions (for exampe the $()-
 function). There is a way to force jquery to noconflict mode (http://
 docs.jquery.com/Using_jQuery_with_Other_Libraries), so both libraries
 may work on the same website. I never tried it out for myself.

 Greetings from Germany,
 Chris
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Error in prototype js

2009-05-21 Thread mahen
Hi All

I got the solutions thanks everbody!!

Mahendra Varandani
Software Engineer
IDes Solutions
Gurgaon
Ph-9990869026


On Thu, May 21, 2009 at 6:08 PM, mahi chiku.4...@gmail.com wrote:


 Hi All

 i am working on a site where i wanna to use jquery and prototype js on
 same page but when i add both of the scripts on same page then
 prototype js will give this error

 Error: element.dispatchEvent is not a function
 Source File: /lib.js/prototype.js
 Line: 4072


 and when i remove the jquery.js from the page then the prototype js
 works fine ..

 pl help me why these both files are conflicting each other?? how do  i
 resolve both even both files are necessary to me.


 Thanks in Advance


 Warm  Regards
 Mahendra Varandani
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---