|
Multiple links loading external javascript page
|
|
23rd January, 04:34
(This post was last modified: 23rd January 04:35 by Kao006.)
Post: #1
|
|||
|
|||
|
Multiple links loading external javascript page
Hey All,
Been struggling with a mini/mega problem that I can't seem to find any solutions on. I made two very simple files to show my problem "test.php" and "_testProfile.php": test.php HTML Code
_testProfile.php: HTML Code
Now test.php simply has 2 links which displays the external page _testProfile.php. Now the _testProfile.php has a single link that works with Javascript to toggle through hide/show. What's weird is the Javascript only works on the *first* link that I click, then the next link will open the tooltip but the Javascript will no longer work. I've been wrapping my brain around this and can't seem to figure it out. Ultimately I'm going to have several links, each of which will pop up a tooltip, but if I can't seem to get 2 links to work, I don't see how I would proceed with generating several ![]() Any help is greatly appreciated, and I'm hoping it's not something "stupid" so forgive me if I've overlooked something simple THANKS!! |
|||
|
24th January, 18:58
Post: #2
|
|||
|
|||
|
RE: Multiple links loading external javascript page
You shouldn't really be sending <script> tags or any full HTML pages (with <html> and <body> etc) to the qTip. It can cause big problems especially with styling and all in all its just not good practice. This is probably also the reason why the JS isn't working.
Send a sub-sample of the page instead e.g. the form in your case I assume, without <head>, <body> etc. and move the script tag into a separate file linked to on the main page or similar. Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





