[jQuery] Re: Flash and jQuery

2007-10-17 Thread Pyrolupus
ActionScript (inside the Flash movie): getURL("javascript:$('#" + id + "').hide()"); Better yet, create a hider function that does the work: ActionScript: getURL("javascript:hideElem('" + id + "')"); JavaScript: function hideElem(elemID) { //error checking, verification, etc. $('#' + elemI

[jQuery] Re: Flash and jQuery

2007-10-16 Thread rsmolkin
Hi All, I tried doing this $(document).ready(function(){ $('#link_menu1').bind('click', function () { $('#mainTable').hide(); }); }); But it's not working. I think Flash is still taking away the click event. Can you please help me figu

[jQuery] Re: Flash and jQuery

2007-10-15 Thread Pyrolupus
I originally thought that it was just Flash and JavaScript interaction, in which case you'd use the getUrl('javascript:yourfunc()') ActionScript statement, but it sounds more like you just want your previously working links to continue working the way you remember them. I skimmed the sIFR docs an

[jQuery] Re: Flash and jQuery

2007-10-15 Thread spinnach
or you can use ExternalInterface, which can also be used to communicate between flash and js (both ways - flash to js and js to flash).. dennis. Brian Cherne wrote: A word of caution about using getUrl in flash. If there is any way getUrl can be called before your page has finished loading,

[jQuery] Re: Flash and jQuery

2007-10-14 Thread Brian Cherne
A word of caution about using getUrl in flash. If there is any way getUrl can be called before your page has finished loading, it may prevent your page from loading fully in IE. This happened on a large web site I worked on a year ago. We never saw the problem in development because we were sittin

[jQuery] Re: Flash and jQuery

2007-10-14 Thread pixelwizzard
Hi Guys, Did you figure this out? I have a problem with links that were converted using sIFR and then I need to use them to do a show/hide using jQuery and it looks like Flash is stealing my click event, so the click event never gets called by jquery. Is there any way to get Flash to trigg

[jQuery] Re: Flash and jQuery

2007-10-11 Thread Pyrolupus
Roman, The fact that you can call any JavaScript function from within Flash implies that it is indeed possible. Assuming for the sake of this example that your links are identified with id attributes: (flash)==>triggerFromFlash(linkID); function triggerFromFlash(id) { $('#' + id).click();

[jQuery] Re: Flash and jQuery

2007-10-11 Thread rsmolkin
Hi Guys, Did you figure this out? I have a problem with links that were converted using sIFR and then I need to use them to do a show/hide using jQuery and it looks like Flash is stealing my click event, so the click event never gets called by jquery. Is there any way to get Flash to trigger th

[jQuery] Re: Flash and jQuery

2007-10-05 Thread njsuperfreak
Sweet! Good Find Brett, and thanks Sam! I think I am definitely going to experiment with this. looks interesting... On Oct 4, 8:19 pm, Brett <[EMAIL PROTECTED]> wrote: > Interesting, I googled up and found an example of > this:http://www.quirksmode.org/js/flash_call.html > > Not jQuery as such i

[jQuery] Re: Flash and jQuery

2007-10-04 Thread Brett
Interesting, I googled up and found an example of this: http://www.quirksmode.org/js/flash_call.html Not jQuery as such in the demo, but any function you write can refer to jQuery. On Oct 5, 8:10 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > your flash would need to be wmode=transparent > > an

[jQuery] Re: Flash and jQuery

2007-10-04 Thread Sam Sherlock
your flash would need to be wmode=transparent and you'd need to call a javascript function from within flash that in turn calls the grey box function since jquery applies the onclick event to all anchors with a class of greybox you'll need simluar code inside you function that you call from flash