PDA

View Full Version : Display customer reviews in Thickbox


Corrosive
12-06-2008, 03:48 PM
Hi all

Can't figure out if this can even be done but a local directory allows for customer reviews and provides a 'widget' to display them in your site.

The code is...

<script src="http://www.freeindex.co.uk/widgets/reviews.asp?BID%3D124688%26Num%3D3%26width%3D400%2 6snip%3D100%26BWidth%3D1%26BColor%3D000000%26tcolo r%3D666633%26title%3DOur+Latest+Customer+Reviews%2 6mcolor%3DFFFFFF%26acolor%3D000000" type="text/javascript"></script><div class="FI_reviews" style="width:400px;padding-top:4px;text-align:right;font-size:11px;">View our <a style="font-size:11px;color:#000000;font-weight:normal;" href="http://www.freeindex.co.uk/profile(yoto-creative)_124688.htm">full profile</a> in the FreeIndex <a style="font-size:11px;color:#000000;font-weight:normal;" href="http://www.freeindex.co.uk/categories/computers_and_internet/web_design_resources/web_designers/">Web Designers Directory</a> directory.</div>

I would like to be able to display this using Thickbox.

Any ideas???

Corrosive
12-06-2008, 04:12 PM
Hi all

Can't figure out if this can even be done but a local directory allows for customer reviews and provides a 'widget' to display them in your site.

The code is...

<script src="http://www.freeindex.co.uk/widgets/reviews.asp?BID%3D124688%26Num%3D3%26width%3D400%2 6snip%3D100%26BWidth%3D1%26BColor%3D000000%26tcolo r%3D666633%26title%3DOur+Latest+Customer+Reviews%2 6mcolor%3DFFFFFF%26acolor%3D000000" type="text/javascript"></script><div class="FI_reviews" style="width:400px;padding-top:4px;text-align:right;font-size:11px;">View our <a style="font-size:11px;color:#000000;font-weight:normal;" href="http://www.freeindex.co.uk/profile(yoto-creative)_124688.htm">full profile</a> in the FreeIndex <a style="font-size:11px;color:#000000;font-weight:normal;" href="http://www.freeindex.co.uk/categories/computers_and_internet/web_design_resources/web_designers/">Web Designers Directory</a> directory.</div>

I would like to be able to display this using Thickbox.

Any ideas???

Sorry guys, it's cool, I've managed to do it :)

Corrosive
12-06-2008, 05:43 PM
Sorry guys, it's cool, I've managed to do it :)

:( Actually (as is always the way with these things) I have it working in one browser but not another.

Please would someone check my 'logic'? Link

http://yotocreative.co.uk/contact.htm

In the left column click on the 'Customer Reviews' link. It works really well in IE7 but Chrome isn't handling it.

Could someone also check in Firefox as well for me please?

Thanks for any help you can give.

ranjan
12-06-2008, 11:35 PM
not working as intended in firefox 3

It begins to open thickbox and then jumps to the link as a newpage (follows the link)

return false missing?

Corrosive
12-07-2008, 12:22 AM
not working as intended in firefox 3

It begins to open thickbox and then jumps to the link as a newpage (follows the link)

return false missing?

Thanks Ranjan

Thought it would be broken in FF as well :(

I take it you mean putting return false; in the thickbox.js somewhere? I don't really want to go round messing 'under the hood' of something I don't understand. My logic was that the '#' at the start of the href would null the link...Might be way off though.

Any more ideas?

ranjan
12-07-2008, 01:22 AM
onclick="return false;"

if that doesnot help you would have to go under the hood i think. never used thickbox cuz its so heavy, prefer to write my own

domedia
12-07-2008, 02:08 AM
My logic was that the '#' at the start of the href would null the link...Might be way off though. Yes, '#' is used after a file name to link to a certain place in the document :)

Follow ranjans advice and you should be good.

Corrosive
12-07-2008, 09:37 AM
Yes, '#' is used after a file name to link to a certain place in the document :)

Follow ranjans advice and you should be good.

Hmmm.

The most luck I have had with this is to place the onclick command before the link to the inline Div and then it opens the thickbox without the reviews in both Chrome and IE. Otherwise, it's still doing it....really close to giving up now.

Any other thoughts before the towel gets thrown in?

ranjan
12-07-2008, 10:32 AM
See the example for iframed content instead of inline content

1. create a new file called reviews.html
2. put the reviews script tag in reviews.html
3. use iframed content to invoke the iframe


that should work

Corrosive
12-07-2008, 10:47 AM
See the example for iframed content instead of inline content

1. create a new file called reviews.html
2. put the reviews script tag in reviews.html
3. use iframed content to invoke the iframe


that should work

Ranjan...I could kiss you (but I won't). Check it out....

http://yotocreative.co.uk/contact.htm

(please tell me this works in FF :) )

ranjan
12-07-2008, 10:52 AM
cool thing!

Corrosive
12-07-2008, 11:02 AM
cool thing!

All thanks to you buddy. Nice approach, I'd never have got there!