|
[Solved] qtip to display on another in another php/html place holder
|
|
22nd August, 23:28
Post: #1
|
|||
|
|||
|
[Solved] qtip to display on another in another php/html place holder
Hello ,
I got two file index.php and test.php , test url are http://www.desktopfreewarefinder.com/qtiptest/index.php and http://www.desktopfreewarefinder.com/qtiptest/test.php I have setup qtip on test.php and working fine if run test.php directly , but when i place on <div id="example-placeholder"> in index.php with javascript call , qtip is not displaying . I am not placing source code here, please see this simple source code with just right click on browser , although it is php all are html code , that will be more clear. Please advice how to make it work. Many thanks, David |
|||
|
23rd August, 15:55
Post: #2
|
|||
|
|||
|
RE: qtip to display on another in another php/html place holder
<script> elements are stripped out of AJAX calls, so no JavaScript within the page you're retrieving will run. You'll need to do it on the index.php page.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
23rd August, 21:54
Post: #3
|
|||
|
|||
RE: qtip to display on another in another php/html place holder
(23rd August 15:55)Craig Wrote: <script> elements are stripped out of AJAX calls, so no JavaScript within the page you're retrieving will run. You'll need to do it on the index.php page. Thanks for your info , at the moment i place the qtip code in test.php and working fine JS Code
Now i place this code in index.php as well but no success , so is there any chance to access 'a' element inside that place holder like JS Code
i have seen in http://people.iola.dk/olau/flot/examples...cting.html If that is possible or if that easy for you please share piece of code as i am not familiar with javascript. Mant thanks, david |
|||
|
23rd August, 22:00
Post: #4
|
|||
|
|||
|
RE: [Solved] qtip to display on another in another php/html place holder
You need to make sure you call the .qtip() function _after_ the AJAX content has been loaded in, best to do it in the success callback or similar of the $.ajax call.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
24th August, 02:29
Post: #5
|
|||
|
|||
RE: [Solved] qtip to display on another in another php/html place holder
(23rd August 22:00)Craig Wrote: You need to make sure you call the .qtip() function _after_ the AJAX content has been loaded in, best to do it in the success callback or similar of the $.ajax call. Many thank Craig , i found on the page https://blueprints.edge.launchpad.net/qt...delegation JS Code
it work fine , but like in the forum http://craigsworks.com/projects/forums/t...-only-once if I change 'mouseover' to 'click' it display when clicked, but then again if I mouseover the element show rather than click Any idea? Many thanks, david |
|||
|
24th August, 19:02
Post: #6
|
|||
|
|||
|
RE: [Solved] qtip to display on another in another php/html place holder
Make sure to set the qTip event to the same one as the live delegation, like so:
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
25th August, 00:36
Post: #7
|
|||
|
|||
|
RE: [Solved] qtip to display on another in another php/html place holder
Thanks for your info Craig , i was testing according to your saying , but it is not working , this is my code
JS Code
if i change show: { event: event.type } to show: { event: 'click' } , it was happening like before. Please advise what am i doing wrong? I am using jquery.qtip-1.0.0-rc3.min.js Many thanks , david |
|||
|
25th August, 18:25
Post: #8
|
|||
|
|||
|
RE: [Solved] qtip to display on another in another php/html place holder
You need to make sure event is first parameter of the live function, as stated in the previous post comment:
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
25th August, 20:32
Post: #9
|
|||
|
|||
RE: [Solved] qtip to display on another in another php/html place holder
(25th August 18:25)Craig Wrote: You need to make sure event is first parameter of the live function, as stated in the previous post comment: Thanks for your info and sorry to bother , i still cannot get it work , qtip not show when i click but when i hover after click it show up only on hover. My new code is JS Code
You can also test on http://www.desktopfreewarefinder.com/qti...ptest.html Please advice what i am doing wrong. Many thanks, david |
|||
|
27th August, 14:45
Post: #10
|
|||
|
|||
|
RE: [Solved] qtip to display on another in another php/html place holder
Oh my bad, try this:
JS Code
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




