ラベル basically の投稿を表示しています。 すべての投稿を表示
ラベル basically の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

Re-Setting an Object to its original position using Animation Extender

Hi

I have been working on a nice ajax menu using the Animation Extender. Basically, i have a series of GIF's. When the mouse hovers over a gif, the gif moves 6px to the right. When the mouse hovers out, the gif moves 6px to the left.

Everything works well, if you let the whole animation run through. But if you where to move your mouse off and on the gif a few times in a short period, the gif would actually lose its original position and end up either further left or further right to where it should.

I spose what I am trying to get at is, is it possible to reset an objects original position?

Here is a sample of my extender:

<cc1:AnimationExtender ID="AnimationExtender3" runat="server" TargetControlID="btnPro">
<Animations>
<OnHoverOver>
<Move duration=".03" fps="50" horizontal="6" unit="px"/>
</OnHoverOver>
<OnHoverOut>
<Move duration=".03" fps="50" horizontal="-6" unit="px"/>
</OnHoverOut>
</Animations>
</cc1:AnimationExtender>

Thanks for your help in advance.

Hugh

Would any one have an easier way of doing this?

Thanks

Hugh


HI ,

try this link :

Scripting Animations from the Ms Ajax AnimationExtender

Hope this heps


Thanks for the link.

This would be perfect for wat i am trying to do. Problem is i cant seem to get it to work on a hover over event, instead of a click event.

Any ideas?

Thanks

Hugh

2012年3月26日月曜日

response.write and wizard

Hello!

I've been digging internet 2 days now...

Basically, i have a page with updatepanel on it. Inside, there's a wizard , with a button on the last step. This button finish the wizard - it process the whole data we have from user and it generates a file, which user should receive, with the ability to save it or open. It's easy - Response.Write. Of course it's a well known issue - ajax can't stand response.write. There are some ways to solve it , but it doesn't work for me. I've already registered it as PostbackControl, then as a AsyncControl. Added it to update's panel trigger's ( can't do it dynamically, but i did it otherwise).

Does anybody has any solution to my scenario?

I'm not sure I follow your scenario, are you trying to send the file to the user, or just data? If you're trying to get the user to be able to open/save the file, then the only way I can think of would be a redirect or transfer of the request. if it's juts data, then put a dummy asp:label in there and change its Text value.


i thought i made it clear :(

page->updatepanel->wizard->response.redirect . yes, i want to send FILE to the user.

2012年3月24日土曜日

Right Click popups OWA style

Hi.

I need to use atlas to allow me to display right click popups, the content of which depends on the item that was right clicked on.

Basically.. I have a repeater which lists usernames.

I want to be able to right click on the username which then displays a popup with a few options relating to the selected user.

I have figured out that the popup needs to be in a update panel, and right clicking on the username needs to fire of a webservice which returns the options.

What I am not sure of is how to code it and what Atals functions to use.

Anyone got any pointers?

Cheers

Amit

You might be able to modify the click behavior with a new click behavior that handles the right click, cancells it to disable the browser right click contxt menu, and pop a floating div with the contextual items that you require..
try this:
Handling the context menu with a custom Atlas Behavior