Closed (fixed)
Project:
Drupal core
Version:
6.9
Component:
javascript
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2009 at 14:21 UTC
Updated:
15 Aug 2012 at 22:01 UTC
Hello Drupal Community,
I can get the following script to work only with Clean URLs disabled.
<?php drupal_add_js('sites/all/plugins/ajaxtooltip.js'); ?>
<a href="#" title="ajax:sites/all/plugins/external.htm">Some link</a>
"sites/all/plugins/external.htm" being the location of a Tooltip file.
Does anyone know how to revise the code so that it would funktion with Clean URLs enabled. Thanks for your help.
Comments
Comment #1
ainigma32 commentedCould you post the rest of the script i.e. ajaxtooltips.js ?
- Arie
Comment #2
Keeling commentedHere is ajaxtooltips.js
Comment #3
ainigma32 commentedYou're welcome ;-)
Could you try /sites/all/plugins/ajaxtooltip.js in stead of sites/all/plugins/ajaxtooltip.js i.e. add a leading slash?
- Arie
Comment #4
Keeling commentedUnfortunately that doesn't work.
For now I'm going to try a tooltip that uses a div instead of a external html doc.
Comment #5
ainigma32 commentedTook a bit of tinkering but this works for me:
It's a pity the script doesn't degrade gracefully because it looks real nice.
If you turn js off you get a tooltip that says
ajax:/sites/all/plugins/ajaxtooltip.jsSo basically this code adds the forward slash to the path to external.htm instead of the path to the js file.
Can you confirm that this works for you too?
- Arie
Comment #6
Keeling commentedThat works for me too. Thank you for taking the time to "tinker" :)
Comment #7
ainigma32 commentedYou're welcome.
- Arie
Comment #9
dcdace commentedI have the same problem but i can't find a way how to solve it.
My calendar pop-up javasript, works only when clean URLs disabled
calendar.js code
Comment #10
Robin Millette commented