drupal-6


jqModal popup does not opens


I'm using drupal 6 form, and ahah for ajax form submit. On form submit I perform some validation and allows user to choose options that display on jqModal popup.
JS script that I'm using for jqm popup is:
$(document).ready(function() {
$("#dialog").jqm();
});
and uses tag to open the jqm popup
Choose option
<div class="jqmWindow" id="dialog">
<h2 id="modalHeading">Select one</h2>
x
<form> form values</form>
</div>
Instead of opening popup window, it changes the url by adding # at the end.
Same code is working fine on the other page of my website.
jqModal.js file is included to the page on pageload.
The default trigger is any element with a class of "jqModal", so your anchor element (Choose option) is correct and ought to show the modal when clicked.
Is anything showing up in the javascript console of the page?
Perhaps there's another javascript function that's preventing the click event from bubbling? The .click() events are assigned in a FILO (first-in, last-out) manner, so if another click event return false, the jqModal assigned event may never get called.
You can also be explicit and try;
$(document).ready(function() {
$("#dialog").jqm({trigger: false});
$("a.jqModal").click(function(){
$("#dialog").jqmShow();
});
});

Related Links

menu item in drupal
Drupal event registration and attendance recording
How do i use Jquery menu in drupal
How to show profile field Values to one simple page in drupal 6?
How can you safely add a dependency to a Drupal module?
Drupal wysiwyg question
How do you separate the template of a blog block in Drupal?
how to know if user is seeing home page or not?
drupal_get_form is not passing along node array
Drupal show / hide fields in view
How do I make the Drupal-Core Forum display only to members, and ask for login details otherwise
Drupal Views limiting content posted by group membership
drupal body class
Drupal does not detect an installed module
Drupal: How can I run a custom function every time a user posts a comment?
arg function not using URL alias

Categories

HOME
osgi
drivers
push-notification
mfc
path-finding
google-api-php-client
smarty
tesseract
grep
jsp-tags
react-redux
serverspec
echarts
convolution
bs4
android-youtube-api
webrequest
basic
awesome-wm
google-translate
quartz-scheduler
java-3d
jasonette
functional-testing
pass-by-reference
kudan
autosys
crystal-reports-2010
facebook-access-token
intel-pin
bootstrap-material-design
c++-amp
nouislider
javascriptcore
preg-match-all
exuberant-ctags
oracle-fusion-middleware
pdb
subset-sum
geopositioning
catalog
swisscomdev
code-search-engine
sharefile
sqlite2
android-fingerprint-api
email-templates
core-plot
jvm-languages
glew
nomethoderror
nxlog
midl
flickr-api
fault
atomicity
jquery-nestable
recursive-datastructures
akka-cluster
flow-control
nbconvert
hittest
query-performance
plottable.js
lua-5.1
prettytensor
hexdump
itextpdf
google-places
angular-leaflet-directive
apache-commons-fileupload
sortedlist
apache-commons-net
xc16
knuth
rdl
elliptic-curve
fluentautomation
hippomocks
xceed-datagrid
kgdb
hyprlinkr
android-2.2-froyo
monomac
industrial
prettify
oam
aqtime
ember-app-kit
getmessage
appconkit
regsvr32
eclipse-templates
f#-powerpack
xtype
propagation
site.master
dmx512
zend-tool
sustainable-pace
project-hosting
uiq3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App