By lepoja on
Hi people,
I'm trying to add dialog on one of my contents. Here is my code:
$(document).ready(function(){
$("#dialog").dialog();
});
Offcourse I have div named 'dialog' in the content where I wont dialog to appear.
I added js file (with this code) by adding "scripts[] = js/myjs.js" to .info file of my theme. Here I have many js functions. However thisone with the dialog wont work - error $("#dialog").dialog is not a function. I have installed jQuery UI module as well as jQuery Update module.
Should I install anything else?
Comments
Get this sorted?
Did you sort this?
It doesn't look like you need to install anything else.
What html are you using?
No...
When I put this JavaScript code in blank htnml page (off course I include jquery javascript in header) everything works fine. But when I type it in drupal content (story, page, etc) it wont work. I tought that it has something to do with jQuery Update module not working fine - so I switched it off. But nothing changes simeple jQuery doesn't work on my site.
Thanks for reply
Does any Javascript work on
Does any Javascript work on the page?
And have you checked that there isn't a conflict?
Some modules also use jQuery, it may be that something is conflicting?
Same problem too.
Same problem too.
-Pol-
https://not-a-number.io/
Solved by adding
Solved by adding jquery_ui_add("ui.dialog"); to template.php.
-Pol-
https://not-a-number.io/
thank you
I'm sure this is massively newb, but my whole dialog is transparent. How do I gain access to setting the background colors and all that? I thought that jQuery had a default theme, but that doesn't seem to be showing up.
Hakuna Matata
Try? $jquery_ui_path =
Try?
http://modelagnostic.co.uk/