Posted by
admin
on
03/09/2010
I did a little more digging into this, and found that yui.yahooapis.com was on my hosts file. So that was the problem. Solved.
Posted by
admin
on
03/09/2010
I am experiencing what appears to be styling issues with my Drag Delegate implementation,
I have something setup like this:
———————————————————————————————–
<div id="slider_container" style="overflow: hidden;">
<div id="sliding_panel">
<div id="item1" class="item"></div>
<div id="item2" class="item"></div>
<div id="item3" class="item"></div>
<div id="itemN" class="item"></div>
</div>
</div>
<div id="main_body">
</div>
———————————————————————————————–
The sliding_panel element gets rendered/populated with elements from some search results. Once its done I make it an animated element that can slide left and right in order to scroll through all available items
I then create a drag delegate with the sliding_panel as the container and all the div.item elements draggable via the delegate, and add the main_body as the drop target.
Issue I am running into is that everything works fine as long as you have performed a scroll left/right. Once you do, the positioning on the slider_panel goes to relative, and the drag objects get stuck inside the slider_panel and fall under the overflow hidden rule from the slide_container object
As anyone worked with this type of pattern before, and worked their way out of the styling issue?
Posted by
admin
on
03/09/2010
There is not much in the description to determine what is happening.
There is a dedicated forum for YAP support over at: http://developer.yahoo.net/forum/?showforum=40, in case this issue turns out to be YAP-specific usage of YUI.
Regards,
Thomas
Posted by
admin
on
03/09/2010
Hey P. Rose,
This looks more like an integration test than a regular JS Test. Maybe YUI Test is not the right tool to do that kind of tests.
What we normally do, we write YUI modules, and we write independent tests per module basis, and if by any chance, a particular module uses AJAX, we mock the object to avoid using a real AJAX request, and instead we assume the server will response with a particular response, and that’s what our mock provides.
For the kind of tests that you’re looking for (integration tests), maybe selenium is a better option.
Best Regards,
Caridy
Posted by
admin
on
03/09/2010
Thanks Dav,
Following will be the change If i want to use nested List.
1) Using Editor YUI Library
2) Change in Code for using Editor API.
Is it right ?
Regards
Kamal
Posted by
admin
on
03/09/2010
The list support is tied to using Editor, you need to include the Editor file and change SimpleEdtor to Editor.
Posted by
admin
on
03/09/2010
Hi Dav,
I am using simple editor .so please help how i can achieve my solution without more changes in my code.
Regards
Kamal
Posted by
admin
on
03/09/2010
Are you using SimpleEditor or Editor?
Editor has this feature built in, SimpleEditor does not. You should also be running 2.8.1 instead of 2.7.0.
Posted by
admin
on
03/09/2010
Hi ,
Can anybody help me as I am using the yahoo Editor 2.7.0 in my application.So my expectation is to use the nested list for adding element inside richtextarea.
I can currently add simple ordered or unordered list not the nested List i.e.
List 1
tab tab List11
List 2
tab tab List21
Like this i need my editor.
But i didn’t found which can represent like this.
So need help.
Waiting for reply….
Regards
KamIndia