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

Drupal 6 next tid value
subscription to news letter in drupal
IP to country in counter report in drupal
Image and video gallery on drupal website
How to add php files in drupal modules
Drupal - Computed Fields - Taxonomy Term Weight?
Automatically update drupal nodes at submit time
Privatemsg & send email notify on new message drupal6
How to create template file for skinr module in drupal?
Drupal 6 managing Content Profile profiles
strange content type in drupal
How can I figure out the duration of hook_block cache time?
How to start with skinr module in drupal
Why are .tif images not used in webpages (TIF cannot be used in internet browsers)?
Display link to nodes who reference a user in a custom usertype view
what's these lines meaning in hook_menu?

Categories

HOME
winforms
client
hook
blogger
gerrit
gremlin
heroku
reserved
mfc
stock
android-4.4-kitkat
paw-app
ebean
onelogin
in-app-purchase
constraint-programming
amazon-cloudformation
handsontable
spring-tool-suite
visual-studio-cordova
excel-vba-mac
openedx
zapier
clickonce
facebook-instant-articles
firebase-crash-reporting
angular2-aot
django-storage
poltergeist
info.plist
vision
primitive
microsoft-chart-controls
junit5
uisplitview
ioio
siesta-swift
karaf
copying
usbserial
protovis
xmlreader
environment-modules
html5-fullscreen
hexo
email-templates
eclipse-gef
angular-resource
chain-builder
pnotify
clean-architecture
gabor-filter
setter
csound
nodebb
flow-control
jspdf-autotable
sonarlint-vs
parallel-data-warehouse
spring-android
azure-virtual-network
moveit
bluegiga
vhd
maven-tomcat-plugin
reactive-banana
qtableview
google-places
marching-cubes
atk4
libressl
security-testing
0xdbe
cakephp-3.1
appfabric-cache
unity3d-gui
remobjects
proj4js
google-style-guide
nsbutton
mesa
fluentautomation
system.net.webexception
htmlcleaner
pyhdf
apc
comaddin
parametric-equations
pendrive
qt-jambi
vdsp
tomcat-valve
winbugs14
datareader
subviews
digest-authentication
getresponsestream
ext3
database-management
brewmp
sef
libs
backcolor
project-hosting

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App